Elektrine lite

← Feed

@jcreed@mastodon.social

2025-01-08 18:55 UTC

@mjk@hachyderm.io really cool project! dumb question, and I'm sorry this is maybe over-fixating on the demo and not the underlying library despite your plea to not do exactly that :) but I'm just curious --- do you reckon that what I'm seeing here is merely some near-plane culling/clipping?

Replies (1)

  • @mjk@hachyderm.io 2025-01-08 19:38

    @jcreed@mastodon.social Two things are happening here: you're clipping into the near plane (as you suspected), and then interval arithmetic is proving that those regions are entirely full (because they're fully inside the sphere) and not subdividing down to voxels. Normals are only rendered after per-voxel evaluation; tiles which are skipped due to interval evaluation write to the heightmap (so they block tiles behind them), but not to the normal map. (There's nothing inherent about this behavior, that's just how I've coded it at the moment)

    Open ##2840166