the screenshot seems ok to me, what's the problem?
EDIT, you refer to the fact that the sprite has background showing behind? The problem is Zwrite, if you enable it, even transparent part of image are rendered to zbuffer preventing the room to be drawed (since in your case the room is rendered after the sprite)
You have to render the room before the sprite, or otherwise use the irrlicht material that write Z only on non-transparent points (just don't remember it now.. searching for it..
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
REDDemon wrote:
You have to render the room before the sprite, or otherwise use the irrlicht material that write Z only on non-transparent points (just don't remember it now.. searching for it..
Ok, thank you.
How can I change the render order? Is it depending on the node creation time? I`ve swapped the room node with the player node and it works now.
Render-order depends mostly on the E_SCENE_NODE_RENDER_PASS value with which a node registers itself to the scenemanager. Generally it's solid nodes first, transparent nodes later (you have no control except setting corresponding materials unless you create your own scenenode-classes). For nodes with the same material it might depend on the position in the scenegraph (which is set by creation time). But that only matter if nodes don't use the z-buffer (otherwise the one in front is always drawn in front no matter if it's drawn first or later).