[Papervision3D] using papervision to depth sort
Fábio Burkard
fabioburkard at gmail.com
Tue Aug 31 07:21:29 PDT 2010
Try putting more segments in the large cuboids; it works for me, when I have
viewport layers issues...
On Tue, Aug 31, 2010 at 9:27 AM, Andy Zupko <azupko at zupko.info> wrote:
> viewport layers use the average of the faces drawn to them to calculate
> their depth, making them susceptible to the same draw order problem as
> regular faces. You can fix this by using a indexSort on the main
> viewportLayer, which will sort all the layers by their layerIndex. You can
> set this value manually based on whatever criteria you want (z position of
> the object for instance). This can present some other problems but it
> really depends on your application.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100831/c397b7a7/attachment.html>
More information about the Papervision3D
mailing list