Cameraproject Problem

Blitz3D Forums/Blitz3D Programming/Cameraproject Problem

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.

okey dokey :) here you go:


Graphics3D 800,600
SetBuffer BackBuffer()


cam = CreateCamera()
	CameraRange cam,1,1000
	
light = CreateLight()
plane = CreatePlane()
ball = CreateSphere()
	PositionEntity ball,0,MeshHeight(ball)/2,0


plane_tex = LoadTexture("textures/plane_tex.png",2)
EntityTexture plane,plane_tex

CameraClsMode cam,0,1
ClsColor 195,195,255

MoveEntity cam,0,2,-10


While Not KeyHit(1)
Cls

	CameraProject cam,MouseX(),0,MouseY()
	
	If KeyDown(200) Then MoveEntity cam,0,0,0.1
	If KeyDown(208) Then MoveEntity cam,0,0,-0.1
	If KeyDown(205) Then TurnEntity cam,0,-1,0
	If KeyDown(203) Then TurnEntity cam,0,1,0
	
	UpdateWorld
	RenderWorld
	
	Color 0,0,0
	Rect 0,0,800,50
	Color 255,255,255
	
	Text ProjectedX(),ProjectedY(),"3D DESIGNER"
	
	MoveMouse 0,0
	Flip

Wend
End



As you can see, its the text thats acting as the mouse cursor.

Thanks again for any help