You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that face culling has been disabled everywhere in the XML3D.js renderer, is there a reason for this? Usually one wants to enable at least backface culling by default.
The text was updated successfully, but these errors were encountered:
At this point it is disabled, since many (rather bad) mesh assets don't work properly with backface culling on.
The thing I would propose is to have an additional mesh data entry named "solid". (e.g. <bool name="solid" >true</bool>)
When a mesh is declared solid, backface culling is enable and normals are always used exactly as provided.
When a mesh is not declared solid, backface culling is disabled and normals are flipped toward the viewpoint. This is something you want to use e.g. for simple planes.
This should not be much work to implement and is definitely something we should provide.
In my opinion a mesh data entry named "cullFace" or similar that could take in values such as "none", "front", "back" or "frontback" could be a good idea.
Hi,
I noticed that face culling has been disabled everywhere in the XML3D.js renderer, is there a reason for this? Usually one wants to enable at least backface culling by default.
The text was updated successfully, but these errors were encountered: