View Full Version : Need to custom implement gluLookAt()
10-01-2008, 10:23 PM
I want to know how to custom implement gluLookAt().Please
someone help me.A quick help is very much appreciated.
10-01-2008, 11:33 PM
Take a look at its sources. Go to http://www.mesa3d.org and download GLU source code. Inside, in the project.c file is gluLookAt source code.
10-02-2008, 08:38 AM
I use gluLookAt() with a fly-through code...I did it in Java/JOGL but the OpenGL code is readable if you are interested...here is the link to the post I originally made about it:
? View Matrix: 1st person to 3rd person ? (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=242100#Post242100)
Also, if you want a more detailed description and code for my fly-through you can go to this site that has the files attached: JOGL - FPS and Fly Through Code (http://www.javagaming.org/index.php/topic,18951.0.html)
10-02-2008, 11:20 AM
In nVidia's SDK (version 9 and 10) there is nv_math.cpp. In that file, look_at is implemented and works exactly as OpenGL requires (data layout of matrices).
10-02-2008, 12:27 PM
Thank you very much for your replys friends.These are certainly goin to help me.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.