StereoRenderer getLeftInputTexture() Null Object

Software: Away3D 4.x

Rajneesh, Jr. Member
Posted: 20 January 2014 01:53 PM   Total Posts: 34

Hi i am trying to render stereo view.

I have rendered cube successfully, (but i am getting null object reference error in StereoRenderer/getLeftInputTexture())

_camera = new StereoCamera3D();
   
_camera.stereoOffset 45;
   
   
_view = new StereoView3D();
   
_view.antiAlias 2;
   
_view.camera _camera;
   
_view.stereoEnabled true;
   
_view.stereoRenderMethod = new AnaglyphStereoRenderMethod();
   
//_view.stereoRenderMethod = new InterleavedStereoRenderMethod();
   
addChild(_view);
   
   
_cube = new Mesh(new CubeGeometry(), new ColorMaterial(0xffcc00));
   
_cube.scale(3);
   
_view.scene.addChild(_cube); 

What should I do?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X