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