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: devonM

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,377

    Okay. The simple mistake in my understanding was...

    Okay. The simple mistake in my understanding was that when using orthographic projection altering the Z coordinate does not change the size of the object whereas perspective projection does. :doh:
  2. Replies
    5
    Views
    1,377

    Let me verify something more basic. Given these...

    Let me verify something more basic. Given these two sets of vectors:

    {-0.2f, 0.5f, -10.0f},
    {0.3f, -0.5f, -10.0f},
    {0.8f, 0.5f, -10.0f}




    {-0.2f, 0.5f, -2.0f},
  3. Replies
    5
    Views
    1,377

    Thanks Aleksander, I changed the code to the...

    Thanks Aleksander,
    I changed the code to the following but it made no difference:


    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glEnable (GL_DEPTH_TEST);

    ...
  4. Replies
    5
    Views
    1,377

    Basic z coordinate usage displays blank view

    Ok, I am a little confused on how to use z coordinates. The following code does not display a yellow triangle. When I remove the glOrtho call and change the z coordinates of the vertices back to...
  5. Replies
    2
    Views
    2,299

    Thank you very much! I can't believe I...

    Thank you very much! I can't believe I overlooked that. Changing the indices to GLushort corrected the problem.
  6. Replies
    2
    Views
    2,299

    3.2 Core, VAO, and glDrawElements not drawing

    Greetings. First time posting here. I'm fairly new with OpenGL and am having a devil of a time trying to get glDrawElements to work. I am using 3.2 Core to attempt to draw a simple multicolored...
Results 1 to 6 of 6