Questions tagged [glulookat]

gluLookAt is a function in the OpenGL Utility Library (GLU) that defines a view transformation

The gluLookAt() function is a commonly used routine that defines a view transform and applies it to the OpenGL matrix stack. gluLookAt alloed the view to be specified in terms of an eye (or camera) coordinate and a center (or subject) coordinate that the camera should 'look at'.

The term gluLookAt may also refer to the underlying technique of defining a view matrix in terms of eye and center coordinates and an up vector.

The technique works by constructing a matrix equals to the product of an orthonormal basis matrix (a rotation matrix) and the eye coordinate. The orthonormal basis is defined in terms of the 'forward' vector between the eye and center coordinates, and the two vectors orthogonal to it, 'up' and 'side'.

http://www.opengl.org/archives/resources/faq/technical/viewing.htm

97 questions
0
votes
1 answer

OpenGL window cuts off modelview

I'm programming a billiards game in C++ with Qt and OpenGL (more specific, the QGLWidget). I know my way around OpenGL somewhat, but not too much of a professional. What I did: create a Qt app window with Qt widgets (buttons,...) and a QGLWidget (my…
TheDudeAbides
  • 420
  • 1
  • 7
  • 21
-1
votes
1 answer

I can see only a single point when i change gluLookAt

i'm trying to show a 3D matrix made up of 7600700 points and i want to obtain a parallelepiped that is black on the surface and red inside. I have the parallelepiped and it's black on the surface and red inside and i use three different windows to…
nicogno
  • 47
  • 1
  • 10
-1
votes
1 answer

gluLookAt Not Working

I'm trying to use the gluLookAt() function to control zooming in and out. Right now it isn't changing the matrix at all and I don't know why. Here's the relevant code: // Basic Opengl display function void onDisplay() { // Clear the initial…
Sonofblip
  • 1,167
  • 3
  • 12
  • 20
-1
votes
1 answer

problems with gluLookAt

I am trying to test gluLookAt using this code. But I can see only a black screen. What is wrong with this code ? Is there any basic concept about glulookAt (or opengl camera) that I need to…
Sudesh
  • 100
  • 4
-1
votes
1 answer

Camera will not move in OpenGL

I am having problems with using a camera in OpenGL/freeGLUT. Here is my code: http://pastebin.com/VCi3Bjq5 (For some reason, when I paste the code into the code feature on this site, it gives extremely weird output.) As far as I can tell this…
JayBee
  • 540
  • 1
  • 5
  • 22
-2
votes
1 answer

OpenGL perspective projection and camera location

I am rendering a scene with some map image in OpenGL and using lat, lon of the map as coordinates directly. So my scene does not start at 0,0 and goes up to width, height. Although I can see my polygon (very small), I can't zoom by changing the…
musa
  • 11
  • 2
-3
votes
2 answers

Why in OpenGL's LookAt, if our face is facing almost up the sky, we can still see things right in front of us?

Possible Duplicate: What exactly is the UP vector in OpenGL's LookAt function? This is related to: What exactly is the UP vector in OpenGL's LookAt function? If the call is: gluLookAt(512, 384, 2000, 512, 384, 0, …
Jeremy L
  • 3,770
  • 6
  • 41
  • 62
1 2 3 4 5 6
7