[Papervision3D] Advanced Masking question

Steve D kruass at gmail.com
Fri Apr 17 12:21:23 PDT 2009


Except he wants the cube to mask whats inside it.  I'm not sure offhand how
to separate the external faces of a cube with its internal faces, so I'd
suggest using two cubes: insideCube and outsideCube.

insidecube should only have internal faces, and no external faces.
outsidecube is the opposite (no internal faces).

then use the following:
viewport.getChildLayer(insidecube).mask = viewport.getChildLayer(outsidecube
);

As long as the cubes share the same transformation info, I think that will
work.



On Fri, Apr 17, 2009 at 5:30 AM, CodeJockey1 <codejockey1 at gmail.com> wrote:

>
> Simple solution:
>
> create a cube, and turn off all of the outside faces so the material only
> shows on the inside faces.  Done!
> --
> View this message in context:
> http://www.nabble.com/Advanced-Masking-question-tp21144142p23096640.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090417/2af0555b/attachment.html>


More information about the Papervision3D mailing list