Hi,
I am trying to create a spherical panorama and map a texture to it. The problem is that when I increase the radius of the sphere, I see a black screen. Something is not right with the camera but I can’t figure it out.
Also, increasing the size of the sphere is causing the texture to pixelate. I am mapping a 2048*2048 jpg image to the sphere.
[Embed(source=”../bin/assets/texture.jpg”)]
public static var PanoBitmap:Class;
var _panoTexture:BitmapTexture = Cast.bitmapTexture(PanoBitmap);
var _panoTextureMaterial:TextureMaterial = new TextureMaterial(_panoTexture);
_panoTextureMaterial.bothSides=true;
_spherePano = new Mesh ( new SphereGeometry(5000),_panoTextureMaterial); _scene.addChild(_spherePano);
My Camera properties:
_view = new View3D();
_scene = _view.scene;
_camera = _view.camera;
_camera.lens.far = 10000;
_camera.lens.near = .05;
_camera.y = _camera.x = 0;
_camera.z = 0;
_camera.lookAt(new Vector3D());
not sure where I’m going wrong.
Thanks for the help