Hi everyone. I just started using the framework and am absolutely loving it. Thanks a lot.
Also, I’m a newbie and while I Don’t understand a lot I have been able to achieve a lot of stuff due to Babylon js.
The problem I’m running into is basically this.
I’m making a custom mesh of a human face by feeding in vertices, indices, computing normal and calculating uvs as specified here :
All of this is being done in the runtime.
Then I have an arc rotate camera and a spotlight whose direction is set to the centre of bounding box of mesh.
The issue is that the mesh so formed is upside down, i.e. mouth is up and eyes are down.
How do I fix this?
Everytime I try to rotate it the mesh goes outside the canvas.
Can you please help me regarding this without a PG. I understand a PG would make stuff easy on your part but it’s not possible for me to provide it.
And all I want is a way to rotate the mesh about the centre of its bounding box in order to make the rendered mesh straight up.
For maestros who lurk here this should be too easy to answer.