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: Ehsan Kamrani

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. What's the idea behind deferred lighting

    Hi
    I have read several tutorials about deferred lighting. All of them explain the codes instead of explaining the algorithm in a few lines.
    All of them say we should render the position, normal,...
  2. Well looks like I can use one draw buffer to...

    Well looks like I can use one draw buffer to render all of the textures. Am I correct? For example:
    myVec43 = vec4((diffuseColor.xyz + GlossColor.xyz ) * 0.5, 0.0);
    In order to blend diffuse and...
  3. cannot locate suitable resource to bind parameter

    Hi,
    I'm implementing deferred lighting. My models contain several texture layers including:
    Diffuse
    Alpha Map
    Gloss Map
    Specular Map
    Dirt Map
    Shadow Map

    So I should render these layers to 8...
  4. Replies
    1
    Views
    703

    The method you have used is not suitable to show...

    The method you have used is not suitable to show rotation. Use glut to set a timer and use double buffers. Then draw the quad including its translation and rotation once per frame.

    Beside this...
  5. Replies
    8
    Views
    1,799

    I'm not sure if your FBO status is complete....

    I'm not sure if your FBO status is complete. Please use glCheckFramebufferStatus() to see if FBO status is complete (GL_FRAMEBUFFER_COMPLETE).
    Moreover, use gluOrtho2D with simple glBegin()/glEnd()...
  6. Replies
    2
    Views
    745

    This link is helpful:...

    This link is helpful:
    https://www.opengl.org/discussion_boards/showthread.php/178014-MS-Visual-Studio-2010-NET-Express-OpenGL-How-to-set-up-everything-1st-run
  7. Replies
    8
    Views
    1,799

    Moreveor, you haven't sent the texture unit to...

    Moreveor, you haven't sent the texture unit to your shader. Use glUniform1i to send the texture unit to the shader:
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, colorTex);...
  8. Replies
    8
    Views
    1,799

    Could you please disable face culling as well...

    Could you please disable face culling as well while rendering the 2D quad?
    glDisable( GL_CULL_FACE )
  9. It seems that FBO is not supported by those...

    It seems that FBO is not supported by those machines.I always check FBO extension before calling its functions.
  10. Replies
    1
    Views
    1,052

    for each geometry,you should generate one VBO....

    for each geometry,you should generate one VBO. glBufferSubData is useful for geometries that change over time(for example,skeletal animation)
  11. you can use alpha channel for your 2D texture to...

    you can use alpha channel for your 2D texture to mask specific parts of texture. Then use discard method in GLSL or simple alpha blending to render the textures.
  12. Replies
    8
    Views
    1,799

    I did not look at your code(I can not see your...

    I did not look at your code(I can not see your code in my cell phone) here is my suggestion: render the scene to a texture using FBO and then bind this texture and draw a 2D quad that covers your...
  13. Replies
    1
    Views
    576

    could you please attach normal map texture as...

    could you please attach normal map texture as well as screenshots from the 3d scene?
  14. Thread: errors

    by Ehsan Kamrani
    Replies
    1
    Views
    460

    you should include glut.h as well.

    you should include glut.h as well.
  15. You may use glGenBuffers to generate a set of new...

    You may use glGenBuffers to generate a set of new buffer object names.

    Why don't you bind bitmap data as a texture in OpenGL? GL_ARRAY_BUFFER is used to bind VBOs.



    void bindTexture(...
  16. Replies
    1
    Views
    997

    My problem solved. I was sending the uniform...

    My problem solved. I was sending the uniform information before using the shader :D But it seems that NVidia manages the clipping internally. It means that it reads the fixed functions such as...
  17. Replies
    1
    Views
    997

    Problem with clip planes on ATI

    I have a problem with clipping on my ATI card. but my NVidia graphics card clips the geometries with the same code. Note that I have updated the latest driver of my ATI graphics card from HP website...
  18. Re: Transforming the 3D model affects the shadow map

    Thanks, my problem solved :-)
  19. Transforming the 3D model affects the shadow map

    Based on this article I have implemented the shadow map. everything seems to be OK. but when I transform the 3D model using the translation/rotation/scaling, the shadow becomes distorted.Also when...
  20. Re: I get black scene while using FBO+multisampling

    But I have enabled multisampling without creating a multisample texture( I set the parameters of the 2D texture using glTexImage2D function ). So why should I use multisample texture?
  21. Replies
    1
    Views
    1,626

    How to create a 2D multisample texure?

    I try to set the target of glTexImage2D to GL_TEXTURE_2D_MULTISAMPLE. But I just see a white texture!
    Here's my code:

    glGenTextures(1, &m_texture2 ); ...
  22. Re: I get black scene while using FBO+multisampling

    I understood what's wrong in my code. Regarding this article I must use 2 FBOs.
  23. Re: I get black scene while using FBO+multisampling

    Well, the return value is GL_FRAMEBUFFER_COMPLETE_EXT.Note that I haven't created and attached a multisample color buffer to the FBO. I just attach a 2D texture to color buffer 0.
    How should I...
  24. I get black scene while using FBO+multisampling

    Hi there
    The following code works fine:


    glGenTextures(1, &m_Texture );
    glBindTexture(GL_TEXTURE_2D, m_Texture ); ...
  25. Re: computing the position-orientation of the camera

    Thank you :-) my problem solved :-)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4