[x3d-public] Displacer and normals ?

Andreas Plesch andreasplesch at gmail.com
Tue Feb 11 13:40:21 PST 2025


I noticed that some displacers cause degenerate or flipped triangles which
may cause rendering problems, mostly due to problems calculating
automatically a good normal vector.

In general, for best rendering results, it is necessary to provide
precomputed normals. rather than rely on automatic normal calculations. Was
there a discussion on how to have displacers provide precomputed normals
along with the displacement of the vertices ? That  would help with
rendering quality, and may be necessary for some use cases.

This may be deemed a long term feature to consider.

Perhaps an idea would be a MFRotation normalRotations field which has the
rotation required to rotate the normal (per vertex, or perhaps per face)
from the rest orientation to the final orientation. Weights are applied
with slerp. For animation authors it would be probably easier to be able to
just directly provide the final orientation.

Any feedback or comment much welcome, -Andreas

-- 
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250211/2e2f1fc7/attachment.html>


More information about the x3d-public mailing list