zbuffer from file - plz help!

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
FogGobbler

zbuffer from file - plz help!

Post by FogGobbler »

Hi!


I can store the pre-rendened z-buffer information in an extra file (bmp or something in 3ds max). I want to load this file into the zbuffer (depth buffer) of the Irrlicht engine.

I want to use this technique for a 3d character in a 2d background kind of game. I read somewhere that its the easiest way.

1. draw background on the screen
2. copy the depth buffer of the file into the depth buffer of the engine
3. draw the character in 3d.


I could also store a simplified mesh and load that into the buffer.->same question.

how can I do this? or am i totally confused.. :shock:

Thanks,
Oli


thanks in advance!
FogGobbler

Post by FogGobbler »

nobody any idea how to help me with this one?
:(
Post Reply