[Papervision3D] Change plane width dinamically?

Wai Lam tsangwailam at gmail.com
Tue Jan 20 18:06:20 PST 2009


 I have write class extend normal plane which have a custom function which
allow the plane resize dynamically. 

http://blog.digicrafts.com.hk/2009/01/custom-plane-class-with-resize-functio
n/

William
Digicrafts

-----Original Message-----
From: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] On Behalf Of
papervision3d-request at osflash.org
Sent: Wednesday, January 21, 2009 4:00 AM
To: papervision3d at osflash.org
Subject: Papervision3D Digest, Vol 28, Issue 56

Send Papervision3D mailing list submissions to
	papervision3d at osflash.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://osflash.org/mailman/listinfo/papervision3d_osflash.org
or, via email, send a message with subject or body 'help' to
	papervision3d-request at osflash.org

You can reach the person managing the list at
	papervision3d-owner at osflash.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Papervision3D digest..."


Today's Topics:

   1. Re: Two hours left to Carlos Ulloa (Papervision 3D)	Online
      Sessio (Pablo PARRADO)
   2. Wireframe showing thru (Alan Skinner)
   3. Change plane width dinamically? (Diego Ponce de Le?n (xleon))
   4. Re: Change plane width dinamically? (Andy Zupko)
   5. Re: Change plane width dinamically? (Seb Lee-Delisle)
   6. Re: Change plane width dinamically? (Diego Ponce de Le?n (xleon))
   7.  Materials Issues (strayhand)


----------------------------------------------------------------------

Message: 1
Date: Tue, 20 Jan 2009 13:01:28 +0100
From: Pablo PARRADO <actionscripthero at gmail.com>
Subject: Re: [Papervision3D] Two hours left to Carlos Ulloa
	(Papervision 3D)	Online Sessio
To: papervision3d at osflash.org
Message-ID: <80C8CD63-BD81-4EE9-8EB6-C26BAAF16D7B at gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I'm gonna see this with Carlos!

:)

cheers
Pablo
On Jan 20, 2009, at 12:52 PM, Peter Velichkov wrote:

> Pablo PARRADO wrote:
>>>
>> Carlos Ulloa (Papervision 3D) Online Session available to download
>> - Recording
>> Many thanks to Carlos, the attendee list (we reached 130 people), 
>> Adobe, and all that make it possible! Stay tunned for more online 
>> sessions!
>> Dowload the audio recording here (599MB .zip / 1.2GB .wav) at 
>> acrobat.com :
>> http://www.actionscripthero.org/index.php?option=com_content&view=art
>> icle&id=129:carlos-ulloa-papervision-3d-online-session-available-to-d
>> ownload-recording&catid=42:aug-online-meetings&Itemid=81
>>  Pablo
>> _______________________________________________
>
> Any chance for ogg/flac/mp3 and the presentation itself (slides)
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Pablo PARRADO
Adobe User Group Manager &
Adobe Community Expert
http://groups.adobe.com/groups/6f4c57355d
http://www.adobe.com/communities/experts/members/182.html
http://www.actionscripthero.org
Mobile:  +33608757613
actionscripthero at gmail.com












------------------------------

Message: 2
Date: Tue, 20 Jan 2009 13:15:15 -0000
From: "Alan Skinner" <alan.skinner at digimania.com>
Subject: [Papervision3D] Wireframe showing thru
To: <papervision3d at osflash.org>
Message-ID:
	
<DED16A630D9E4B46BFC88A12D7CEC3F8027B1D3B at mailgate2.digital-animations.local
>
	
Content-Type: text/plain;	charset="iso-8859-1"



Hi I have a strange issue that happens every so often

I have a plane with a texture (BitmapFileMaterial).

Now the texture loads fine but occasionally the purple wireframe is there as
well!

Any ideas why that would happen, is it a (bitmap)loading glitch?

