# Questions tagged [glulookat]

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

94
questions

**0**

votes

**0**answers

25 views

### About the lookat() function

This is the function:
lookat(vec3 eye, vec3 at, vec3 up)
As we all know, the up vector can be(0.0, 1.0, 0.0). It cannot be parallel to the observation vector n, or there will be somethingw wrong.
My ...

**0**

votes

**1**answer

314 views

### How to implement the Roll angle together with Yaw and Pitch in glm::lookAt function?

From this page https://learnopengl.com/Getting-started/Camera I learned how to implement the Yaw and Pitch angle to a glm::lookAt function. But sadly I could not find any reference of how to add also ...

**0**

votes

**0**answers

81 views

### Move camera using glm::lookAt()?

this is my CAMERA class which makes viewMat uniform var in vertexshader.
struct CAMERA {
glm::vec3 EYE{ 0.0f,0.0f,150.0f };
glm::vec3 AT{ 0.0f,0.0f,0.0f };
glm::vec3 UP{ 0.0f,1.0f,0.0f };
...

**0**

votes

**1**answer

73 views

### Calculating the front vector and look at vector

I have got a homogeneous matrix of shape 4x4. How do I retrieve the front vector and the look at vector from the homogeneous matrix?
Following is my homogeneous matrix,
pose = np.array([ 0.23522,-7....

**2**

votes

**1**answer

421 views

### Why use glm::LookAt in OpenGL?

After reading on the coordinate systems in OpenGL, I figured to move the camera around the world I just need to translate the view coordinates. If I say use view = glm::translate(view, glm::vec3(0, 0, ...

**0**

votes

**0**answers

237 views

### pyOpenGL Is it necessary to draw an object every time when call glReadPixels?

I want to get depth buffer images that have been captured from different views of a 3D object. To do this with pyOpenGL I use the following code
def get_depth(LookAt_x, LookAt_y, LookAt_z)
...

**1**

vote

**2**answers

386 views

### OpenGL renders nothing after using gluLookAt

This is my source If I build this source without the function I can see only 2 lines. But I want to see the 'z'axis.
So I added the gluLookAt() function but I can see just black screen.
What's wrong ...

**0**

votes

**1**answer

504 views

### Is it possible to use gluLookAt with a Vertex Shader?

After a fairly long Google Session I have enough from it!
I had a python/opengl application with some simple Quad's where I used gluLookAt to move around on the scene. Then I needed just 1 Texture on ...

**1**

vote

**1**answer

915 views

### OpenGL LookAt Confusion

I read online that if we want to directly compute the world to view matrix we can use OpenGl's LookAt function If you have the camera position, the position where the camera is looking at and an up-...

**1**

vote

**1**answer

389 views

### OpenGL - wrong objects positioning - gluLookAt()

I've got a taks from university and have to make a small example of solar system, the objects have to rotate etc. The problem is that when I do not call GluLookAt() everything looks fine, but I would ...

**0**

votes

**0**answers

229 views

### How to rotate camera and move forward to the direction (glulookat)

switch(key) {
case 'w': // W - Go forward
x += lx * movement;
z += lz * movement;
break;
case 's': // S - Go back
x -= lx * movement;
z -= lz * movement;
break;
case 'd': ...

**1**

vote

**1**answer

1k views

### How to use gluLookAt in PyOpenGL?

I'm trying to learn PyOpenGL, but I'm not sure how to use gluLookAt to move the camera. I've got an image displaying, but I think I might be missing something that allows me to use gluLookAt? Incoming ...

**1**

vote

**1**answer

594 views

### Rotate camera in own coord using gluLookat and glMultMatrixf

I have to change a camera implementation built with gluLookat and glMultmatrixf.
The camera implemented is an arcball camera where the camera rotates around a point.
Orientation of the camera is by
...

**-1**

votes

**1**answer

118 views

### 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 ...

**0**

votes

**1**answer

1k views

### How do I deal with OpenGL's function of gluLookAt successfully?

Trying to implement a 3D roaming camera in my python and pygame 3D OpenGL game is something I've been trying to do, but I hit a roadblock. Every time I try to use the gluLookAt function, the camera ...