Hi folks,
I promised a little sample for a new functionality in TBGL, that you can erase the color buffer, but let the depth buffer still have it's values.
Mostly you see this approach in adventure games, where you have a 3D character
infront of a prerendered scene.
Ok, here is a little sample script. The platform and cube you see is prerendered in BLENDER. The ball is created with TBGL. You can move the ball via A/W/S/Y . The tricky part is to find the right camera position that reassembles the settings in Blender. For some reason I had to rotate it 40 degrees instead of 50 like in Blender. ???
Right now the FOV you have use is 45 degrees but Petr will give use the ability to set different values.
Have fun
Michael
Bookmarks