| There seems to be a massive speed difference between linepick and camerapick. most of the extra time with linepick, doesn't seem to be doing anything... If you increase the distance of the linepick and the camera pick, the time difference is hardly worth bothering about. Just seems to be a set up time which hinders the linepick. Any word from BRL/anyone in the know, why this is? It kind of makes linepick redundant. 
 
 
Graphics3D 800,600
SetBuffer BackBuffer()
Global camera = CreateCamera()
PositionEntity camera,0,0,-40
Global cube = CreateCube()
EntityPickMode cube,2
PositionEntity cube,5,0,0
Global cube1 = CreateCube()
EntityPickMode cube1,2
PositionEntity cube1,0,0,0
While Not KeyHit(1)
	Cls
	If MouseHit(1) Then
		CameraPick(camera,MouseX(),MouseY())
		If PickedEntity() <> 0 Then
			flag$="picked with camera pick!, time of = "+PickedTime()+" entity = "+PickedEntity()
			EntityColor PickedEntity(),Rnd(0,255),Rnd(0,255),Rnd(0,255)
		Else
			flag$="nothing picked..."
		End If
	ElseIf MouseHit(2) Then
		LinePick(0,0,-40,0,0,40)
		If PickedEntity() <> 0 Then
			flag$="picked with line pick!, time of = "+PickedTime()+" entity = "+PickedEntity()
			EntityColor PickedEntity(),Rnd(0,255),Rnd(0,255),Rnd(0,255)
		Else
			flag$="nothing picked..."
		End If
	End If
	
	UpdateWorld
	RenderWorld
	Text 0,0,flag
	Flip
Wend
End
 
 
 |