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

Search: Search took 0.00 seconds.

  1. Try to change the code to be like this: ...

    Try to change the code to be like this:



    glPushMatrix();
    glColor3f(0.0,0.0,1.0);
    glTranslatef(0.0, 2.0, 0.0);
    glutSolidTorus(0.15, 0.25,10,10);
    glPopMatrix();
  2. OpenGL Tutorial 06 - Keyboard and Mouse

    I wanna follow a tutorial from openg-tutorial.org. In tutorial 6 I encountered a problem where I cannot see the scene (black screen). I have tried to debug it but I cannot find the issue.
  3. Replies
    3
    Views
    1,245

    Yes but why the the delta of x becomes an...

    Yes but why the the delta of x becomes an increment of horizontal angle and delta of y becomes an increment of vertical???

    Do you have virtual trackball tutorial (theory) link???
  4. Replies
    3
    Views
    1,245

    FPS Camera in OpenGL and glm

    I read tutorial 6 in opengl-tutorial.org. Here's the link.

    http://www.opengl-tutorial.org/beginners-tutorials/tutorial-6-keyboard-and-mouse/

    But I don't understand with this part:

    ...
  5. Replies
    7
    Views
    2,066

    Ok it works now. I mistakenly used vs.attrib()...

    Ok it works now. I mistakenly used vs.attrib() instead of vs.uniform() because the MVP is declared as uniform variables.
  6. Replies
    7
    Views
    2,066

    Now it works, the reason is why MVP matrix does...

    Now it works, the reason is why MVP matrix does not work properly which I don't know the reason why.



    #version 330 core
    //vertex shader

    //Input vertex data, changes frequently
    in vec3...
  7. Replies
    7
    Views
    2,066

    Ok thanks for the reminder of using...

    Ok thanks for the reminder of using glGenVertexArrays() instead of glGenBuffers. It was my mistake (forgot it). :tired:

    But I still have dark screen. Which means my texture and (or) my VBO is not...
  8. Replies
    7
    Views
    2,066

    Have tried it (call glUseProgram() before setting...

    Have tried it (call glUseProgram() before setting any uniform variables) -> still didn't work at all.
  9. Replies
    7
    Views
    2,066

    Edited Source Code

    So I changed the source code and it gives an error about access reading violation in glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

    The Program:




    GLuint gVBO = 0;
    GLuint gVAO = 0;
    GLuint gUV = 0;
  10. Replies
    7
    Views
    2,066

    Help with Texturing (Beginner)

    I just started to learn OpenGL version 4 and GLSL version 3.3. I want to create a simple quad using texture. However, my window just doesn't show anything(blank screen).

    My main.cpp

    void...
Results 1 to 10 of 10