« Return to Thread: Dynamic effects on a material

Re: Dynamic effects on a material

by xero :: Rate this Message:

Reply to Author | View in Thread

yeah,
thats probally the best way.
but since filters are stored in
an array, you can just overwrite
your filters at run time as well
 
thing.filters = [new BlurFilter(...)];
 
 but using the remove call is
probally better on the memory
managment side... :D
____  ___
\   \/  /___________  ____
.\     // __ \_  __ \/ _  \
./     \  ___/ | | \( <_>  )
/___/\  \___  >__|---\____/
|     \_/   \/        |
| xero harrison       |
| xero.nu@gmail.com   |
| http://xero.nu      |
| http://fontvir.us   |
| http://0x000000.nu  |
| http://xero.owns.us |
`---------------------'
 
---------- Forwarded message ----------
From: Gibbah <jonas.bjornange@...>
To: papervision3D@...
Date: Tue, 3 Jun 2008 01:26:36 -0700 (PDT)
Subject: Re: [Papervision3D] Dynamic effects on a material

Oh, I just found out how to do it.

I used removeAllEffects() before I added a new effect :-D

In other words, delete the old effect first and then set a new.


--
View this message in context: http://www.nabble.com/Dynamic-effects-on-a-material-tp17554046p17618612.html
Sent from the Papervision3D mailing list archive at Nabble.com.


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

 « Return to Thread: Dynamic effects on a material