Rob, I uploaded three images to show what I see if I don't do the above. bad1.jpg (object on or near the camera) bad2.jpg (object on or near the camera) good.jpg (when nothing is on the camera)
// My Hovercamera is setup as follows: camera.distance = 400; // default zoom and focus // Here is how I setup the scene var scene:Scene3D = new Scene3D(); view = new View3D(scene,camera,render,null); Then I adjust the panangle and tilt to have the camera go around the target. On Nov 16, 5:32 pm, Rob Bateman <[email protected]> wrote: > Hey Tony > > this is strange - why do you need to do this? Away3D Lite culls object > behind the camera in normal operation - are you using some funky camera > settings? Would be interested to find out... > > Rob > > > > > > On Sun, Nov 8, 2009 at 6:29 PM, mogg <[email protected]> wrote: > > First I want to thank the Away3Dlite team for the "obj3d.screenZ" > > property. This makes this possible. > > > I have been having issues with strange renderings that happen when an > > object is around, on, or just behind the camera. To turn off objects > > behind the camera I'm using the "screenZ" property of every object > > like so: > > > //loop through all top level objects in the scene. > > for each(var obj3:Object3D in view.scene.children) > > { > > if(obj3.layer != null) > > { > > if(obj3.screenZ < 200) > > { > > //trace("Not Visible:"+obj3.name+" "+obj3.screenZ); > > obj3.visible = false; > > obj3.layer.visible = false; > > }else{ > > //trace("Visible:"+obj3.name+" "+obj3.screenZ); > > obj3.visible =true; > > obj3.layer.visible = true; > > } > > } > > } > > > Tony > > -- > Rob Bateman > Flash Development & Consultancy > > [email protected] Hide quoted > text - > > - Show quoted text -
