SkyBox code doesn't work

Blitz3D Forums/Blitz3D Beginners Area/SkyBox code doesn't work

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

"but why not use EntityZOrder!?"

I dunno. For the case of a skysphere, in general that should work fine, so long as the skysphere is small enough that it falls within the clipping radius of the camera, and you move it with the camera using positionentity. (Parenting it would make it rotate with the camera which would look wrong.)

I offered an alternative suggestion because the fellow above was syaing entityorder didn't do what he wanted.


"However the third problem still exists. When I fly the main ship far away from the enemy ships, the enemy ships go right through the other side of the sky sphere."

Have you considered making the skysphere so large that the enemies would be really tiny before they pass through the sphere? At some point the enemies are going to be clipped by your clipping plane on your camera, OR be too small to see. So if you make the sky sphere big enough then it won't matter if they pass through it at some point cause you won't be able to see it happening.