<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Aaron,<div><br></div><div>The sorting on your globe can perfectly solved with viewportLayers. The globe can be rendered at layer 1 and the planes at layer 2, so they will appear always on top.</div><div><br></div><div>An example implementation of this looks as follows:</div><div><br></div><div>var globe:Sphere = new Sphere();</div><div>scene.addChild(sphere);</div><div><br></div><div>var plane:Plane = new Plane();</div><div>scene.addChild(plane);</div><div><br></div><div><div>var globeLayer:ViewportLayer = viewport.getChildLayer(globe);</div><div>var planeLayer:ViewportLayer = viewport.getChildLayer(plane);</div><div>globeLayer.layerIndex = 1;</div><div>planeLayer.layerIndex = 2;</div><div>viewport.containerSprite.sortMode = ViewportLayerSortMode.INDEX_SORT;</div><div><br></div><div>This is just one of the ways you can use viewport layers. I hope this helps.</div><div><br></div><div>Paul</div></div><div><br><div><div>On Jul 3, 2009, at 12:18 AM, Aaron Meyers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<div><br></div><div>I am starting work on a project where objects will be plotted on the earth. I've put together a quick test and found that when i position objects around a sphere, I have some clipping problems with the polygons of these objects. I put together an example to show what I'm talking about:</div> <div><br></div><div><a href="http://aaron-meyers.com/globetest/">http://aaron-meyers.com/globetest/</a></div><div><br></div><div>You can click to change from plotting planes to cubes. I've actually offset the planes a bit away from the radius of the sphere, but the clipping problem is still pretty severe. I once encountered something similar in an OpenGL project and it turned out to be z-fighting and after adjusting the near clip and far clip distance on my projection matrix, it was fine. I suspect something like this might be the cause of my problem, but I don't really understand the inner workings of the Papervision3D transformation pipeline.</div> <div><br></div><div>Does anyone know how to get around this? Any tips? Thanks for any help.</div><div><br></div><div>-Aaron</div> _______________________________________________<br>Papervision3D mailing list<br><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br>http://osflash.org/mailman/listinfo/papervision3d_osflash.org<br></blockquote></div><br></div></body></html>