Search:

Type: Posts; User: ProgrammerX

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. I am a little bit too tired at the moment to...

    I am a little bit too tired at the moment to figure out what is wrong with your code, but the question is how complicated/realistic your game/engine should be.

    If you just want to have a gun...
  2. Replies
    3
    Views
    128

    Glad I could help ;)

    Glad I could help ;)
  3. Replies
    3
    Views
    128

    Short answer: You probably got confused which...

    Short answer: You probably got confused which value stand on which side during the comparison: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glStencilFunc.xhtml


    Long answer:

    Have...
  4. Then you have to start working on some tutorials...

    Then you have to start working on some tutorials to do the rendering yourself or try to use an existing library that already supports plotting.
  5. Replies
    5
    Views
    257

    https://learnopengl.com/

    https://learnopengl.com/
  6. First of all I am not sure if OpenGL is really...

    First of all I am not sure if OpenGL is really what you are looking for. OpenGL is a low level Graphics API. You can render/plot basically everything, at the cost of doing a lot of programming...
  7. Replies
    5
    Views
    257

    Sorry, but this is not a "Please do my homework...

    Sorry, but this is not a "Please do my homework for me"-forum. You could at least have removed the comment section at the start to make it look less like a homework.

    Learn how to draw a single...
  8. Then you have to search for tutorials that suit...

    Then you have to search for tutorials that suit your needs. If you want to learn OpenGL, try learnopengl.com.
  9. It might be in your code, that does not mean it...

    It might be in your code, that does not mean it is in the shader. If you define a variable A and write something like that:


    gl_FragColor = vec4(1,1,1, 1 - A*0);

    A would never end up being...
  10. It might be in your code, that does not mean it...

    It might be in your code, that does not mean it is in the shader. If you define a variable A and write something like that:


    gl_FragColor = vec4(1,1,1, 1 - A*0);

    A would never end up being...
  11. Replies
    3
    Views
    204

    Do the following: Set your clear color to red....

    Do the following:

    Set your clear color to red.

    If you see any red inside the model...
    ... disable blending or set the 4.th parameter of the output fragment to 1. If that helps, check your...
  12. You have a continuity problem based on the...

    You have a continuity problem based on the triangle interpolation. The following statements are not necessarily true for all interpolation models, but should be for the basic linear interpolations...
  13. Replies
    5
    Views
    260

    wxWidgets has its own OpenGL widget for rendering...

    wxWidgets has its own OpenGL widget for rendering that you can attach to any other widget of your program. You can create your own widget that derives from it and put all your OpenGl related...
  14. Not sure here if there isn't a default VAO but i...

    Not sure here if there isn't a default VAO but i didn't see you generating one. Try adding one before buffer creation


    GLuint VAO;
    glCreateVertexArrays(1, &VAO);
    glBindVertexArray(&VAO);
  15. Replies
    4
    Views
    206

    What happens if you use color =...

    What happens if you use
    color = vec4(0,passUv.x,passUv.y,1); as output of the fragment shader?

    You can also try to use a much larger texture. Just fill your array with the same values until you...
  16. Don' see a particular problem (delf calling of...

    Don' see a particular problem (delf calling of the function) here at first glance. Were do you call it? You can just use a debug build, set a breakpoint and traverse the call stack to see which...
  17. I have created the new issue:...

    I have created the new issue: https://github.com/KhronosGroup/OpenGL-Refpages/issues/54

    Saw that there are also
  18. Hard to give you an answer with so little...

    Hard to give you an answer with so little information.

    Which library do you use to create the window? GLUT? GLFW?
    How does your Render function look like?
    Were do you call your render function?
  19. Yes I have a GitHub account and already...

    Yes I have a GitHub account and already subscribed to your issue. I ll create the new issue later in the evening and post the link to it here. Thanks for your help :)
  20. Replies
    6
    Views
    412

    Glad you found a solution. ;)

    Glad you found a solution. ;)
  21. Maybe I was not specific enough about what I...

    Maybe I was not specific enough about what I meant with messing up. I meant something like you have buffer and an attribute and you want to connect them at binding point 1 but for some reason the...
  22. Replies
    6
    Views
    412

    okay some operations can be done at once, but I...

    okay some operations can be done at once, but I will write it down step by step.

    You are in model space were your texture is a rectangle with bottom left corner at (0,0) and your top right corner...
  23. Replies
    6
    Views
    412

    Rotation matrices always rotate around the...

    Rotation matrices always rotate around the coordinate origin (0,0,0). If you have a rectangle where the bottom left corner has the x/y-values (0,0) and you multiply a rotation matrix with it, it...
  24. glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

    Hi,

    I am updating my OpenGL classes and I am currently working on the wrapper for the vertex array object. I am trying to use only direct state access functions. Since one can mess up the...
  25. IntelliSense is a auto code completion tool and...

    IntelliSense is a auto code completion tool and not a compiler. It gets confused really fast (at least that was the case when I last used Visual Studio). As GClements wrote, we need some more lines...
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4
Proudly hosted by Digital Ocean