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

Page 1 of 15 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Skybox

    by trinitrotoluene
    Replies
    16
    Views
    3,341

    Oups, then try with a cube map texture with...

    Oups, then try with a cube map texture with seamless filtering if your graphic card can do that.
  2. Thread: Skybox

    by trinitrotoluene
    Replies
    16
    Views
    3,341

    Maybe you can try to enable seamless cubemap...

    Maybe you can try to enable seamless cubemap filtering .
  3. Replies
    20
    Views
    3,292

    Maybe it will not solve your problem, but...

    Maybe it will not solve your problem, but generally when comparing a floating point number to zero, it is better to test like this

    #define EPSILON 0.0001f //Any small value greater than ULP


    ...
  4. Replies
    17
    Views
    2,738

    To test your data, I have computed the min and...

    To test your data, I have computed the min and max for x and y. Then computed the mean value for both min max for each x,y and subtracted that value to each point. I do so because it easier to...
  5. Replies
    17
    Views
    2,738

    I have tried your data and the algorithm with...

    I have tried your data and the algorithm with stencil buffer work as is.http://s14.postimg.org/4ajwqxt2l/image.jpg I think your problem is when you read your data in a file or when you pass the data...
  6. Replies
    17
    Views
    2,738

    Can you put your vertices data on a hosting web...

    Can you put your vertices data on a hosting web site and put a link on this thread so I can test your data on my computer.
  7. Replies
    17
    Views
    2,738

    Which algorithm are you using, the one with...

    Which algorithm are you using, the one with stencil buffer or the one with GLU tessellation (a deprecated library) ?
  8. Replies
    17
    Views
    2,738

    Try that with a simple concave polygon first: ...

    Try that with a simple concave polygon first:



    //INIT CODE
    glEnable(GL_DEPTH_TEST);


    //DRAW CODE
    glClear(GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
  9. Replies
    17
    Views
    2,738

    You can draw filled concave polygon with the...

    You can draw filled concave polygon with the stencil buffer. See this thread and this link.

    Edit: with chromium on linux , open the link in a new tab otherwise the link bring me at the bottom of...
  10. Replies
    4
    Views
    1,052

    Can you post your TexImage2D and TexParameter...

    Can you post your TexImage2D and TexParameter code. Maybe the problem is there.
  11. You can use primitive restart. See the...

    You can use primitive restart. See the documentation .

    If you choose the value of the primitive restart index:



    GLuint pri = a_number;
    GLfloat vertices[?]={...};
    GLuint...
  12. I think that your position should not be...

    I think that your position should not be multiplied by frame time. The code should be like this:




    modelMatrix = glm::translate(glm::mat4(1.f),position);

    The unit of acceleration is m/s^2 ....
  13. A good introduction for particles and rigid body...

    A good introduction for particles and rigid body simulation is the lecture note of David Baraff and Andrew Witkin . For a newtonian simulation, mathematical knowledge to solve basic differential...
  14. The modification you wrote don't change anything...

    The modification you wrote don't change anything , the result will be the same. My version was


    1) set alls stencils values to 0
    2) set stencils values to 1 in the interior of the irregular...
  15. You can use the stencil buffer. Draw the shape of...

    You can use the stencil buffer. Draw the shape of your irregular part in the stencil buffer. Use the algorithm described here for concave polygon (see the Drawing Filled, Concave Polygons Using the...
  16. Take care when you are defining a floating point...

    Take care when you are defining a floating point number as a constant. 0.0 is a double by default for the compiler (i.e 64 bit) . Add an f after each of your floating point number, so the compiler...
  17. Replies
    1
    Views
    2,431

    Look at the bottom of this web page...

    Look at the bottom of this web page.
  18. Replies
    8
    Views
    1,316

    Re: Very strange shading effect

    The normals look good. The other problem I see is maybe the winding order of the triangle strip. Do you enable cull face? Depending on the state variable you set, triangles with clock wise winding...
  19. Replies
    8
    Views
    1,316

    Re: Very strange shading effect

    What is the size of BufferIds variable? Because in C/C++, array indice begin at 0. So when you declare GLuint BufferIds[4], valid indice are [0 to 3]. But I don't think that this will remove your...
  20. Replies
    8
    Views
    1,316

    Re: Very strange shading effect

    Here is the shaders I have modified.Maybe there still bugs but as I wrote previously, it work on a simple plane

    Vertex shader:


    #version 420

    layout(location=0) in vec4 VertexPosition;...
  21. Replies
    8
    Views
    1,316

    Re: Very strange shading effect

    I have tried your shaders (I have modified them a little bit) on a simple tessellated plane and it work. So maybe there is a problem with the normal of the sphere. Some vertices may have wrong...
  22. Replies
    13
    Views
    3,948

    Re: GL_ARB_multisample

    That's a driver bug then. The spec clearly states that GL_DITHER and GL_MULTISAMPLE are GL_TRUE by default. [/QUOTE]

    So I have at least two driver bugs. I decided to send my problem to the AMD...
  23. Replies
    13
    Views
    3,948

    Re: GL_ARB_multisample

    Did you set also this:


    SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS,1);


    To get the number of samples available call
    glGetIntegerv(GL_SAMPLES,&samples);

    On my old computer with nvidia...
  24. Replies
    13
    Views
    3,948

    Re: GL_ARB_multisample

    I have an AMD Radeon HD 5870 under Ubuntu and multisampling is not enabled by default with a multisample renderbuffer attached to a FBO. I must call glEnable(GL_MULTISAMPLE) explicitly. On the...
  25. Replies
    10
    Views
    5,313

    Re: Fast Way to Clear a Texture

    If your gl implementation support timer query, you can verify the time taken in nanoseconds to clear your texture.



    //------in init function
    GLuint timerObject;
    ...
Results 1 to 25 of 362
Page 1 of 15 1 2 3 4