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

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    3,144

    It seems that you are correct. I changed both the...

    It seems that you are correct. I changed both the vec tags and the color type at the same time, and I had seen an example fragment shader mixing vec3 and vec4 (a deferred shader which used vec4 for...
  2. Replies
    15
    Views
    3,144

    I found the issue. The shader correctly writes to...

    I found the issue. The shader correctly writes to the second texture if I set it to be RGBA as well (RGBA, RGBA8, RGBAF32, RGBF16, etc.). With that said, is this a requirements with FBOs, where all...
  3. Thread: Opengl Robot.c

    by VASIMR
    Replies
    5
    Views
    2,609

    For the first person camera, you could try using...

    For the first person camera, you could try using glLookAt, by setting the camera / eye position to be at the center of the head, and then placing the look at target on a unit sphere (centered on the...
  4. Replies
    15
    Views
    3,144

    All of the shaders that I am calling while the...

    All of the shaders that I am calling while the FBO is active are writing to location 1, however, the texture doesn't seem to change. I tried even revering the texture back to RGB8 form, and am...
  5. Replies
    15
    Views
    3,144

    I was considering doing that, however, I don't...

    I was considering doing that, however, I don't think it needs to be that precise. As I said, I am only planning on using it for MLAA and discarding fragments on the far plane. I figured that I could...
  6. Replies
    15
    Views
    3,144

    Specifically what I am looking to do is save the...

    Specifically what I am looking to do is save the depth buffer in RGBF16/F32 (or RF16/F32 format if that will work) so that I can send it to a sampler2D to be used in the edge detection stage of an...
  7. Replies
    15
    Views
    3,144

    Thanks for the reply. I attempted to do the...

    Thanks for the reply. I attempted to do the following:



    float * buffer = new float[1024*780];
    glGetTexImage(GL_TEXTURE_2D,0,GL_DEPTH_COMPONENT,GL_FLOAT,buffer);
    ...
  8. Replies
    15
    Views
    3,144

    Thanks for the reply. I tried gdebugger and was...

    Thanks for the reply. I tried gdebugger and was able to verify that the depth information is indeed writing to the depthTex. Additionally, as you suggested, the depth values are around 0.989..
    With...
  9. Replies
    15
    Views
    3,144

    Saving Depth Buffer to Texture

    Hello,

    I am attempting to save the both the frag and depth buffers to a texture for use with subsequent render passes. To verify that the depth buffer is correctly being rendered to the texture...
  10. Replies
    3
    Views
    1,279

    I found the problem. I was using glSetUniformf...

    I found the problem. I was using glSetUniformf instead of glSetUniformi.
  11. Replies
    3
    Views
    1,279

    Thanks for the reply, I will remove the enable...

    Thanks for the reply, I will remove the enable tags for GL_TEXTURE_2D.

    There is a #version tag at the top, denoting version 4. Additionally, I am checking for compile and linking errors, there...
  12. Replies
    3
    Views
    1,279

    Problem with multi-texturing

    Hello,

    I am attempting to get a simple program to work which passes two textures to a shader, and will allow me to switch between the two. Unfortunately, the shader only draws the texture that is...
  13. Replies
    1
    Views
    613

    Question Regarding VBO/VAO and Attributes

    Hi,

    I am starting to learn GLSL, and have been working on a simple tutorial that involves drawing a triangle with different colored vertices. So far however, I have only been able to change the...
  14. Replies
    3
    Views
    1,405

    Re: Modifier Key Input Question

    Is it possible to use GLUT and GLFW in conjunction? (i.e. Have a program written with GLUT, and has GLFW running along side of it for user input). Or would such a thing be unadvised?

    Thanks.
  15. Replies
    3
    Views
    1,405

    Modifier Key Input Question

    Hello,

    I have been trying to find a way for OpenGL to recognize a the use of a single modifier key. The function glutGetModifiers() will only work if some other input is called at the same time.
    ...
  16. Replies
    5
    Views
    2,142

    Re: Moving Texture and Stack Order

    I am not exactly sure... I added code that was in several examples that contained texture mapping. I think this may be what you are asking though, I call these function before loading the textures.
    ...
  17. Replies
    5
    Views
    2,142

    Moving Texture and Stack Order

    Hi,

    I am having two issues with some OpenGL code.

    One is moving textures on a gluSphere. What I mean by this is, as the camera or object moves around, the texture seems to rotate on the...
Results 1 to 17 of 17