Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior attaching two meshes to a Node #114

Open
jfelrod1960 opened this issue May 23, 2024 · 4 comments
Open

Strange behavior attaching two meshes to a Node #114

jfelrod1960 opened this issue May 23, 2024 · 4 comments

Comments

@jfelrod1960
Copy link

I have the following code:

vehicleNode.attachChild(cyl);
vehicleNode.attachChild(line);
vehicleNode.setRenderMaterial("car_mat.yaml");

vehicleNode can be accessed by the calling program using a getter.

cyl is a coin shape mesh
line is a white line on top from the center to the edge used to indicate forward direction

When I attach both meshes to vehicleNode only the cyl mesh shows. But when I only attach the line mesh, it shows.

Another thing, I created my own "ExampleBase" called DemoBase. When I use ExampleBase it shows. I have lines drawn on other demos and they display using DemoBase.

Thanks
Jeff

@Renanse
Copy link
Owner

Renanse commented May 26, 2024

Hey Jeff, sorry for the delay - I had end of school year things to attend to this week. Hope all is well there with you.

It is really hard to troubleshoot the issue without understanding the differences between DemoBase and ExampleBase or how you are applying materials to the line, etc. My guess is that this has to do with bounding volumes though. You might try printing out those for the cylinder and the line separately and see if they make sense or are possibly NaN, etc.

@jfelrod1960
Copy link
Author

Okay thanks! I will close for now.

@Renanse
Copy link
Owner

Renanse commented May 27, 2024

Feel free to keep it open while you test out the bounding theory if you'd like. Also, if you'd like to privately send me the code to test, I'd be happy to track down the issue for you as well. Let me know!

@Renanse Renanse reopened this May 27, 2024
@jfelrod1960
Copy link
Author

Thanks Josh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants