Using a sprite as background

Blitz3D Forums/Blitz3D Beginners Area/Using a sprite as background

SkyCube(Posted 2006) [#1]
Hello all,

I have a question. I was trying to use a 2D image as a background for my 3D game. Someone reccomended that I use a sprite or quad instead, and setting the EntityOrder to 1, so it is drawn first. I tried this, but my background keeps flicking in and out. I read that changing EntityOrder disables zbuffering, so I used WBuffer True, but the same thing happens. What could I be doing wrong?


GfK(Posted 2006) [#2]
Probably got it too close to the camera.

Move your quad 100 units away from the camera, and scale it (x*100 (distance from quad to camera), y*75 (for 4:3 aspect ratio)). That way it'll more or less exactly fill the screen.


jfk EO-11110(Posted 2006) [#3]
What GfK said. The default range of a camera is 1.0 to 1000.0 (AFAIR). So if your distance is 1.0 then it would flicker. Quickly test it by setting the camerarange to something like CameraRange cam, 0.5, 1000.