[Papervision3D] Newbie: Basic Papervision Questions
Andy Zupko
azupko at zupko.info
Thu Jan 15 17:32:19 PST 2009
1. Haven't looked at it. Should be fixed. Tell Tim. :P
2. You can use a loader to load the swf, then simply use
loader.content as the MovieMaterial asset. Should work the same as a
normal movie at that point. Make sure you have permissions.
3. Check how far the camera is from the origin, as well as zoom/
focus. to get the plane at exactly 600x600, put camera at -1000 with
zoom =10 and focus = 100. If that doesn't work, send some code that
can recreate the problem.
On Jan 15, 2009, at 6:37 PM, strayhand wrote:
>
> I'm writing a script that parses an XML file and automatically
> generates the
> 3d components. I've made it as far as creating a basic plane and
> applying a
> BitmapFileMaterial before I started to run into issues.
>
> 1. BitmapFileMaterial Errors
>
> Problem:
> Flash throws an error when trying to apply a bitmapfilematerial that
> hasn't
> loaded yet.
>
> Workarounds:
> I found these threads that discuss the issue.
>
> -
> http://www.nabble.com/-ERROR--MaterialObject3D:-transformUV()-material.bitmap-not-found!-td20314591.html
>
> -
> http://www.nabble.com/GW-rev.759%3A-BitmapFileMaterial--%3E-transformUV()-material.bitmap-not-found!-tc20086181.html#a20086181
>
> I hacked-up my local instance of papervision to include the
> modification
> from the second post (It works) but I don't like having to tweak the
> core.
>
> Question:
> Is there something else that I can do to avoid these errors? And are
> there
> any plans to add the "create new bitmap" concept to the Papervision
> core?
>
> 2. Loading Movie Materials Dynamically
>
> The second issue that I'm running into is loading movie materials.
> Since I'm
> not using flash to author my code and because my elements are being
> generated via XML I don't have the luxury of using the
> MovieAssetMaterial
> method and passing along a library id. So what does that leave me for
> options?
>
> Problem:
> How do I dynamically load movie materials.
>
> I'm guessing that I'll have to write some kind of loader function
> that will
> first load the swf and then pass something to the MovieMaterial
> method? Does
> anyone have some examples of this?
>
> 3. Primitives getting scaled?
>
> Problem:
> My sample plane has been scaled down from the dimensions that I
> specified.
> For example my flash stage dimensions are 820x440, and my viewport
> has the
> same dimensions but my plane is 600x600 and has been set to the
> origin. Why
> then is it so small when it gets rendered onto the stage
> (approximately
> 30x30)?
>
> I apologize for lumping all these into one message, but I thought
> that you'd
> prefer that over three messages from me.
>
> I'm coding in Flex 3 and compiling in Flash CS3. You can download the
> current state of my project here:
>
> www.plu.edu/~ucomdev/papervision/papervision.zip
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/Newbie%3A-Basic-Papervision-Questions-tp21490257p21490257.html
> 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
More information about the Papervision3D
mailing list