Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 3D surfaces are overwriting a surface closer to the camera

Author
Message
bschroed
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 31st Dec 2007 18:56
I have included a minimized version of the project that I am having the problem with. I have placed a camera in space and drawn a brick wall in front of the camera. The blocks the the left and above the camera are showing the proper behavior. The blocks to the right and below the camera are showing faces that should be obscured by the neighboring bricks. Any ideas as to what I am doing wrong?

Attachments

Login to view attachments
bschroed
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 31st Dec 2007 22:45
It appears as if it's drawing the full 3d blocks in the order that they were added into the scene without any depth bufferring.
bschroed
16
Years of Service
User Offline
Joined: 31st Dec 2007
Location:
Posted: 31st Dec 2007 23:43
I found the problem. I incorrectly set the camera near range to 0. Setting the camera range to 0.1f corrected the problem.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 1st Jan 2008 00:32 Edited at: 1st Jan 2008 00:33
dbSetCameraRange Perhaps?

[edit]
Experiment - dbSetCameraRange(0.1,50000); <---that's huge and starts WAY close to cam - but you'll get z fighting etc.

Ply with it and see what gives you the range you need.

Login to post a reply

Server time is: 2024-11-19 23:29:28
Your offset time is: 2024-11-19 23:29:28