[Papervision3D] Adding filters to objects in a DAE
Jeff Winder
info at jeffwinder.nl
Fri Jul 3 08:08:38 PDT 2009
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 at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/Adding-filters-to-objects-in-a-DAE-tp24309324p24324649.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list