Renanse / Ardor3D

Ardor3D is a free Java based, professionally oriented, open source 3D graphics engine.
Other
229 stars 77 forks source link

Strange behavior attaching two meshes to a Node #114

Open jfelrod1960 opened 5 months ago

jfelrod1960 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

Okay thanks! I will close for now.

Renanse commented 5 months ago

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!

jfelrod1960 commented 5 months ago

Thanks Josh!