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: S&W

Search: Search took 0.00 seconds.

  1. Thread: GL_DEPTH_COMPONENT

    by S&W
    Replies
    2
    Views
    653

    GL_DEPTH_COMPONENT

    Please let me ask you a simple question.
    Is it possible to use GL_DEPTH_COMPONENT format with GL_TEXTURE_CUBE_MAP_ARB?

    I want to make a depth cube map...
  2. Replies
    3
    Views
    534

    Re: Problem with cubemap fetch

    Yep, both g_CubeMapLoc and vTexCoord contain correct values.
    And of course I'm calling glUseProgramObjectARB() before calling calling glUniform1iARB().

    This is very mysterious for me...
    I gotta...
  3. Replies
    3
    Views
    534

    Problem with cubemap fetch

    I'm now rewriting my dynamic cubemapping demo into GLSL shaders from fixed pipelines,
    but I have a problem with cubemap fetch and the cubemap location.

    fragment shader:


    uniform samplerCube...
  4. Replies
    26
    Views
    3,382

    Re: Please improve the glSlang spec !

    yooyo:

    I just checked your example shaders on ATI Radeon 9800 Pro.
    But there's no support in the Catalyst 4.3!
    (I haven't checked with Catalyst 4.4 or 4.5, because they are too slow!)
  5. Replies
    26
    Views
    3,382

    Re: Please improve the glSlang spec !

    Yeah, I have the same thought about that, Jan.

    I want GLSL to implement a instruction of the inverse matrix computation too, for example, Projective Texturing or Shadow Mapping.
  6. Re: Problem: projective texture matrix with shadow mapping.

    That was my stupid question...
    And thanks, jwatte.
  7. Re: Problem: projective texture matrix with shadow mapping.

    Well, I've succeeded in implementing with this tutorial .
    But these are fixed functions,
    so is it possible to use a texture matrix which generated by glEnable(GL_TEXTURE_GEN_S/T/R/Q) in GLSL...
  8. Re: Problem: projective texture matrix with shadow mapping.

    Well, I've ported the code from C++ to C,
    so maybe something went wrong with my code:


    void SetupProjectiveMatrix(void)
    {
    glMatrixMode(GL_MODELVIEW);
    glPushMatrix();
    glLoadIdentity();...
  9. Re: Problem: projective texture matrix with shadow mapping.

    Looks like there's no way I can solve this problem without any matrix knowledge...
  10. Re: Problem: projective texture matrix with shadow mapping.

    Oh, it's a small world. :D

    Well, to be honest, I'm not really understanding the projective matrix algorithm.
    So I just take your codes in my program:


    glMatrixMode(GL_TEXTURE);...
  11. Problem: projective texture matrix with shadow mapping.

    Hi all.

    I'm trying to implement Shadow Mapping with this tutorial ,
    but I'm now at a loss because the projective texture breaks when I move the camera view.
    And here's some codes...

    ...
Results 1 to 11 of 11