Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Increase render distance for editor with raytracing (HDRP)

Discussion in 'Editor & General Support' started by DamySamy, Aug 26, 2020.

  1. DamySamy

    DamySamy

    Joined:
    Jul 7, 2020
    Posts:
    3
    I'm looking for a way to increase the render distance in the editor view. I'm using raytracing with the HDRP and the render distance is pretty short.

    Currently the lighting is only rendered for a relatively small spherical region, for performance reasons I guess.
    You can see this effect in the attached image, showing the small render distance.

    Can I however increase the render radius with raytracing for the editor?
     

    Attached Files:

    Last edited: Aug 27, 2020
  2. fireburner80

    fireburner80

    Joined:
    Feb 8, 2018
    Posts:
    3
    There are two ways of resolving this:
    1. Increase the ray length. This can be found under the "global illumination" override under "ray length". However, it has a maximum value of 50.
    2. Scale down your game.

    I used a combination of these. I decreased all scale, position, velocity, and acceleration values by a factor of 10. Everything behaved the same as it did before and raytracing worked.

    NOTE: If you get some clipping of nearby objects, decrease the near clip plane on your camera by an equivalent scaling value.
     
    DamySamy likes this.
  3. DamySamy

    DamySamy

    Joined:
    Jul 7, 2020
    Posts:
    3
    Ah thank you! Just saw it in the Profile.

    I wished that the ray length would be as far as I want, because I'm not writing a game, but a high quality ray tracing simulation which does not have to be real-time.

    Actually your idea is hilarious, didn't thought about "shrinking" the scale of the scene!

    Nonetheless, the max ray length is completely arbitrary in the engine. Maybe the shader is doing something with this information, but I would prefer any custom ray length.
    Thank you!