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

Search: Search took 0.00 seconds.

  1. True for both ideas. You clearly get my point...

    True for both ideas. You clearly get my point about avoiding redondant compuation in the shaders.
  2. As I said, you might need the mv and mvi in the...

    As I said, you might need the mv and mvi in the vertex shader to get the coordinates in model view and the normal in model view which is really useful for light computation in the fragment shader. I...
  3. Yes but your aspect ratio is held by the...

    Yes but your aspect ratio is held by the projection matrix, thus held by the mvp matrix. By multiplying a vertex by the mvp you get coordinates such as the values in [-1, 1] are displayed on the...
  4. I I understand you request, you need to apply to...

    I I understand you request, you need to apply to the vertex the mvp + a bias to get the texture coordinates.
    textureCoord= bias * mvp * gl_Vertex;

    the bias matrix is a 4x4 matrix:
    bias = (
    0.5,...
  5. Replies
    4
    Views
    2,981

    I'm new with openGL too, but I think it comes...

    I'm new with openGL too, but I think it comes from your includes. First make sure you include glew before glfw. Then, if It wasn't that, try adding -lglew and -lglfw.
    I've never used glfw so I can't...
  6. Replies
    1
    Views
    918

    The grid is not moving, but I managed to compile...

    The grid is not moving, but I managed to compile it. I trie with gcc, then there where way more errors than you declared. However, I consider you use g++ so the error comes from thoses lines :...
  7. If you're scared about the precision, you can...

    If you're scared about the precision, you can render your world with differents perspective matrix. First render the far items with a 1km to 50km near and far plane, then render 1m to 1km. and you...
  8. Replies
    1
    Views
    2,332

    Some news. While trying to figure out what was...

    Some news. While trying to figure out what was the problem I found an other one (or maybe the only one, who knows).

    My texture matrix doesn't seem to be that goog.

    From the light point of view,...
  9. Replies
    4
    Views
    925

    Hi, The last time I got this error, it was...

    Hi,
    The last time I got this error, it was related to my graphic card drivers. Unless I'm wrong, make sure you've got you're latest graphic driver installed and that you're using them while...
  10. Replies
    21
    Views
    5,894

    Hi, I've got the exact same problem except I...

    Hi,
    I've got the exact same problem except I only use sampler2D as shadow map. I should have read some thread before post mine. However, I'm quite sure the answer to your problem will also solve...
  11. Replies
    1
    Views
    2,332

    Can't make texture works

    Hi, I'm new with openGL and I can't seems to make textures work properly. I need to cast shadows and I refer to this toturial for this purpose : http://fabiensanglard.net/shadowmapping/index.php....
Results 1 to 11 of 11