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

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    2,874

    test,code:glUseProgram(texProgram); GLint...

    test,code:glUseProgram(texProgram); GLint texVar = glGetUniformLocation(texProgram, "fishTex"); printf("fishTex : %d\n", texVar); glUniform1i(texVar, 0); texVar =...
  2. Replies
    3
    Views
    1,744

    Thanks for your information! Any tool or way...

    Thanks for your information!

    Any tool or way to AMD is welcome too.
  3. Replies
    3
    Views
    1,744

    Opengl shadering performance

    Hi all,

    Opengl shading performance seems to be an unresolved issue. I’d like to put this topic here. Any comment will highly welcome.

    I used to use the following tools to get the opengl shader...
  4. Greate, It works! Thx a lot!

    Greate, It works! Thx a lot!
  5. Vertex shader: void main(void) { ...

    Vertex shader:

    void main(void)
    {
    gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
    }

    &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
    Fragment shader:
  6. virtual void OnInit() { glewInit(); ...

    virtual void OnInit()
    {
    glewInit();

    glClearColor(0.5f, 0.5f, 1.0f, 0.0f);

    // load (and compile, link) from file
    shader = SM.loadfromFile("vertexshader.txt","fragmentshader.txt"); ...
  7. Fragment shader output range: Can fragment shader output be out [0.0, 1.0]?

    Hi all,

    Iím wondering the range of values that GLSL fragment shader can output.

    I had an experiment that I couldnít get data out of [0.0, 1.0] from fragment shader even if I used float-point...
  8. Replies
    4
    Views
    1,313

    Because of the limitation of bus bandwidth in my...

    Because of the limitation of bus bandwidth in my application, I’m not allowed to map the texture to CPU to do such a job.

    Fragment shader is processed in parallel. If there is no way to share data...
  9. Replies
    4
    Views
    1,313

    It seems not clear enough for me. Let's take an...

    It seems not clear enough for me. Let's take an example:
    task: a texture contains a circle, we need to get the max and min x coordination of the circle;

    method: multi-rendering
    1. first...
  10. Replies
    4
    Views
    1,313

    Parameter storage in fragment shader

    Hi all,

    I want to do edge-detection and get the max or min x position of those edges in fragment shader. There seems no problem on edge detection, but Iím blocked on how to storage parameter...
Results 1 to 10 of 10