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.57 seconds.

  1. Replies
    1
    Views
    611

    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...
  2. Replies
    1
    Views
    611

    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...
  3. Re: Transforming the 3D model affects the shadow map

    Thanks, my problem solved :-)
  4. 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...
  5. 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?
  6. Replies
    1
    Views
    1,228

    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 ); ...
  7. 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.
  8. 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...
  9. 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 ); ...
  10. Re: computing the position-orientation of the camera

    Thank you :-) my problem solved :-)
  11. Re: computing the position-orientation of the camera

    Thanks.
    But what about the camera position?
  12. computing the position-orientation of the camera

    Hi
    I have loaded the camera information from a COLLADA file. it contains of translation, rotation and scaling. So based on these transformations, I compute the local to world matrix and then compute...
  13. Re: is freezing the meshes inside Maya a good choice?

    Yes, You're correct. I always transform the vertexes inside my vertex shader, So freezing the meshes is not a good idea for me.
  14. is freezing the meshes inside Maya a good choice?

    Hi there
    As you well know, Maya software has an option to freeze the meshes. It multiplies the vertexes by the transformations and computes the world space position of each vertex. So there's no...
  15. Re: how to optimize the bloom effect?

    But I have requested a window with multisampling--I have requested 8 samples per pixel.
    with that method, I don't need to have a texture with multisampling, since I blur the texture for N times and...
  16. Re: how to optimize the bloom effect?

    OK, Thanks.But what about decreasing the FPS while rendering to the bigger textures? Does FBO support multisampling while rendering the scene to texture?


    I asked him with a "personal message"...
  17. Re: how to optimize the bloom effect?

    Thanks buddy
  18. Re: how to optimize the bloom effect?

    ZBuffer,
    It seems that the texture dimensions are really important. If I use a 1024 * 1024 texture, I don't get good results--The texture quality isn't good enough in my 22" monitor with 1680 * 1050...
  19. Re: how to optimize the bloom effect?

    Thanks ZBuffer. But What about the quality of the texture? I have currently used a 512 * 512 texture. Then it seems with your manner,I must render to a bigger texture? What about multisampling? Does...
  20. Re: how to optimize the bloom effect?

    If you see the algorithm , you understand what I'm talking about:
    1.Render the scene as usual
    2.Render the same scene to the texture
    3.blur the texture for N times
    4.apply the texture to the...
  21. Re: how to optimize the bloom effect?

    It's correct that I have rendered it once, but I have rendered it to the *default frame buffer*--not to the texture.
    To render to texture, I have used FBO for offscreen rendering. This is my...
  22. how to optimize the bloom effect?[not solved yet]

    My question hasn't been solved yet
    I have used this algorithm to apply the bloom effect to the scene( As suggested in the book "More OpenGL Game Programming" ):
    1.Render the scene as usual...
  23. Replies
    6
    Views
    2,147

    Re: Working with floating point textures

    Thanks. Now I understand it :-)
  24. Replies
    7
    Views
    1,971

    Re: some questions about gl 3+

    OK, What do you mean from "allocating" a COMPATIBILITY profile. As far as I know, if the implementation supports GL_ARB_compatibility extension, then we can use old functions.
  25. Replies
    6
    Views
    2,147

    Re: Working with floating point textures

    No I didn't misunderstood it. It describes about the "ARB_color_buffer_float" extension. Then it introduces glClampColorARB() and explains that we must use this function to disable vertex and...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4