useOwnContainer + ZSorting

2 messages Options
Embed this post
Permalink
kariminal

useOwnContainer + ZSorting

Reply Threaded More More options
Print post
Permalink
Hello List -

I am trying to set the alpha of a BitmapMaterial ( on a plane )
which works when i set the 'useOwnContainer = true'

However that breaks the Z sorting of the planes.

Anyone have tip for that one?


Thanks




Karim

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Andy Zupko

Re: useOwnContainer + ZSorting

Reply Threaded More More options
Print post
Permalink
To use viewportlayers, if you put one object on a layer and leave  
everything else, it will not be able to sort the layer around the  
other objects.  To get correct sorting in that case, you need to put  
all objects on layers.  I would recommend using viewport.getChildLayer  
instead as it is significantly faster in most cases.


On Jul 1, 2009, at 5:17 AM, karim beyrouti wrote:

> Hello List -
>
> I am trying to set the alpha of a BitmapMaterial ( on a plane )
> which works when i set the 'useOwnContainer = true'
>
> However that breaks the Z sorting of the planes.
>
> Anyone have tip for that one?
>
>
> Thanks
>
>
>
>
> Karim
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org