Cheers A

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the originator of the
message. This footer also confirms that this email message has been scanned
for the presence of computer viruses.

Any views expressed in this message are those of the individual sender,
except where the sender specifies and with authority, states them to be the
views of DA Group.

Yomego is an entertainment division of DA Group (UK) Limited a company
registered in Scotland with registration number SC121558 having its
registered office at The Lighthouse, 70 Mitchell Street, Glasgow, G1 3LX.



------------------------------

Message: 3
Date: Tue, 20 Jan 2009 14:51:10 +0100
From: "Diego Ponce de Le?n (xleon)" 	<malandro at gmail.com>
Subject: [Papervision3D] Change plane width dinamically?
To: Papervision3D at osflash.org
Message-ID: <4975D6CE.4060904 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi everyone, is it posible to change dinamically a plane width giving more
space for the material inside?

I mean:
I have a 500 px Sprite inside a MovieMaterial, inside a Plane (500 x 500).
I need to change the sprite?s width without any distortion, so I need to
change the Plane?s width too.

Any idea about how to do such a similar thing?
Thanks



------------------------------

Message: 4
Date: Tue, 20 Jan 2009 08:21:35 -0600
From: Andy Zupko <azupko at zupko.info>
Subject: Re: [Papervision3D] Change plane width dinamically?
To: papervision3d at osflash.org
Message-ID: <E5C68172-EFA2-4ADA-931E-10713CD0C74D at zupko.info>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Move the planes vertices.  Look at the buildPlane function for an idea how
to do that inside the Plane primitive.  You can use drawBitmap in the
MovieMaterial to get the new movie size drawn to the texture.


On Jan 20, 2009, at 7:51 AM, Diego Ponce de Le?n (xleon) wrote:

> Hi everyone, is it posible to change dinamically a plane width giving 
> more space for the material inside?
>
> I mean:
> I have a 500 px Sprite inside a MovieMaterial, inside a Plane (500 x 
> 500).
> I need to change the sprite?s width without any distortion, so I need 
> to change the Plane?s width too.
>
> Any idea about how to do such a similar thing?
> Thanks
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org




------------------------------

Message: 5
Date: Tue, 20 Jan 2009 14:32:09 +0000
From: Seb Lee-Delisle <sebstar55 at gmail.com>
Subject: Re: [Papervision3D] Change plane width dinamically?
To: papervision3d at osflash.org
Message-ID:
	<cdcb24330901200632m4f6f05a6t5a2c25a69a54d23b at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

you can also use the transformVertices method of the plane (or any
DisplayObject3D) to scale, rotate or translate all its points.

cheers!


Seb Lee-Delisle
Technical Director
pluginmedia.net




On Tue, Jan 20, 2009 at 2:21 PM, Andy Zupko <azupko at zupko.info> wrote:
> Move the planes vertices.  Look at the buildPlane function for an idea 
> how to do that inside the Plane primitive.  You can use drawBitmap in 
> the MovieMaterial to get the new movie size drawn to the texture.
>
>
> On Jan 20, 2009, at 7:51 AM, Diego Ponce de Le?n (xleon) wrote:
>
>> Hi everyone, is it posible to change dinamically a plane width giving 
>> more space for the material inside?
>>
>> I mean:
>> I have a 500 px Sprite inside a MovieMaterial, inside a Plane (500 x
500).
>> I need to change the sprite?s width without any distortion, so I need 
>> to change the Plane?s width too.
>>
>> Any idea about how to do such a similar thing?
>> Thanks
>>
>> _______________________________________________
>> 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
>



------------------------------

Message: 6
Date: Tue, 20 Jan 2009 16:08:36 +0100
From: "Diego Ponce de Le?n (xleon)" 	<malandro at gmail.com>
Subject: Re: [Papervision3D] Change plane width dinamically?
To: papervision3d at osflash.org
Message-ID: <4975E8F4.7000800 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

that?s exactly what I need !
Thanks both for the answer

