I’m experimenting with adding instance rotation in i3dm tiles, but it’s unclear to me how it works.
In https://bertt.github.io/cesium_3dtiles_samples/samples/instanced/index_north.html I’ve added 1 i3dm tile (seat_north.i3dm) with 1 instance (a seat, ecef location 1214947.2, -4736379, 4081540.8) pointing to the north and no NORMAL_UP and NORMAL_RIGHT defined. I’m using EAST_NORTH_UP = true otherwise the seat is wrongly rotated. Result looks ok.
Now I want to rotate the seat horizontally pointing eastwards. As a first test I’ve added NORMAL_UP (0, 1, 0) and NORMAL_RIGHT (1, 0, 0) to the i3dm tile (seat_east.i3dm). Now the seat is rotated strangely, I was expecting the same result as the seat pointing north (because no rotation with these normals). Result see https://bertt.github.io/cesium_3dtiles_samples/samples/instanced/index_east.html
So my question is: How do I calculate the NORMAL_UP and NORMAL_RIGHT vector so the seat is rotating horizontally to the east?
Bonusquestion: Why is the color of the seat different everytime I load Cesium??