Version: 2.57.4
Issue
When applying an equirectangular texture to ViroSphere, the texture is displayed in the wrong direction. The image appears mirrored or rotated, causing the left/right orientation to be incorrect.
This is especially noticeable when using 360° panorama or Earth textures, where continents or other landmarks appear on the opposite side compared to the original image.
Expected Behavior
The texture should be mapped with the same orientation as the source image, without requiring users to manually modify or mirror the texture.
Actual Behavior
- Texture appears mirrored or incorrectly rotated.
- Left/right orientation does not match the original image.
- The same texture displays correctly in other 3D viewers.
Sample Code
<ViroSphere
heightSegmentCount={20}
widthSegmentCount={20}
radius={sphereRadius}
position={[0, 0, -2]}
materials={["randomMaterial"]}
/>
ViroMaterials.createMaterials({
randomMaterial: {
diffuseTexture: require("../../assets/images/numbers.jpeg"),
},
});
Screenshots
Expected: Original Earth texture orientation.
Actual: Texture appears mirrored/rotated on ViroSphere.
Is this a known issue, or is there a recommended way to control the texture orientation on ViroSphere?
Version: 2.57.4
Issue
When applying an equirectangular texture to ViroSphere, the texture is displayed in the wrong direction. The image appears mirrored or rotated, causing the left/right orientation to be incorrect.
This is especially noticeable when using 360° panorama or Earth textures, where continents or other landmarks appear on the opposite side compared to the original image.
Expected Behavior
The texture should be mapped with the same orientation as the source image, without requiring users to manually modify or mirror the texture.
Actual Behavior
Sample Code
<ViroSphere
heightSegmentCount={20}
widthSegmentCount={20}
radius={sphereRadius}
position={[0, 0, -2]}
materials={["randomMaterial"]}
/>
ViroMaterials.createMaterials({
randomMaterial: {
diffuseTexture: require("../../assets/images/numbers.jpeg"),
},
});
Screenshots
Expected: Original Earth texture orientation.
Actual: Texture appears mirrored/rotated on ViroSphere.
Is this a known issue, or is there a recommended way to control the texture orientation on ViroSphere?