Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: xorserq

Search: Search took 0.00 seconds.

  1. 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)
    {
    glReadPixels(0,...
  2. Replies
    3
    Views
    528

    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...
  3. Replies
    3
    Views
    528

    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...
  4. Replies
    0
    Views
    330

    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,...
  5. Replies
    1
    Views
    315

    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...
  6. 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...
  7. 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...
  8. Replies
    1
    Views
    349

    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 8 of 8