Hi Everybody,
I made a sphere and wanted to change to clockwise orientation to see the interior of the sphere.
This is the test:
However in the inspector, if I change manually to counter clockwise then clockwise, it appears as I wanted.
Any dirty flags to set ?
Thanks, Have a good day !
mawa
September 29, 2022, 11:42am
2
Hi and Welcome to the forum,
I didn’t check thoroughly your declaration, but it seems to work with a number
or with
I didn’t find anything in the API for ’ ClockWiseSideOrientationSearch’ for PBRMaterial or PBRBaseMaterial. Not sure where you got this from.
Hope this helps and does what you want? Meanwhile, again a warm welcome to our Community and have a great day
2 Likes
Thanks, I think I just copy/paste from the documentation and it paste search with it…
Hi Everybody,
Thank for the welcome @mawa
With a gltf load (like my real project), I have my original problem, I can’t “inverse” the mesh
I try another PG:
Thanks for your help,
Have a great day
sebavan
September 29, 2022, 4:20pm
5
There is a catch in GLTF, the material side orientation is overriden by the mesh info as by default GLTF are in the opposite orientation of babylon.
You need to override it there: https://playground.babylonjs.com/#HRD48Q#8
4 Likes
Exactly what I was looking for,
Thanks
1 Like