[Papervision3D] How do I fade without animated textures?
azupko at zupko.info
Thu Oct 2 05:27:32 PDT 2008
You can call viewport.getChildLayer(plane) for each plane to create/
get a ViewportLayer (sprite) for each object in the viewport.
useOwnContainer does this automatically for you every render. You only
need to call it once, however, and the layers will always be there.
They will automatically sort by z-index, but you can make them sort by
a specified index using:
viewport.containerSprite.sortMode = ViewportLayerSortMode.INDEX_SORT;
viewport.getChildLayer(plane).layerIndex = 1;
viewport.getChildLayer(plane2).layerIndex = 2;
On Oct 2, 2008, at 5:06 AM, Tarwin Stroh-Spijer wrote:
> [This has been solved, but read below if you want to know how I
> fixed it...]
> Thanks for the reply. The site I'm working on is @ http://staging.touchmypixel.com/vr/
> The problem I'm having you can see when you're in the courasel and
> zoom into one of the items. These are Planes that are moved towards
> the camera. I'm setting all of them to have their own container
> (useOwnContainer), but the problem then is that the one I'm moving
> forward is behind the others (the one moving has not had it's
> useOwnContainer set).
> I just found then that if I set ALL Planes to useOwnContainer it
> does the sorting for me! Of course ... It would still be interesting
> to know how to get access to an objects "container" so you can sort
> it manually yourself somehow.
> Thanks again!
> Papervision3D mailing list
> Papervision3D at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D