# Search:

Type: Posts; User: xorserq

1. ## Thread: Drawing grid

by xorserq
Replies
1
Views
571

### Drawing grid

Hello,

Can anyone explain to me how can one draw a grid with different cells colors. I'm trying to implement Game of Life, and I need to draw a grid with white/black color for each cell.
2. ## Thread: Implement Game of Life with OpenGL buffers

by xorserq
Replies
0
Views
404

### Implement Game of Life with OpenGL buffers

Hello,

I'm trying to implement Game of Life as specified in the red book:

I want to know if I'm doing things correctly. This is my display function:

void display(void)
{
3. ## Thread: move camera in the direction its looking

by xorserq
Replies
3
Views
864

### I tried achieving it using the modelview matrix...

I tried achieving it using the modelview matrix as shown here: http://stackoverflow.com/questions/16136466/how-can-i-make-my-camera-move-in-the-direction-im-facing
However, this just doesn't seem to...
4. ## Thread: move camera in the direction its looking

by xorserq
Replies
3
Views
864

### move camera in the direction its looking

I am rotating the camera around itself (when the camera is located at (0,0,0)) using the following:

glRotatef(x_camera_angle, 1.0, 0.0, 0.0);
glRotatef(y_camera_angle, 0.0, 1.0, 0.0);

I...
5. ## Thread: Lighting and material problems

by xorserq
Replies
0
Views
530

### Lighting and material problems

My objects colors doesn't take affect.

This is my init function (the part of the light and material):

glEnable (GL_LIGHTING);
glEnable (GL_LIGHT0);
GLfloat light_ambient[] = {0.5, 0.5, 0.5,...
6. ## Thread: Understanding glNormal

by xorserq
Replies
1
Views
527

### Understanding glNormal

Let's say that there's a vertex which is a part of a triangle, and part of a quad. To my best understanding, the normal of that vertex is the average of the normal of the quad and the normal of the...
7. ## Thread: Make object circle a world every Y seconds

by xorserq
Replies
2
Views
787

### Solved it. I used glutTimerFunc function. First,...

Solved it. I used glutTimerFunc function.
First, I called it in the main function

glutTimerFunc(25, timer, 0);

and then used timer function to update the angle and redraw the scene:

void...
8. ## Thread: Make object circle a world every Y seconds

by xorserq
Replies
2
Views
787

### Make object circle a world every Y seconds

My object (the sun) needs to rotate constantly without a special event (user input, or others...). The object needs to circle the world every S seconds.
The object rotates on plane (x,y,z) and with...
9. ## Thread: Rotate an object on a plane

by xorserq
Replies
1
Views
493

### Rotate an object on a plane

I need to rotate an object on a plane which is set by the points: (0,0,0), (0,0,height), (x,y,z).
I will receive height, x, y and z as input.

The function glRotate requires angle, x, y, z...
Results 1 to 9 of 9