Space Station Rendering problems

Blitz3D Forums/Blitz3D Programming/Space Station Rendering problems

nivek(Posted 2004) [#1]
I created a space staion for a space game but the station doesn't seem to get drawn properly on screen. When looking at it from far away the parts are semi transparent so I can see inside but they should be solid. (I have a picture showing the problem but I couldn't figure out how to post it here.)

Thanks


Strider Centaur(Posted 2004) [#2]
I beleive this is due to floating point accuracy issues. There are several threads on this here in this very topic group, also some examples for dealing with it can be found in code archives here and at Blitz Coder.


Sorry to be so vague but its all I know on it, hope it helps.


Rhyolite(Posted 2004) [#3]
Or maybe your camera range. Try increasing your near camera range and reducing your far range. Again, do a search because there has been discussion of this before :)

A picture would help though ;)


IPete2(Posted 2004) [#4]
Nivek,

Sounds like you are using entityfade, if you are then don't.

Try using camera fog to 'fade' objects too far away to be seen properly.

Or if it is a camera range prolem simply increase the second parameter to a much much larger one.

IPete2.


mrtricks(Posted 2004) [#5]
I once read that camera range should be set up so that the ratio of Far Range to Near Range is about 10,000:1 -- I changed mine to that and a lot of my problems went away.


Ross C(Posted 2004) [#6]
Or, do multiple renders, setting the camera range from say:

Change cameraclsmode to clear the zbuffer(default)
CameraRange camera,100,100000

Renderscene

Change cameraclsmode to not clear the zbuffer
CameraRange camera,0.1,100

Renderscene

Something like that should give you alot greater accuracy :o)