Hubs-Foundation / hubs-blender-exporter

The Hubs Blender Add-on enables artists to export their creations to the immersive web with Hubs
Mozilla Public License 2.0
165 stars 50 forks source link

Fog depth calculation causes screen periphery to have less fog. #201

Closed j-conrad closed 1 year ago

j-conrad commented 1 year ago

Description Because of how the depth is calculated, all fog types (linear/exponential) cause the edges of the user's field of view to have less fog than expected. This is common in older games, for example, where the depth is calculated as a straight line instead of a curve. Arguably not a bug in the strict sense, but the symptom is something that some users have pointed out as a problem.

To Reproduce Steps to reproduce the behavior:

  1. Make a new room.
  2. append the URL parameter: ?debugLocalScene and reload the page.
  3. Drag/drop this test scene asset into the webpage.
  4. After the scene loads, try rotating your camera.
  5. Result: things along the edges are more visible (less foggy) than they should be, including the large distant text that should remain illegible when standing in the yellow circle.

Expected behavior Fog should remain a consistent density at all angles from the camera.

Screenshots image

image

Hardware

Additional context This article explains the problem and how to avoid it: https://www.tomlooman.com/unreal-engine-distance-fog-material/

keianhzo commented 1 year ago

All valid points but this is not really related to the Blender Add-on. I'll open this same report in the Hubs client repo.