Any visuals would certainly help...

Fabrice
On Feb 17, 2009, at 5:46 PM, Li wrote:

Mmmm... I dont know, perhaps someone else on the list can throw you a clue...

On Tue, Feb 17, 2009 at 1:01 PM, [email protected] <[email protected] > wrote:

Thanks Li.

I have think of this idea. But seem not work in my case.

My object is in hierarchical structure.

e.g.

I have object structure

ObjectContainerA have ObjectA and ObjectB (fake shadow)
ObjectContainerB have ObjectC and ObjectD (fake shadow)

But i want to render Object B and ObjectD in the same layer. In order
i can do some copypixel and effect on the layer.

Since papervision layer system is independent to object structure. i
can put any object in the same layer for render.


I dig in the code of away3d. I find something called render session.
Do this stuff help on my case?


On Feb 17, 2:15 pm, Li <[email protected]> wrote:
> Hey William,
>
> If you set ownCanvas = true to any 3d object, it will be rendered in its own > Sprite container. Once this is done you can apply any effects/ filters to it > as if it was a normal sprite. Furthermore, you can use an ObjectContainer3D > to place other objects within it, set ownCanvas = true for the container and
> apply a filter to all, for instance:
>
> var container:ObjectContainer3D = new ObjectContainer3D();
> scene.addChild(container);
>
> var obj1:Cube = new Cube();
> obj1.x = 1000;
> container.addChild(obj1);
>
> var obj2:Sphere = new Sphere();
> obj2.x = -1000;
> container.addChild(obj2);
>
> container.ownCanvas = true;
> container.filters = [new BlurFilter()];
>
> Haven't tested it, but it should work...
> Hope it helps, and welcome to Away =)
>
> On Tue, Feb 17, 2009 at 1:37 AM, [email protected] <
>
> [email protected]> wrote:
>
> > Hi,
>
> > I am new to away3d. I try papervision 3d before. Now, I want to switch
> > the work to away3d.
> > But I find a function missing in away3d which stop me for using it -
> > Render Layer.
>
> > I have a scene with several object. In papaervision3d, I can render
> > each object  in different layer.
> > More, I can place different object in the same render layer and do
> > effect on all object as once in that layer.
>
> > I search though the api and code. I can't figure out how can I do it
> > with away3d.
> > From the achieve of this mail group, I learn a method which separate
> > the object in different view and render.
>
> > But, I find it is not practical in my case. Since the objects have
> > hierarchical structure, I don't want to break the structure.
>
> > Anyone have experience to deal with this issue?
>
> > William


Reply via email to