I’m trying to build a 360 scene with Away3D.
In order to achieve this I’m assigning a material with a equirectangular image texture to a sphere mesh build up with the SphereGeometry class.
Then I invert the faces and uv mapping with MeshHelper.
The problem is that the texture gets slightly distorted at the poles of the sphere.
The equierectangular texture is well generated as I’ve tested it with different panoramic software. So the problem must be in the uv mapping or the geometry itself.
I attach a screen capture where such defect can be seen.
The code to build the scene is very simple:
// bmpData is a BitmapData containing the equirectangular image
var texture : BitmapTexture = new BitmapTexture(bmpData);
var material : TextureMaterial = new TextureMaterial(texture, true, false, true)
var sphere : Mesh = new Mesh(new SphereGeometry(1000, 80, 80), material);
MeshHelper.invertFaces(sphere, true);