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

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    776

    Projection Planes and the Z-Axis

    VertexData data[ 18 ] = {
    { { 255, 0, 0, 255 }, { -0.5f, 0.0f, 0.5f, 1.f } }, // front
    { { 0, 255, 0, 255 }, { 0.5f, 0.0f, 0.5f, 1.f } },
    { { 0, 0, 255, 255 }, { 0.0f, 0.5f, ...
  2. Replies
    1
    Views
    799

    I was able to figure out the problem. A beginner...

    I was able to figure out the problem. A beginner mistake: I had not culled the back face.
  3. Replies
    1
    Views
    799

    Splitting Pyramid Problem

    Good for now: 934
    Bad. One of the faces reappears down the middle: 933

    I've have a pyramid on screen. I'm able to rotate it by 5 degrees on the y-axis, but at certain points one of the faces will...
  4. Replies
    4
    Views
    1,594

    thanks tonyo. I just wanted to do a rotation in...

    thanks tonyo. I just wanted to do a rotation in an orthographic projection. I thought by default opengl does that automatically if a perspective projection is not specified. For example with just...
  5. Replies
    4
    Views
    1,594

    GLSL & Matrix Math

    I'm new to 3-D math so I'm not sure if I'm doing this correctly.

    I currently have a GLfloat[ 36 ] pyramid set to the buffer, and that data is sent to an vec4 Vertex in the shader.


    ...
  6. Replies
    9
    Views
    6,173

    @chuatroi123? Huh? Anyways, I was able to make...

    @chuatroi123? Huh?

    Anyways, I was able to make my own LoadShaders.h and it works! Just like in the book, I was able to get the triangles colored blue.
    You can download the code here:...
  7. Replies
    1
    Views
    742

    omg...I'm so stupid. Passed in GL_VERTEX_SHADER...

    omg...I'm so stupid. Passed in GL_VERTEX_SHADER to glShaderSource instead of my actual shader object. SOLVED.
  8. Replies
    1
    Views
    742

    Loading Shaders from File

    This is more of a basic C/C++ question. I'm using ifstream to read from a text file the shader program. glShaderSource needs that shader code in the form of GLchar **. Is there anyway to get a const...
  9. Replies
    9
    Views
    6,173

    kantaki, I also registered with Safari Online....

    kantaki, I also registered with Safari Online. It's a decent book so far. The best resource I've found yet. Everything on the web is either outdated, or not well explained.

    Check back in a few...
Results 1 to 9 of 9