Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
MeshSceneNode not always rendering meshes

pptech
Registered User
Quote
2012-03-15 11:19:05

I have a hierarchy of MeshSceneNodes only some of which have meshes attached, like this:

MeshSceneNode(with mesh attached)->MeshSceneNode(no meshes attached)->MeshSceneNode(with mesh attached)

Only the mesh from the top level scene node is rendered. Interestingly adding a mesh to the middle scene node in the hierarchy makes rendering work. It's almost as is not having a mesh attached prevents traversal down the scene node hierarchy when rendering.


niko
Moderator
Quote
2012-03-16 07:47:26

Yes, mesh scene nodes only render themselves when they have a mesh attached to them, and that mesh also needs to have at least one triangle in it. If you need an intermediate node for this, you could also use the CL3D.DummyTransformationSceneNode, but it's not documented, unfortunately. Or you could also create an own, empty scene node type for this yourself maybe.


pptech
Registered User
Quote
2012-03-19 17:08:40

Thanks for confirming my suspicions.

I appreciate there are ways around the problem but given that MeshSceneNode inherits from SceneNode shouldn't it simply augment the existing behaviour rather than do something different?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact