3D Object as a part of HUD Help

Blitz3D Forums/Blitz3D Programming/3D Object as a part of HUD Help

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.

Im not sure how blitz handles non 4:3 ration screen sizes, but it it just stretches the screen then the below should work I think will all resolutions?

Graphics3D 800,600,0,2
HidePointer

camera=CreateCamera()
sphere=CreateSphere(10,camera)
MoveEntity sphere,0,-3,4

;fill the screen with some random blocks
For x=1 To 40
	temp=CreateCube()
	EntityColor temp,Rand(255),Rand(255),Rand(255)
	PositionEntity temp,Rand(-30,30),Rand(-30,30),Rand(-30,30)
Next

While Not KeyDown(1)
	;mouse look
	TurnEntity camera,MouseYSpeed(),-MouseXSpeed(),0
	RotateEntity camera,EntityPitch(camera), EntityYaw(camera),0
	MoveMouse GraphicsWidth()/2,GraphicsHeight()/2
	
	
	RenderWorld
	Flip
Wend


Cheers,


Unc