Giter Site home page Giter Site logo

Cube map is black! about uraymarching HOT 3 OPEN

hecomi avatar hecomi commented on July 23, 2024
Cube map is black!

from uraymarching.

Comments (3)

hecomi avatar hecomi commented on July 23, 2024

If you use RaymarchingRenderer, please replace it with a large-scale cube which uses the same distance function (please refer to Mod World for VR as an example or the No lighting with RaymarchingRenderer in forward path section in readme). RaymarchingRenderer uses CommandBuffer to render raymarched objects but this does not affect the camera created by RenderCubemapWizard.

capture

from uraymarching.

smkplus avatar smkplus commented on July 23, 2024

thanks it works like charm I could make a cube map!
can you explain what you used to fix this issue because I have same issue in this shader:

https://github.com/Flafla2/Generic-Raymarch-Unity

from uraymarching.

hecomi avatar hecomi commented on July 23, 2024

Generic-Raymarch-Unity uses ImageEffect to render raymarch objects. The cameras which create a cubemap doesn't use ImageEffect to get clear images (please think about that bloom or depth-of-field shouldn't be used for these images). On the other hand, The above method of uRaymarching uses just polygons to render raymarch objects. So cubemap cameras can see these objects.

To fix this problem in Generic-Raymarch-Unity, you have to customize the shader to use a full-screen quad mesh to render raymarched objects instead of ImageEffect.

from uraymarching.

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.