Help with rendering multiple Geodes into an Image #1257
-
Hi everyone, My scenegraph is set up as root-----camera------scene------child1 The root is set as scene data for the viewer, the duplicate of scene is, so that i can observe what is happening in 3d. I have no idea, why the image turns black and what I am doing wrong. I would really appreciate some help or hints! Update: I should note here, that the objects are dynamic and their vertexes and texture is changing between frames. I do this by modifying the object and setting basically everything to dirty(). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's 2023 and folks still learning OSG/OpenGL... might I suggest that a more modern scene graph and low level API might be a little more future proof. As for objects turning black as the application, data and your combination of OS/machine are all only on your machine we can't provide anything other than general suggestions. Try the same scene graph rendering to a on screen window to see what the results are, Also check the console for OpenGL warnings. |
Beta Was this translation helpful? Give feedback.
-
Hello Robert and thanks for your answer. I could identify the problem, but not yet solve it. Since child1 is textured, I did not define color or color binding (I have added it later, but the color is still set to black). The second child has color and color binding enabled and is drawn in black. These are My StateSets for child1: |
Beta Was this translation helpful? Give feedback.
Thanks for your answer anyways.
I was finally able to resolve this issue using material instead of color.