Howdy,
I'm using Corona standalone renderer to render some ground truth images for a new graphics technique i'm working on. However, I'm trying to figure out the best way of converting from standard OpenGL right handed coordinates to what's used in Corona. If I supply my camera matrix and world matrices for my objects, it's fine (that is, I get what I get in my 3d program). However, it doesn't match the coordinate system used by the physically based sky. So, the sky is rotated 90 degrees on the horizon because it thinks Z is up.
So, if I use my overhead coordinates for my Sun vector (0, 1, 0), I get sunset and if I use Z-up coordinates like (0, 0, 1) I get noon. So, here's the issue. If you supply an identity matrix for a perspective camera in the SCN file, then the sky does not render as expected and you have to use a different transformation matrix like [ 1 0 0 0 ] [ 0 0 1 0 ] [ 0 1 0 0 ] [ 0 0 0 1 ] for the camera for the sky to look correct.
Is this a bug, or is there a setting to have the sky behave as if in a right handed coordinate system with Y up?