Giter Club home page Giter Club logo

Comments (4)

turanszkij avatar turanszkij commented on August 16, 2024

Hi, thanks for reporting! I didn't know about this. Might be because of reduced precision (16-bit) of the linear depth buffer. SSAO needs other quality and perf improvements too, maybe a complete rewrite.

from wickedengine.

turanszkij avatar turanszkij commented on August 16, 2024

It is fixed now

from wickedengine.

jdswebb avatar jdswebb commented on August 16, 2024

Thanks, I tried it out and it seems pretty good now up to far plane = 5k. After that it becomes stripy like this:

image

I appreciate I'm adjusting WE to allow more than 5k on the far plane - so if that's the intended limit then fine! 😃

Edit: you can start to see this effect mildly at around 4k.

from wickedengine.

turanszkij avatar turanszkij commented on August 16, 2024

Thanks again for testing, this is now a depth buffer precision problem. It won't be fixed, because for most cases, 16-bit linear depth buffer is enough and much better for performance. If you want such a large draw distance, you can fix it with changing one line (wiRenderer.h, line 19):
static const wiGraphics::FORMAT RTFormat_lineardepth = wiGraphics::FORMAT_R16_UNORM;
change to this:
static const wiGraphics::FORMAT RTFormat_lineardepth = wiGraphics::FORMAT_R32_FLOAT;
(You will have to rebuild after this change)
Now the 16-bit precision works well up to ~10 000 units view distance

I just pushed an other quick fix for ssao too.

from wickedengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.