Skip to content

Cube map is black! #19

Open
Open

Description

@smkplus

Activity

  1. hecomi commented on Mar 30, 2019

    @hecomi
    Owner

    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

  2. smkplus commented on Apr 2, 2019

    @smkplus
    Author

    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

  3. hecomi commented on Apr 6, 2019

    @hecomi
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions