« Return to Thread: Papervision QuadTree Support

Re: Papervision QuadTree Support

by Andy Zupko :: Rate this Message:

Reply to Author | View in Thread

Unfortunately layers are not supported at the moment.  They wouldn't be
terribly hard to integrate, but there would be a performance hit for
general quadtree use that i feel is more than necessary for those not using
layers, esp. since quadtree removes one of the main purposes of layers.

IF you are interested in using VPLs in quadtree however, you will need to
make a change in QuadTreeNode.as.

In rev. 755, on line 276, replace:

pri.render(renderSessionData, graphics);

with

var vpl:ViewportLayer = renderSessionData.viewPort.accessLayerFor(pri,
true);
pri.render(renderSessionData, vpl.graphicsChannel);
vpl.processRenderItem(pri);

This *should* render to ViewportLayers, although i haven't tried it... but
give it a shot :)

If you do this, i would recommend setting testQuad to false on objects that
don't need it - this will save some time if you are utilizing the VPLs.

hth.

-andy



On Thu, 16 Oct 2008 16:26:59 -0700 (PDT), Carl Gloria <carl@...>
wrote:
>
> So Very Sweeeeeeeeeet!
>
> Should I be able to integrate with viewport layers and render layers?
Like
> render only certain layers with a certain render engine, then other
layers

> with another rendererererer (wow thats fun to say) I'm gonna experiment
> either way, but like all of you, time is of the essence....
>
>
> Andy Zupko wrote:
>>
>> Hey All -
>> s
>> I've update the SVN (754) with QuadTree support.  Yes, this is
>> corrective z-sorting.  You can read up on it here:
>> http://blog.papervision3d.org/2008/10/14/papervision-quadtree-support/
>> , and get a more thorough walkthrough and some demos here:
>> http://blog.zupko.info/?p=177
>>
>> Report any bugs that might have been created, as there were a fair
>> number of revisions to the code base to get things running faster and
>> to get this functionality integrated.
>>
>> enjoy!
>>
>> -Andy
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
>
> -----
> Carl Gloria - 2livelarge.com - cgvelocity.com
>
> Maya, Flash and Papervision - no particular order, just love them all!
> --
> View this message in context:
>
http://www.nabble.com/Papervision-QuadTree-Support-tp19966840p20019758.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Papervision QuadTree Support