Archived

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

collision detection + near plane clipping

This topic is 5538 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''ve run into a little logical problem. I''m currently working on an indoor-FPS, with maze-like levels where you never know what''s waiting behind the next corner, hehe... However I have a little problem with the clipping. I use sphere-polygon collision detection for the camera and the level walls, but the problem is, that if I use 1 as a radius, I am quite far away from the wall and I''d like to come as close to the walls as possible. If however I use a smaller value, I come too close to the wall so that opengl starts clipping the near plane, if I lower this value the lighting gets screwed up. I can''t actually think of a solution for this problem Any ideas?

Share this post


Link to post
Share on other sites
check what u have the near/far ratio of the clip planes set to,
theres a good description in the faq how this works also check here
http://www.sjbaker.org/steve/omniv/index.html
+ yes a 24bit depthbuffer will help lots

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites