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

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    605

    Thanks, this is very helpfull!

    Thanks, this is very helpfull!
  2. I wonder why you would want your own...

    I wonder why you would want your own rasterization . I do think it would be cool to do ray tracing with 'real' ambient occlusion algorithms on the fragment shaders, by defining your inworld objects...
  3. Replies
    4
    Views
    605

    Thanks, this is very clear, now my next question...

    Thanks, this is very clear, now my next question would be, how would you find the point of origin of a camera ray in orthogonal projection? I assume you'd have to use the gl_FragCoord somehow???
  4. Replies
    4
    Views
    605

    rays from camera to fragment in eye space

    Hi I was wondering: in a shader I'm writing I'm assuming that the 'ray' that I construct from the camera to to the fragment starts at 0,0,0 and goes trough the eyespace position of the fragment....
  5. Replies
    2
    Views
    342

    Ahh i understand now, thank you very much! I...

    Ahh i understand now, thank you very much! I though it would always read 4 values per texel.
  6. Replies
    2
    Views
    342

    Sampling float from texture(rect)

    Hi there,

    I wanted to use a texture/buffer to access my heightfield on my vertex shader. However, the heights are floats and it seems like all methods that sample 2dtextures return vec4, which has...
  7. Replies
    7
    Views
    657

    Thanks, this is helpful in several ways. I used...

    Thanks, this is helpful in several ways. I used dfDx and dfDy in the frament shader to compute the triangle normals, but now I also understand where these functions come from. Also the advice on...
  8. Replies
    7
    Views
    657

    what derivatives are you referring to, what are...

    what derivatives are you referring to, what are they used for (just out of curiosity) ?
  9. Replies
    7
    Views
    657

    Thanks! I was thinking that if is was only called...

    Thanks! I was thinking that if is was only called for each pixels on the screen then it wouldn't depend much on the number of triangles drawn, but I'll assume it does depend on that now for speed...
  10. I really thought this tutorial was useful when I...

    I really thought this tutorial was useful when I started without any knowledge of shaders:

    http://www.lighthouse3d.com/opengl/glsl/
  11. Replies
    7
    Views
    657

    How often is a fragment shader run?

    I was wondering how often you can say a fragment shader is run...
    Can you say that only 1 fragment shader is called for each pixel on the screen? Or is it run for each pixel in each triangle that is...
  12. Thanks a lot, that was the answer was hoping for!...

    Thanks a lot, that was the answer was hoping for! I am working from scratch and i do prefer my own type of lights, so i'll just pass my own lights then.
  13. Speed of built in lights v.s. custom lights

    Hi there,

    Quick question: if you are writing a custom shader for lighting, it is still useful (faster) to use the build in lights from openGL, or might I just as wel use my own array of lights? I...
  14. Replies
    4
    Views
    618

    Thanks for pointing that out! I was looking at it...

    Thanks for pointing that out! I was looking at it and found the following discussion, which seems to answer my question. Seems it is possible to calculate the face normals in a a fragment shader so...
  15. Replies
    4
    Views
    618

    yes I mean they have to be flat looking... I'm...

    yes I mean they have to be flat looking... I'm going for terrain-look like simcity 2000, but then in 3d..


    But I CAN get flat looking faces use gouraud shading, as long as I point all the...
  16. Replies
    4
    Views
    618

    flat/gourad shading question

    Hi there,

    For a project I have a terrain (height map), for which I preferably would only like to use 1 vertex per height point, but the problem is that I would like to have hard edges. If I use...
Results 1 to 16 of 16