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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. I used uint ; "unsigned" is in the error message....

    I used uint ; "unsigned" is in the error message.

    So bad news if this is not a beginner mistake with #version or something else... :(

    Thanks for your quick answers.
  2. Shader compilation error : 'unsigned' reserved word

    Hello,

    I wrote a shader in version 110.
    I changed an uniform variable from int to unsigned int.
    I had no problem on my computer with nvidia card.
    But on another computer with ATI X1300/1550 I...
  3. You confirm what I thought. So I searched why...

    You confirm what I thought.
    So I searched why my views are not coherent with that.
    I found that my shader is disabled after the first frame, which explains the background is well drawn after the...
  4. Drawing a vbo without using an enabled shader ?

    Hello,

    1- I would like to know how it works...

    I am drawing a 3D model in a perspective view with a background. (no problem)

    To do that I first draw the background :

    glClear(...)...
  5. Hello, I also had a problem with glReadpixels...

    Hello,

    I also had a problem with glReadpixels : the depth buffer was invalid on parts of the view...
  6. A small update. I tested with the condition...

    A small update.

    I tested with the condition always false.


    if (bIsTexture != 0) // always false
    glTexCoord = glTexGen(0, TexGenMode, v);
    So the function is not called. And I have the...
  7. Thanks for the information concerning the...

    Thanks for the information concerning the varyings.
    I tried to return a vec2 but I still have the problem...
  8. @carsten neumann I tried to return a vec2 from...

    @carsten neumann
    I tried to return a vec2 from my function but that is not better...

    @tonyo_au
    I will check if I have unused variables.
    I reproduced the problem with this simple unused float....
  9. Thanks for the answer. I have renamed the...

    Thanks for the answer.
    I have renamed the function but I have the same result...

    And I edited my post to add [code] tags ! ;)
  10. GLSL shader - 2 "funny" things on ATI cards (again...)

    Hello,

    I would like to know if you see huge errors in my code.
    It's incomprehensible for me...

    1- If I call a function in my vertex shader some views are not drawn. If I copy/paste the code of...
  11. Hello V-man, Thanks for following my post....

    Hello V-man,

    Thanks for following my post.
    And you have found something !

    As I am discovering FBO it was easier to quickly test the pixel format.
    And with our classical pixelformat, which...
  12. Yes. To then use gluUnProject to show world...

    Yes. To then use gluUnProject to show world coordinates in the status bar or to move in the scene on some mouse events.


    It is incredible (for me...) but there is no drawing problem. Maybe a...
  13. Thanks for your answer. For the fun, here are...

    Thanks for your answer.
    For the fun, here are the depth buffers... http://imageshack.us/photo/my-images/15/pbdepthbuffer.png/

    To answer, the view is refreshed because I added geometry. And the...
  14. Problem with glReadPixels on a part of a view on ATI cards

    Hello,

    I can't find what is wrong on ATI cards. On nvidia I have no problem.
    Maybe you will have an idea...

    I have 3 views :
    - a 2D (ortho) view on the left
    - two 3D (pers) view on the...
  15. Replies
    5
    Views
    1,608

    I have a small related question : When using...

    I have a small related question :
    When using shaders the fixed functions are ignored.
    Does it mean that the functions are not run or that the functions are run but the results deleted before...
  16. Replies
    5
    Views
    1,608

    The links on the specs are on the GLSL wiki (...

    The links on the specs are on the GLSL wiki ( http://en.wikipedia.org/wiki/GLSL ).

    I wrote something wrong in my previous post : the 2 variables are built-in in version 110. Therefore they may be...
  17. Replies
    5
    Views
    1,608

    Hello Tonyo, When you say "having a look at...

    Hello Tonyo,

    When you say "having a look at what variables are still defined" you mean the "built-in variables" excluding the "Compatibility Profile Built-In Variables" ? And the built-in...
  18. Replies
    5
    Views
    1,608

    Shader and texture coordinates computation

    Hello,

    I am discovering that fixed functions concerning textures are not used with shaders...
    I replicated glTexGen using the orange book to test : it works.

    But I have some beginner questions...
  19. Thanks for your help. I did stupid things with...

    Thanks for your help.
    I did stupid things with texture id in place of sampler.
    Now without changing my code but with the pair glActiveTexture(...);/glBindTexture(...); I can see my texture.

    No...
  20. Hello, I am trying something but it does not...

    Hello,

    I am trying something but it does not work yet. I would like to know if it may work :

    - I create a display list and store the textureID used during the display list creation.

    When I...
  21. The display lists draw geometry with old opengl...

    The display lists draw geometry with old opengl 1.1 functions :
    - they set geometry attributes : line width, line stipple, polygon stipple or texture
    - they draw the geometry with basic functions...
  22. Light shader and texture (in display lists...)

    Hello,

    I had an old code like this :
    glColor(c);
    glCallList(l);

    I replaced it with :
    LoadShader();
    SendColor with glUniform
    glCallList(l);
  23. Hello, I am a beginner, so... In this...

    Hello,

    I am a beginner, so...

    In this formula : colorVarying = diffuseColor * nDotVP;
    The last component (alpha) in diffuseColor is 1.0. But after calculation if it is no more 1.0 then your...
  24. I am a beginner too. I used the color to verify...

    I am a beginner too.
    I used the color to verify some values. For example :
    gl_FragColor = vec4(N.x, N.y, N.z, 1); // N is a normal
    if ((N.x < 0.019) &&(N.y < 0.019) && (N.z < 0.019)) gl_FragColor...
  25. Hello, In fact the color is not set in the...

    Hello,

    In fact the color is not set in the display lists in the existing code.
    So I followed your advice and I replaced glColor with glMaterial.
    And now it works on ATI too. :)

    So I have not...
Results 1 to 25 of 51
Page 1 of 3 1 2 3