[Papervision3D] New Additions to Effects Branch: hasOwnRenderLayer and other changes
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D