In away3.6 there is a cute class (thanks to David Lenaerts), that not many
people are aware of , called WaterMap . Look at it .What it does it scrolls
a bitmap by step by step on rectangle areas. .Let's say you create in
photoshop an image that is made of 100 different cells .each cell is a
different bitmap. You define it like this .If each cell is 32x32 pixels and
you have 100 in total then the whole image is 320x320px. When you set it
with WaterMap the class will scroll from 1 to 100 one by one . It an awesome
utility to create animated material like water ,clouds etc.

On Tue, Mar 15, 2011 at 3:24 PM, rahulj.softprodigy <
[email protected]> wrote:

> Thanks for the help. I was able to move the texture using the scroll()
> method. But it happened when only one material was there. I need to
> have a default material and then add multiple images to it and move
> each individually over the model. Do I need to add multiple materials?
> If yes, then how as I was not able to find any method for that. It is
> there in the previous version of Away 3d but not in version 4.
>
> On Mar 14, 3:54 pm, Michael Iv <[email protected]> wrote:
> > Look, the usage of scroll() has nothing to do with 3D .it moves the
> bitmap
> > of the texture.This is pure ActionScript3.0 feature which you can find
> how
> > to use in the various ActionScript blogs and forums and of course in the
> > Adobe ActionScript3.0 documentation . Here we usually deal with the
> topics
> > related to 3D and away3D issues. You don't have to be hard core 3d
> > programmer to use Away but you do need to have some ActionScript 3.0 OOP
> > experience .Also I recall there is an example in the away3D trunk with
> > Ferrari moving on a plain which has got an animated texture.take a look
> at
> > it .
> >
> > PS:
> > scroll () method expects to get X and Y coordinates to scroll to..You can
> > experiment bu passing mouseX and mouseY properties to see how it works
> >
> > On Mon, Mar 14, 2011 at 12:46 PM, rahulj.softprodigy <
> >
> >
> >
> > [email protected]> wrote:
> > > Thanks for the reply. Not sure how to use the UV co-ordinates as I am
> > > very new to 3D. Also I am not much sure how to use the scroll()
> > > function. I am unclear on things like: how do I add the image and
> > > where do I add it on the model. I have added a Bitmap texture to it
> > > but not sure how to add another image which can be moved over it. You
> > > have any reference link?
> >
> > > On Mar 14, 3:04 pm, Michael Iv <[email protected]> wrote:
> > > > You can move the UV coordinates but much simpler is to use BitmapData
> > > > scroll() function
> > > > On Mon, Mar 14, 2011 at 11:46 AM, rahulj.softprodigy <
> >
> > > > [email protected]> wrote:
> > > > > I need to add an image dynamically over my 3d model in away 3d.
> After
> > > > > adding it, I want that it can be moved over the model by mouse
> > > > > dragging. How can I do this?
> >
> > > > --
> > > > Michael Ivanov ,Programmer
> > > > Neurotech Solutions Ltd.
> > > > Flex|Air |3D|Unity|www.neurotechresearch.comhttp://
> blog.alladvanced.net
> > > > Tel:054-4962254
> > > > [email protected]
> > > > [email protected]
> >
> > --
> > Michael Ivanov ,Programmer
> > Neurotech Solutions Ltd.
> > Flex|Air |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.net
> > Tel:054-4962254
> > [email protected]
> > [email protected]




-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
Tel:054-4962254
[email protected]
[email protected]

Reply via email to