Andy Zupko escribi?:
> Move the planes vertices.  Look at the buildPlane function for an idea 
> how to do that inside the Plane primitive.  You can use drawBitmap in 
> the MovieMaterial to get the new movie size drawn to the texture.
>
>
> On Jan 20, 2009, at 7:51 AM, Diego Ponce de Le?n (xleon) wrote:
>
>> Hi everyone, is it posible to change dinamically a plane width giving 
>> more space for the material inside?
>>
>> I mean:
>> I have a 500 px Sprite inside a MovieMaterial, inside a Plane (500 x 
>> 500).
>> I need to change the sprite?s width without any distortion, so I need 
>> to change the Plane?s width too.
>>
>> Any idea about how to do such a similar thing?
>> Thanks
>>
>> _______________________________________________
>> 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
>



------------------------------

Message: 7
Date: Tue, 20 Jan 2009 11:06:35 -0800 (PST)
From: strayhand <tobybeal at hotmail.com>
Subject: [Papervision3D]  Materials Issues
To: papervision3D at osflash.org
Message-ID: <21569503.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


In a previous e-mail I posted a problem that I was experiencing loading
Bitmap File Materials (There was an issue with it throwing errors until the
bitmap material loaded). I read that the core had been updated so I deleted
my modified core (which was working) and updated my papervision codebase via
subversion. 

The good news is that I'm no longer getting that error. The bad news is that
I'm not seeing a material at all. Got any ideas as to why I'm no longer
seeing bitmap materials at all?

My project can be downloaded here:
http://www.plu.edu/~ucomdev/papervision/papervision.zip

On a related not I'm getting the same "[ERROR] MaterialObject3D:
transformUV() material.bitmap not found!" error while trying to load a movie
material and I'm wondering why that's the case and if I'm doing something
wrong. 

Here's a snippet of my code that shows the creation of different materials
being applied to a plane. Thanks.

private function modelBuildPlane(model:XML):void
		{
			// Material Type
			var type:String = model.material.attribute("type");

			// Material
			var material;
					
			switch(type)
			{
				case "BitmapFileMaterial":
					var
bitmapMaterial:BitmapFileMaterial = new
BitmapFileMaterial(model.material.path);
					bitmapMaterial.doubleSided = true; 
					material = bitmapMaterial;

					break;
				case "ColorMaterial":
					var colorMaterial:ColorMaterial =
new ColorMaterial(model.material.color);
					colorMaterial.doubleSided = true; 
					material = colorMaterial;
					break;

				case "MovieMaterial":
					var movieMaterial:MovieMaterial =
new MovieMaterial(loadExternal(model.material.path));
					movieMaterial.doubleSided = true;
					material = movieMaterial;
					break;
				case "WireframeMaterial":
					break;
				default:
					// Color Material
					break;
			}

			// Initiate 
			var plane:Plane;

			// Create w/ material
			plane = new Plane(material
	
,model.dimensions.attribute("width")
	
,model.dimensions.attribute("height")
	
,model.segments.attribute("w")
	
,model.segments.attribute("h"));

			// Name
		    plane.name = model.attribute("name");
			
			// Position 
			plane.x = model.position.attribute("x");
			plane.y = model.position.attribute("y");
			plane.z = model.position.attribute("x");
			
			// Rotate
			plane.rotationX = model.rotation.attribute("x");
			plane.rotationY = model.rotation.attribute("y");
			plane.rotationZ = model.rotation.attribute("z");
			
			// Scale
			plane.scaleX = model.scale.attribute("x");
			plane.scaleY = model.scale.attribute("y");
			plane.scaleZ = model.scale.attribute("z");

			// Add to scene
			scene.addChild(plane);
			
		}

--
View this message in context:
http://www.nabble.com/Materials-Issues-tp21569503p21569503.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


End of Papervision3D Digest, Vol 28, Issue 56
*********************************************




More information about the Papervision3D mailing list