Coder Social home page Coder Social logo

Comments (5)

Try avatar Try commented on July 29, 2024

Hi, @hwnde !

I think SSR should be disabled for swamp.

Sure, but how? Only useful information engine has is the Material::group - so we know that it's a water.
From semi-useful data there is a texture (green'ish on swamp, blue on ocean) - this is not in use as not applicable for ocean and rivers.

from opengothic.

hwnde avatar hwnde commented on July 29, 2024

So texture is something that we could potentially use to branch the logic, correct?
Another approach is to implement ray traced reflections.

from opengothic.

Try avatar Try commented on July 29, 2024

He are examples of textures:
ocean:
0x000002047f7699b0
swamp:
0x000001ce22f71610

Naturally there are problems.
This is a single texture, that does not represent any of material properties. Using them as specular - works for swamp, probably, but not for ocean. Using them for transmittance - OK, but doesn't solve anything for SSR

Another approach is to implement ray traced reflections

Ray-tracing, in current gen of api's, is very awkward to use. It give us a 'hit', but then engine would have to evaluate(expensive) color at the hit-point. Animation is also something what doesn't just works. And even if we solve RT - this is only small subsets of GPU's.

from opengothic.

hwnde avatar hwnde commented on July 29, 2024

Did some experiments - I tried overriding alphaFunc for specific materials. The best results seem to be produced with Multiply - looks very close / identical to the original.

Screenshot 2024-03-04 214811

from opengothic.

Try avatar Try commented on July 29, 2024

The best results seem to be produced with Multiply - looks very close / identical to the original.

Multiply, while maybe works for swamp case, but completely ruins effect in open areas, such as harbor
изображение

Main issue is still stands - engine need to be aware, if sky is reachable, similar to sky-occlusion maps in modern engines

from opengothic.

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.