« Return to Thread: Adding filters to objects in a DAE

Re: Adding filters to objects in a DAE

by Jeff Winder :: Rate this Message:

Reply to Author | View in Thread

The way you did it should work, but  do you wait for the model to be loaded?
model.addEventListener(FileLoadEvent.LOAD_COMPLETE, modelLoaded);

and then add your code inside a modelLoaded handler?


Dav-6 wrote:
Hi, wondering if anyone can answer my question.

I have a DAE file that has several objects inside it, (Box01, Box02, Box03,
...), and let's say I would like to add a outer glow filter to "Box01".

How would I go about it in Papervision 2?

I have seen lot's of posts on using viewport layers, but that seems to be
for people who are loading several DAE's, not a single DAE with multiple
objects inside.

I thought I would try this:

        model.getChildByName("Box01", true).useOwnContainer = true;
        model.getChildByName("Box01", true).filters = [new
BlurFilter(3,3,3)];

however nothing seems to work.

Thanks,
Dav


_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Adding filters to objects in a DAE