chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
637 stars 76 forks source link

Water plane looks different inside/outside the octree #1642

Open leMaik opened 10 months ago

leMaik commented 10 months ago

The water plane looks different when it is outside of the octree compared to inside the octree but no chunks. Orignally reported in Discord: https://discord.com/channels/541221265512464394/1156386708145848451/1156386708145848451

image

@ThatRedox already investigated this issue a bit:

looks like rays that intersect with the water plane will continously enter and exit the water octree Also rd<=4 will not have the weird artifacts in the octree

ok so it looks like its going something like:

  1. Initial ray going down
  2. Hits water plane -> air-water refraction
  3. Hits air in water octree -> water-air reflection, now going up
  4. Hits water plane -> air-water refraction
  5. Hits air in water octree -> water-air refraction
  6. Hits sky