Using DarkGDK.NET, I still have problems trying to pick objects with the mouse
! The oDB3D.PickObject routine works fine, but only at a short distance (let's say 25 meters max).
So I tried the folllowing:
- Make a first oDB3D.PickScreen call with a distance that is the near camera range. That gives me P1 (3D point).
- Make a second oDB3D.PickScreen call with a distance that is the far camera range. That gives me P2 (3D Point).
- Make an oDB3D.IntersectObject call using P1 and P2 with every object that is visible in the camera. Problem: oDB3D.IntersectObject returns 0
for every single object visible !
Obviously the next step is to commit suicide, but what will my wife and my daughters say? Also, at TGC are you ready to endorse that awful responsibility
?
Can anybody help?
Thanks,
Thierry