[Papervision3D] New rev: MovieMaterial
John Grden
neoriley at gmail.com
Mon Aug 20 19:54:24 PDT 2007
I just verified the same error in the panorama example as I've merged the
Face branch with the trunk just now and am testing all demo's.
De'Angelo's fix would work just fine, but there's a bug in initBitmap.
Basically, it's telling the truth, that the asset is a string at that point
and hasn't been pulled from the library yet.
I'll see if I can track down where the timing is off.
On 8/20/07, De'Angelo Richardson <dialeoson at yahoo.com> wrote:
>
> Try var material :MovieMaterial = new MovieMaterial(new tmp(), true);
>
>
> -De'Angelo
>
>
> ----- Original Message ----
> From: nonnus <nonnus3g at hotmail.com>
> To: papervision3D at osflash.org
> Sent: Saturday, August 18, 2007 9:01:12 PM
> Subject: Re: [Papervision3D] New rev: MovieMaterial
>
> i just tried the new revision (Papervision3D Beta 1.5 (23.07.07)) to check
> if
> MovieAssetMaterial was correctly playing movie clips again (still not
> working here since the public release...),
> and i just got a fresh new error !
>
> ReferenceError: Error #1069: Property width not found on String and there
> is
> no default value.
> the code that generates the error:
>
> function newPlane(tmp:*, indx:uint):void
> {
> var material :MovieAssetMaterial = new MovieAssetMaterial(tmp,
> true);
> (...)
>
> var tmp is the correct library linkage id
>
> with my last working version (Papervision3D Beta RC1 (25.03.07)) it works
> perfectly and the movie clips play fine
> until this last revision, i had no errors but the movie clips would play
> incorrectly
>
> how to get rid of this error ?
>
> thank you for your attention and support
>
> abraços
>
> nonnus
>
>
>
>
> Carlos Ulloa-2 wrote:
> >
> > Hello,
> >
> > Just reviewed MovieMaterial and BitmapMaterial to do some cleanup and
> > refactor with the idea of leaving all bitmap related functionality in
> > BitmapMaterial and MovieClip functionality in MovieMaterial.
> >
> > In the process a bug was fixed that forced all MovieMaterials to use
> > AUTO_MIP_MAP and extendEdges and all that was disabled in BitmapMaterial
> > but
> > was set again in MovieMaterial.
> >
> > Also added support for MovieClips textures that change in size. Animated
> > materials recognize if width or height has changed and act accordingly
> > (dispose of previous bitmap with old size, creation of new bitmap with
> new
> > size). This is a bit time consuming so it's not recommended to change
> > texture size for the sake of it.
> >
> > I've had a few ideas about this, maybe we could have a rect to crop the
> > MovieClip texture in case Flash is given wrong sizes because of masks or
> > component behaviour.
> >
> > I've noticed a lot of people are changing materials in real time, using
> > material.bitmap. My original idea was to use the material.texture get
> > setters instead of attacking the bitmap directly.
> >
> > Material.texture stores the original asset provided to the material, if
> > it's
> > a BitmapMaterial, it is the BitmapData, if it is a MovieMaterial,
> texture
> > is
> > the MovieClip provided. In case of the Asset materials it's the String
> > with
> > the name of the material provided. The idea is for texture to be the
> place
> > to change the material as this should reset the material precalculations
> > in
> > a safe way. Disposing of previously created bitmaps if needed and
> updating
> > the uvMatrices.
> >
> > In any case, let me know your thougths,
> >
> > C4RL05
> > // carlosulloa.com
> > // papervision3d.org
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/New-rev%3A-MovieMaterial-tf4290414.html#a12219215
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070820/7d8495e6/attachment-0001.html
More information about the Papervision3D
mailing list