[Papervision3D] How to get a sprite

Sean Thompson sean.thompson at dubitlimited.com
Fri Nov 2 03:07:40 PDT 2007


sorry, i've got two windows open, and my brain switched off

On 02/11/2007, Sean Thompson <sean.thompson at dubitlimited.com> wrote:
>
> most of the web is text and i can't see that changing/ the best way to
> view text is 2d.
>
>
>
>
>
> On 01/11/2007, theforce <tassadar234 at yahoo.com> wrote:
> >
> >
> > Ok.. but the thing is, I don't have a MovieMaterial. I'm using external
> > JPG
> > Files as assets. So I'm working with the InteractiveBitmapFileMaterial.
> > How can I get the MovieClip/ Sprite with this kind of material?
> >
> >
> >
> >
> > John Grden-2 wrote:
> > >
> > > ok, you don't need sprite containers to do this ;)
> > >
> > > all you need is to get a reference to the movieclip you're using for
> > the
> > > material and set IT'S alpha for the fades  - I just described this to
> > > SteveH
> > > the other day as a matter of fact ;)
> > >
> > > var myMaterial:MovieMaterial = new MovieMaterial(instanceName);
> > >
> > > //...later in code
> > >
> > > var mc:MovieClip = MovieMaterial(plane.material).movie as
> > MovieClip;  //
> > > this assumes you have a movieclip, change it if not
> > > if( mc )
> > > {
> > >       mc.alpha = value;
> > > }
> > >
> > > that should do it,
> > >
> > > John
> > >
> > > On 11/1/07, theforce <tassadar234 at yahoo.com> wrote:
> > >>
> > >>
> > >> Ok.. I want to do fade-ins with the Tween Class and the alpha
> > Property of
> > >> a
> > >> sprite to fade-in or fade-out the objects depending on the distance
> > to
> > >> the
> > >> camera. But maybe this can also be done in another way?
> > >>
> > >> What exactly is the difference between the handling of ISM and
> > >> MovieScene3D
> > >> in the latest revision?
> > >>
> > >> ( I'm currently working with PV Beta 1.7 (20.08.07 ) )
> > >>
> > >>
> > >>
> > >> John Grden-2 wrote:
> > >> >
> > >> > what do you need to access the sprites for?  I ask because the
> > latest
> > >> > version of papervision3D, the ISM doesn't work like it used to with
> >
> > >> sprite
> > >> > containers.  MovieScene3D still does, but ISM doesn't.
> > >> >
> > >> > if you add a plane object directly to a MovieScene3D via addChild,
> > you
> > >> > should be able to reference "container" property of the Plane - but
> > the
> > >> > key
> > >> > here is to add the plane directly to the MovieScne3D or else it
> > won't
> > >> get
> > >> > it's own sprite container
> > >> >
> > >> > On 11/1/07, theforce < tassadar234 at yahoo.com> wrote:
> > >> >>
> > >> >>
> > >> >> Hi,
> > >> >>
> > >> >> I'm currently working with Plane-Objects in my 3d-space. Every
> > Plane
> > >> has
> > >> >> a
> > >> >> picture on it and is flying around the space... so, I saw in the
> > API,
> > >> >> that
> > >> >> every 3DObject has a "container" property which returns the sprite
> >
> > >> it's
> > >> >> is
> > >> >> rendered in.
> > >> >> I know that the container property is only used when rendered in a
> > >> >> MovieScene3D. I'm using the InteractiveScene3D which extends the
> > >> >> MovieScene3D, so it should work.
> > >> >>
> > >> >> But every time I want to get the Sprite it returns a "null"
> > Object...
> > >> >> what
> > >> >> am I doing wrong?
> > >> >> I tried to access the container property via the Plane-Object and
> > I
> > >> also
> > >> >> tried to get it via event.getSprite( displayObject )  but both
> > ways
> > >> just
> > >> >> don't work?!?!?
> > >> >>
> > >> >> Hopefully anybody can help me!  :-(
> > >> >> --
> > >> >> View this message in context:
> > >> >> http://www.nabble.com/How-to-get-a-sprite-tf4732070.html#a13530948
> > >> >> Sent from the Papervision3D mailing list archive at Nabble.com<http://nabble.com/>
> > .
> > >> >>
> > >> >>
> > >> >> _______________________________________________
> > >> >> Papervision3D mailing list
> > >> >> Papervision3D at osflash.org
> > >> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > [  JPG  ]
> > >> >
> > >> > _______________________________________________
> > >> > Papervision3D mailing list
> > >> > Papervision3D at osflash.org
> > >> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >> >
> > >> >
> > >>
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/How-to-get-a-sprite-tf4732070.html#a13531371
> > >> Sent from the Papervision3D mailing list archive at Nabble.com<http://nabble.com/>
> > .
> > >>
> > >>
> > >> _______________________________________________
> > >> Papervision3D mailing list
> > >> Papervision3D at osflash.org
> > >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >>
> > >
> > >
> > >
> > > --
> > > [  JPG  ]
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/How-to-get-a-sprite-tf4732070.html#a13538584
> >
> > Sent from the Papervision3D mailing list archive at Nabble.com<http://nabble.com/>
> > .
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
>
> --
> Sean Thompson
> Developer
> Dubit Limited




-- 
Sean Thompson
Developer
Dubit Limited
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071102/c864177d/attachment-0001.html 


More information about the Papervision3D mailing list