Hello.
I have a problem with terrains and camerapick, in some cases the "Pickentity()" don't return anything, the "PickedX/Y/Z()" only return the value of the last point where "pickentity" return something... see the example. ( In some closed angles the terrain literaly don't exist )
Move the mouse slowly over the surface of the terrain and check the PickedEntity value...
Please fix, this problem kill my terrain editor. T_T
Tested in B3D 1.99 - Win XP SP2 - DX9.0b - GF7600GS
I tried also with ver.1.98~1.85 and the result is the same.
I have a problem with terrains and camerapick, in some cases the "Pickentity()" don't return anything, the "PickedX/Y/Z()" only return the value of the last point where "pickentity" return something... see the example. ( In some closed angles the terrain literaly don't exist )
Move the mouse slowly over the surface of the terrain and check the PickedEntity value...
Please fix, this problem kill my terrain editor. T_T
Tested in B3D 1.99 - Win XP SP2 - DX9.0b - GF7600GS
I tried also with ver.1.98~1.85 and the result is the same.
Graphics3D 640,480,0,2 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,2,-10 light=CreateLight() RotateEntity light,90,0,0 plane=CreateTerrain(128) EntityPickMode plane,2,True PositionEntity plane,-60,-10,-10 While Not KeyDown( 1 ) If KeyDown( 205 ) Then TurnEntity camera,0,-1,0 If KeyDown( 203 ) TurnEntity camera,0,1,0 If KeyDown( 208 ) MoveEntity camera,0,0,-0.05 If KeyDown( 200 ) MoveEntity camera,0,0,0.05 If MouseDown(1) CameraPick(camera,MouseX(),MouseY()) RenderWorld Text 0,40,"PickedX: "+PickedX#() Text 0,60,"PickedY: "+PickedY#() Text 0,80,"PickedZ: "+PickedZ#() Text 0,100,"PickedNX: "+PickedNX#() Text 0,120,"PickedNY: "+PickedNY#() Text 0,140,"PickedNZ: "+PickedNZ#() Text 0,160,"PickedTime: "+PickedTime#() Text 0,180,"PickedEntity: "+PickedEntity() Text 0,200,"PickedSurface: "+PickedSurface() Text 0,220,"PickedTriangle: "+PickedTriangle() Flip Wend End