I’m adding environment maps for the first time. I work in a z-up world. When I simply naively add an equirectangular map as environment map (and skybox), it’s clear that the world in the skybox and in observed in the reflection is a y-up representation. In the image below, the world y-axis goes off to the right.
Now, I can set the floor equation of the skybox to lie on the Wz = 0 plane. And, in the rendering, the skybox is now rendering z-up as I would expect. However, the reflections still reflect a y-up world. (See image below):
I’ve tried setting a transform on the texture passed as the environment map, but that seems to have no effect. Am I missing something? How do I inform the vtkOpenGlRenderer that the spherical coordinates should have the poles on the z-axis instead of the y?
I feel foolish. The documentation for SetEnvironementUp() is right below the documentation for SetEnvironmentTexture(). Thank you for such a swift and helpful response.
For the sake of completeness:
vtkRenderer already sets the environment right to be [1, 0, 0].
Therefore, it was enough to set the environment up to be [0, 0, 1] to get the desired result.