ThatOpen / engine_web-ifc

Reading and writing IFC files with Javascript, at native speeds.
https://thatopen.github.io/engine_web-ifc/demo
Mozilla Public License 2.0
604 stars 180 forks source link

Incorrect shadows #306

Open QuimMoya opened 1 year ago

QuimMoya commented 1 year ago

Some models expose incorrect shadows image

This image shows shadows in non-visible faces of the model. Shadows must be applied on the visible faces only

agviegas commented 1 year ago

I think that this can be fixed by using 2-face Three.js materials. The problem is that the normal of the faces of the geometries is not correct, and faces with flipped normals are not rendered.

aka-blackboots commented 1 year ago

@QuimMoya can you attach the IFC file for reference

beachtom commented 8 months ago

@QuimMoya can you check this model again - I think a PR has fixed many issues to do with shadows