I replied to this, but must have accidentally replied straight to the
OP. Below is my reply again, for anyone who's interested:

I have done a similar thing.

Make sure the front (occluding) object is in it's own contains
(ownCanvas = true in Away3D, layer = someSprite in Away3D Lite) and
then set the blend mode of that container to BlendMode.ERASE. That
will make it into a negative mask for any display objects that are
beneath it provided that they have blend mode BlendMode.LAYER. I can't
remember exactly what I did, but something similar to this should
work:

var view : View3D = new View3D;
view.blendMode = BlendMode.LAYER;
this.addChild(view);

var mySprite : Sprite = new Sprite;
mySprite.blendMode = BlendMode.ERASE;
this.addChild(mySprite);

myOccludingObject.layer = mySprite;


Let me know if you cannot figure it out and I will go back to my old
project and see exactly what I did.

Cheers
/R



On Jan 3, 9:54 am, Johan <[email protected]> wrote:
> I was hoping that there would be a material that could achieve this
> kind of effect. Surely there is a need for a material that can occlude
> objects behind it without being seen?
>
> On 22 Dec 2010, 17:47, Johan <[email protected]> wrote:
>
>
>
>
>
>
>
> > Would you care to elaborate a bit? I'm quite new to Away3D and I don't
> > have a very good understanding of the blending features.
>
> > Any guidance would be greatly appreciated.
>
> > On 20 Dec, 22:21, savagelook <[email protected]> wrote:
>
> > > I'm just firing off ideas here, but could you use a combination of
> > > alpha blending blendMode and cacheAsBitmap to get the transparent
> > > object to work as a mask for another?
>
> > > On Dec 20, 10:24 am, Johan <[email protected]> wrote:
>
> > > > In my scene I want to have a rotating transparent (completely hidden)
> > > > object that still occludes other (visible) objects that's rotating
> > > > around the main object.
>
> > > > I want these sub-objects to disappear when they are behind the main
> > > > hidden object. Is this possible?

Reply via email to