Borland Developer Studio 2006 and OpenGL Picking - Graphics
This is a discussion on Borland Developer Studio 2006 and OpenGL Picking - Graphics ; Here's the problem I'm having. I'm following the tutorial from
Lighthouse3D ( http://www.lighthouse3d.com/opengl/picking/ ) almost
exactly to do the picking. We've already had the floating point error
with Borland and fixed by including float.h and specifying this
command _control87(MCW_EM,MCW_EM);
Keep ...
-
Borland Developer Studio 2006 and OpenGL Picking
Here's the problem I'm having. I'm following the tutorial from
Lighthouse3D (http://www.lighthouse3d.com/opengl/picking/) almost
exactly to do the picking. We've already had the floating point error
with Borland and fixed by including float.h and specifying this
command _control87(MCW_EM,MCW_EM);
Keep in mind I'm programming in Borland Developer Studio 2006 (C++)
The problem is the minz and maxz from the select buffer array are
always being returned as 2147483648. It doesn't matter what names
I've pushed, or what order the objects are in. So what I effectively
get is the picking algorithm selects (out of the objects that were
picked) the last object that was drawn in GL_SELECT mode, which of
course is not what I want, I need it to check the distance from the
camera as well.
Any help is greatly appreciated.
-
Re: Borland Developer Studio 2006 and OpenGL Picking
I'm hoping someone here can give some insight into this problem, so
here's some more information on what I've found.
It seems that while in perspective view the function gives wrong
values, but in ortho view the function returns correct values. I have
three windows in the program, one being perspective, the other 2 being
orthographic, and outputting the values in the main window always
gives 2^31 while the orthographic windows seem to give correct values
(at least they are varying dependant on the distance from the camera).
I've also found that if I zoom in on the perspective view (which just
moves the camera position in the direction it is looking, but does not
change the view position) when i get almost to the point where the
near clipping plane passes through the object (meaning that the camera
position is very close to the object, and for this situation the view
position is actually on the object), the picking seems to work, it
gives (im assuming) the somewhat correct minz values. But zoom out
just a tiny bit and it goes back to giving 2^31.
Any ideas?
-
Re: Borland Developer Studio 2006 and OpenGL Picking
So, although no one had any ideas for me...
The problem was the Intel Graphic Drivers.
I guess there must be some error for the newest intel mobile drivers
which doesn't allow opengl picking to operate correctly.
* Microsoft Windows*
2000
* Microsoft Windows* XP
*
* Driver Revision: PV 14.25.50
* Package: 31983
*
* Graphics: 6.14.10.4764
* HDMI Audio: 5.10.0.1026
Moving back to version 6.14.10.4020 fixes the problem.
-
Re: Borland Developer Studio 2006 and OpenGL Picking
Dear Mr. Junior Developer,
Can u explain me the procedure to work with BDS 2006 IDE using OpenGL to create the graphics or to develop the GUI in BDS 2006 using OpenGL. U can give me any links which may help me in coding in this line or pls mail me at guddappath@bel.co.in
Regards
Similar Threads
-
By Application Development in forum Inetserver
Replies: 0
Last Post: 06-19-2007, 09:44 AM
-
By Application Development in forum Graphics
Replies: 2
Last Post: 03-12-2007, 04:44 AM
-
By Application Development in forum DOTNET
Replies: 3
Last Post: 08-08-2005, 03:37 PM
-
By Application Development in forum Graphics
Replies: 0
Last Post: 11-19-2003, 06:11 PM
-
By Application Development in forum Java
Replies: 0
Last Post: 10-16-2003, 05:27 PM