Problem with 2d graphics & zbuffer

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
khayyam
Posts: 7
Joined: Fri Mar 09, 2007 8:52 pm
Location: France

Problem with 2d graphics & zbuffer

Post by khayyam »

hi all,

I have a little problem with the z buffer when displaying 2d graphics. Look by yourself :
Image
My custom scene node renders the white 2d graphics and the blue 3d object. How to be sure that the 2d graphics will appear in front of all the other objects ?
Is the only solution to render the 2d graphics at last ?
Robert Y.
Posts: 212
Joined: Sun Jan 28, 2007 11:23 pm

Post by Robert Y. »

The simplest way is indeed to render the 2D last. Another option would be to make your 2D things 3D. (So, use 3d rectangles with textures and put them closer to the camera. But the first solution is much simpler.
Post Reply