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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    777

    I'm kinda torn between going either MSAA or FXAA...

    I'm kinda torn between going either MSAA or FXAA (or both combined? at the same time? if that works) approach to my deferred shading. Any recommendations?

    For FXAA I know theres a shader lying...
  2. Replies
    4
    Views
    777

    MSAA in deferred shading questions

    I'm trying to tackle MSAA in deferred shading.

    Here' my current deferred renderering pipeline:


    1. Geometry stage - Render geometry to textures (position/normals/diffuse)
    2. Shading stage -...
  3. Solved it! Apparently the Up-vectors used when...

    Solved it!
    Apparently the Up-vectors used when rendering the 6 cubemap faces were wrong. The correct ones for me where:


    const Vec3 CUBEMAP_UP_VECTORS[CUBEMAP_NUM_FACES] = { Vec3(0.0f, -1.0f,...
  4. The view matrix consists of a translation and a...

    The view matrix consists of a translation and a rotation component, right - so the "base matrix", which we agree I need in the shader, is the translation matrix? Does the translation "put me in eye...
  5. But what is the "forward" direction in this case?...

    But what is the "forward" direction in this case? I find the term confusing; I can understand a forward vector in terms of a directional light, but what is it for omnidirectional lights? What is the...
  6. It definately is in world space; I'll try get it...

    It definately is in world space; I'll try get it in light space instead. A couple of follow-up questions arise though :)

    1. What I don't understand though is how would you put it in light space?...
  7. bump! any insights?

    bump! any insights?
  8. Omnidirectional shadow mapping and wrong space?

    I've been banging my head against the wall when dealing with point light shadow mapping, and a recent idea is that I might've been comparing two depth values from different spaces and I'd like some...
  9. Replies
    11
    Views
    2,615

    I'm not doing any object culling, but I'm not...

    I'm not doing any object culling, but I'm not adjusting the frustrum either to fit objects within it either. I tried simply multiplying the frustrum size by two and it seemed to help abit, but the...
  10. Replies
    11
    Views
    2,615

    You are right, it works just fine using the...

    You are right, it works just fine using the values from CalculateShadowmapCascades() without any other modification

    So I guess the original problem I had didnt have to do with that.

    I've got...
  11. Replies
    11
    Views
    2,615

    Isn't the resulting corners in world-space, after...

    Isn't the resulting corners in world-space, after multiplying by inverse viewProj matrix and dividing by W?



    OK, as eye-space originates from origo and looks down the -Z axis, {-6, -12, -18,...
  12. Replies
    11
    Views
    2,615

    I know it's confusing, I'm using the term "split...

    I know it's confusing, I'm using the term "split distances" in two places, the first one (which I assumed you were refering to in your first post and code) is this:


    void...
  13. Replies
    11
    Views
    2,615

    I was talking about the split distances used for...

    I was talking about the split distances used for the comparison in the shader; I already have the computation of split distances working.

    For example, here's the lighting fragment shader I use:
    ...
  14. Replies
    11
    Views
    2,615

    Cascaded shadow mapping and split values

    Reposting, as the last topic is bugged and cant be edited.

    I'm having issues where shadows vanish at certain angles and I want to ascertain I am using the correct values to determine the split...
  15. Cascaded shadow mapping and determining the split

    Reposting, as previous topic seems to have imploded.

    For most of the part, the cascaded shadow mapping works as intended, but at certain angles shadows are cut. I believe it might be because of...
  16. Alright, so I've filled the depth maps for each...

    Alright, so I've filled the depth maps for each split.. now, when doing the fragment shader for the lighting stage, it strikes me, what matrix do I send to the shader? I am using deferred...
  17. Doing the inverse camera view-projection and then...

    Doing the inverse camera view-projection and then dividing by W, dosn't that put the frustrum corners in world space?

    And once I have the cameras frustrum, now I want to split this into...
  18. Ok - do I use the cameras view matrix, and then...

    Ok - do I use the cameras view matrix, and then for each split generate a new perspective projection matrix, using the split range as the near/far dist?

    Something like:


    Mat4 viewMatrix =...
  19. The "view frustrum" you mention is the cameras...

    The "view frustrum" you mention is the cameras view-projection matrix right? Is there any way to "chop up" the cameras view-projection matrix for each of the cascade ranges or do you have to...
  20. I've been looking at the article, and one thing I...

    I've been looking at the article, and one thing I don't understand is what is a "crop matrix" they talk about and what is it used for?
  21. Cascaded shadow mapping and GL_TEXTURE_2D_ARRAY?

    I've got basic directional shadow mapping working and now I'm looking into improving this using technique called "Cascaded Shadow Mapping", where you use several depth textures to get better quality...
  22. Thank you, it looks better now, but I still have...

    Thank you, it looks better now, but I still have a problem.

    Just before the camera leaves the extent of the shadows of the models, the shadows sometimes gets wierd artifacts, like very stretched...
  23. If I keep the position in the center of the box,...

    If I keep the position in the center of the box, won't the shadows be skewed due to the light being too close-up with the objects?
  24. Directional light and shadow mapping view/projection matrices

    I'm having trouble implementing shadow mapping for directional lights (lights with a light direction but no defined position; such as the sun).
    I managed to get spotlights shadow mapping working in...
  25. Directional light and shadow mapping view/projection matrices

    I'm having trouble implementing shadow mapping for directional lights (lights with a light direction but no defined position; such as the sun).
    I managed to get spotlights shadow mapping working in...
Results 1 to 25 of 33
Page 1 of 2 1 2