Welcome

This is a blog sharing what i have learn and experience from my internship in A*Star IHPC
- Zac Kwan

Thursday, December 2, 2010

Day 42 - Depth Buffer

Although yesterday manage to set up the animation to run correctly, but there is still some problem in the drawing in the view. On my app, the last object that is being draw is on top of the object that draw 1st regardless of the z axis.

This is a problem because not every pod will be drawn from back to front. I believe that there is someway to set up the so that i could make use of the z-axis. Asked kevin for the book about the framebuffer that he actually read about as i suspect there is something to do with the setting up of framebuffer.

INDEED! the framebuffer needed to allow another depthbuffer to be enable to that they could allow the drawing of object according to the z axis. This way the object with z axis closer to the screen will be draw on top ignoring the order of drawing.

No comments:

Post a Comment