Far away objects

Blitz3D Forums/Blitz3D Programming/Far away objects

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.

[EDIT] Dangit jhocking beat me to it.

does Blitz render the objects behind that range?


As far as I know, no.

will Blitz render objects which are 25.000 units away (but they cannot be seen because of the fog)?


From the looks of my code here it seems to render them only when they're out of the camera's range\view :

Graphics3D 640,460,0,2


cam = CreateCamera()
CameraRange cam, 1,100
CameraFogMode cam, 1
CameraFogRange cam, 10,50 


cube = CreateCube()

MoveEntity cube, 0,0,25
 


While Not KeyHit(1)
Cls

If KeyDown(200)
	MoveEntity cube,0,0,0.5 
ElseIf KeyDown(208)
	MoveEntity cube,0,0,-0.5 
EndIf



RenderWorld
UpdateWorld

thingy = EntityInView(cube,cam)

Text 0,0,"EntityInView =" +thingy 
Text 0,10,"CameraRange : Near = 1, Far = 100"
Text 0,20,"FogRange    : Near = 10, Far = 50"
Text 0,30,"Cube position : X"+EntityX(cube)+" Y"+EntityY(cube)+" Z"+EntityZ(cube)
Text 300,0,"Hit Up\Down to move cube"

Flip
Wend
End


How big can the 3D-space be actually?


If you can keep the scale of the blitz units small, you can make the space larger without issues....though I have heard Blitz gets weird on very large numbers in a 3d space....