Problems with display models in the guiNode

When you add a model in guiNode, artifacts appeared on the model.

By “artifacts” do you mean the magenta rectangle in the upper left?
What was the Java code you used to add the model?
What did you expect the model to look like?

What @sgold said and… alternatively, you can render the model to texture via an off-screen viewport and apply the texture to a quad in the guiNode.

@sgold said: By "artifacts" do you mean the magenta rectangle in the upper left?
No, I'm talking about the artifacts in the rendering model of the spacecraft.

All three spacecraft in the image look okay to me.

Please be more specific about the artifacts you’re noticing.

@sgold said: All three spacecraft in the image look okay to me.

Please be more specific about the artifacts you’re noticing.


model in rootNode

model in guiNode

The guiNode is rendered without real depth (it is scaled to 0) so that may be what the issue is.

Generally, you can’t really put 3D objects in the guiNode without strange depth-related artifacts.

Try this:

Create a new viewport, and the ship ona node in it, then render this to a framebuffer, use the colorbuffer/tzexture of the framebuffer in the gui node.
-> The the render to texture example in the sources.

Hi,

I need to render over 100 rotating objects in the GUI node (inventory). Is it the right way to use the render-to-texture technique or is it a bad idea because its to slow to render all objects?