Archived

This topic is now archived and is closed to further replies.

GekkoCube

Far clipping plane and skybox colliding.

Recommended Posts

My far clipping plane is set at 30,000.0f (i placed the coma in there for readability here). When i have a certain view perspective, i notice that a portion of my skybox is not drawn because it extends beyond the far clipping plane. Before I render the skybox I disable z-buffering like this:
  
g_pd3dDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
  
but...this doesn''t do the trick. i even tried to disable the zwriteenable render state with no luck as well. I could always extend my far clipping plane even farther, but i''d rather not go that route. thanks.

Share this post


Link to post
Share on other sites
ok.
thanks.
but wouldn''t shrinking the skybox result in a closer-to-the-camera feel since my skybox is textured with clouds?

did you have any idea why disabling z-buffer didnt solve the problem?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Are you aware of what effect the clipping ratio has on the z-buffer, check out the help documentation for the sdk, it mentions that if your clipping ratio is a hundred then 90% of the z-buffer is spent on the closest 10% of the scene, it get worse the more you up the clipping plane ratio.

Share this post


Link to post
Share on other sites
Everything I've read says you put your skybox just inside the clipping plane and when your main camera moves, the skybox moves with it.

bpopp (bpopp.net)

[edited by - bpopp on May 1, 2003 3:01:17 PM]

Share this post


Link to post
Share on other sites