CameraPick and animated .X files

Blitz3D Forums/Blitz3D Beginners Area/CameraPick and animated .X files

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I don't know if this has been discussed before:
CameraPick function is not working with animated .X models

; LoadMesh Example 
; ---------------- 

Graphics3D 640,480 
SetBuffer BackBuffer() 

camera=CreateCamera() 

light=CreateLight() 
RotateEntity light,90,0,0 

model% = LoadMesh("mak_running.x")
If model <> 0 Then PositionEntity camera,0,0,-MeshDepth(model)*3
FreeEntity model

; Load mesh 
animmodel% = LoadAnimMesh("mak_running.x")
EntityPickMode animmodel, 2

Animate animmodel

While Not KeyDown( 1 ) 

	RenderWorld
	UpdateWorld
	If CameraPick(camera, MouseX(), MouseY()) Then Text 0,0, "Picked"
	Flip 

Wend

End