camera collision

Blitz3D Forums/Blitz3D Programming/camera collision

????(Posted 2006) [#1]
Whats the best method on setting up collisions for a camera?
I am curently using
EntityType camera,1
EntityRadius camera,1.41
Collisions 1,2,2,2 ;number 2 is a large level mesh

but there is cliping on some camera angle. The cliping occers top left, top right, bottom right, bottom left corners.
So whats a better way to do this?


Shambler(Posted 2006) [#2]
If you don't want clipping you have to ensure that the camera near range
CameraRange camera,near,far ;near must be slightly smaller than camera radius

is slightly smaller than the camera radius
EntityRadius camera,1.41

Try adjusting the camera near value downwards or increase the camera radius until clipping is no longer visible.


????(Posted 2006) [#3]
thanks


WolRon(Posted 2006) [#4]
Make sure near to far ratio is no more than 10000:1


????(Posted 2006) [#5]

Make sure near to far ratio is no more than 10000:1


And what kind problems can I get if it is over that?


WolRon(Posted 2006) [#6]
Rendering inaccuracies such as objects that should be obscured by other objects not being obscured.