|
From: Javier T. <jt...@ud...> - 2001-09-28 09:46:37
|
Hello all, I am using OpenVRML 0.11.1 and I have detected a problem with the proxi= mity sensors. Sometimes the camera seems to go in and out of the sensor while it is com= pletely inside. The "inside" condition in the VrmlNodeProximitySensor::render method is c= omputed with the position of the camera obtained with a call to ViewerOpenGL::get= Position() What I have observed is that the getPosition() method computes the posi= tion of the camera from the OpenGL matrices calling gluUnproject() The weird thing here is that while the position of the camera doesn't m= ove, it only rotates, the values of x, y and z returned by getPosition are different! = Also, this values are different from the position of the camera I establish in my program. Has anybody noticed this? What could be the problem? Thanks in advance Javier Taibo <jt...@ud...> Visualization for Engineering Architecture and Urban Design Group VideaLAB - University of Coru=F1a http://videalab.udc.es |