[Papervision3D] New Additions to Effects Branch: hasOwnRenderLayer and other changes
Andy Zupko
azupko at zupko.info
Wed Jan 2 21:16:43 PST 2008
A lot of people have asked about hasOwnContainer - so in keeping with the
structure built into the Effects branch, I have added the hasOwnRenderLayer
property to do3d. Simply set that property to true and that object will
have its own renderLayer. In addition, if you specify an array for the
filters property added to do3d, those filters will be applied to the layer
created for the do3d. If you set the renderLayer property of a material or
DO3D - it will have precedence over the renderLayer created by
hasOwnRenderLayer. The next step is removing unused renderLayers (if you
remove a do3d) but that will have to wait till later this week, and then to
get it working with multiple viewports which shouldn't be too hard.
You can see a simple demo here:
http://lab.zupko.info/RenderLayers/ (hold down mouse to see index sort)
And see the source here:
http://lab.zupko.info/RenderLayers/RenderLayerDemo.as.html
it should work for all objects except dae objects - which I'm still trying
to figure out the best way to handle the parent/child relationship within
daes to work with effect layers. By default it will still sort the layers
by screen depth, but you can set it to index sort (shown in the demo by
holding down the mouse) which sorts the layers by specified index. To set
it to index mode, you no longer reference a singleton RenderLayerManager -
you reference the RLM through the viewport:
viewport.renderLayerManager.sortMode = RenderLayerSortMode.INDEX_SORT;
and, I cleaned up some other stuff..
anways - that's all. Enjoy.
-andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080103/8c226e9b/attachment.html
More information about the Papervision3D
mailing list