Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #619: MousePick (similar to #484)
Product:
TV3D SDK 6.5
Language:
C++
Current State:
Closed
Resolution:
Fixed
Created On:
July 3rd, 2006
Last Modified:
July 3rd, 2006
Reported By:
dazkona
MousePick works really weird...

What I have (the meshes has physics-engine instances):

m_Utils-m_FPCamera = new CTVCamera();
m_Utils-m_FPCamera-SetViewFrustum(50.0f, 10000.0f, 1.0f);
m_Utils-m_FPCamera-SetLookAt(0.0f, 0.0f, 0.0f);
m_Utils-m_FPCamera-SetPosition(0.0f, 150.0f, -300.0f);

m_utils-m_InputEngine-GetAbsMouseState(&tmpMouseX, &tmpMouseY, &btnIz, &btnDch);

CTVCollisionResult *cr = m_utils-m_Scene-MousePick(tmpMouseX, tmpMouseX);


// Mesh positions

There are 10 meshes
from (0.0f, 40.0f, 0.0f) to (0.0f, 200.0f, 0.0f) and
from (40.0f, 40.0f, 0.0f) to (40.0f, 200.0f, 0.0f)

Comments:

Posted by dazkona on July 3rd, 2006 at 7:04 PM
Mh, i have do more tests
It seems that for doing the rays, when a vertical displacement of mouse cursor, the rays dont be modified too much, but with a horizontal displacement of the mouse cursor, the rays get a big modification.
What i mean: MouseY don't works over MousePick Rays, and MouseX, works over horizontal and vertical components of MousePick rays (or something similar)
Posted by dazkona on July 3rd, 2006 at 10:54 PM
Well, as Sylvain point me, is a copy-paste problem, but mine one :-$
I'm eating my words (munch, munch...)