Of course there's a class in Away3D that already does it! I wish there was a little better resource for keeping track of features. Though I guess I only have myself to blame since I bought the book and I think HeightMapModifier is mentioned in there.
Oh well, this is still some interesting stuff. I guess I have one more demo to do now! On Oct 1, 4:40 am, Fabrice3D <[email protected]> wrote: > Just for info, HeightMapModifier.as in modifiers package was designed voor > this kind of work. > > Fabrice > > On Sep 29, 2010, at 2:48 PM, savagelook wrote: > > > > >http://savagelook.com/blog/away3d/dynamic-heightmaps-in-away3d > > > I made a small modification to the SkinExtrude class that allows you > > to regenerate the position of its vertices without creating a new > > instance of the SkinExtrude. This makes 2 things happen: > > > 1, it allows me to use dynamically generated height maps to create > > liquid or flowing 3d effects. > > 2, it greatly reduces the memory usage that occurs if you constantly > > try to remove/add the SkinExtrude to create the same effect. > > > Its a lot easier to look at than it is to explain, so take a look and > > let me know what you think. I actually have another similar demo on > > the way tomorrow or Friday that I think you guys will find even > > cooler. Hope you enjoy it. BTW, this is all Away3D 3.6.0 code.
