Results 1 to 9 of 9

Thread: 3D ind 2D sample

Threaded View

  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Leverkusen, Germany
    Blog Entries
    Rep Power

    3D ind 2D sample

    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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	3Din2D.png 
Views:	260 
Size:	43.8 KB 
ID:	4308  
    Attached Files Attached Files
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

Similar Threads

  1. ODE Sample #02.01
    By ErosOlmi in forum ODE - Open Dynamics Engine
    Replies: 1
    Last Post: 10-08-2007, 22:50
  2. ODE Sample #02.02
    By ErosOlmi in forum ODE - Open Dynamics Engine
    Replies: 2
    Last Post: 10-08-2007, 16:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts