[Papervision3D] Shaded vs unShaded Material (fps)

blackdice ih32_32 at hotmail.com
Sat Sep 1 13:44:04 PDT 2007




Dustin Sparks wrote:
> 
> Ok, i'm going to include the files in this email...
> 
> I know this is probably not the best way to do it. But it worked just fine
> when i wrote it a while back so i've been using it ever since.
> 
> What you would do for your boxes is grab the x,y,z coordinates of your
> box..
> then add use the to create a new number3d with some offset that defines
> where you want to rotate.
> 
> 
> On 8/31/07, blackdice <ih32_32 at hotmail.com> wrote:
>>
>>
>> Broken link!?
>> And the rotateArbitrary  function gives bunch of errors
>> Can you send me your DisplayObject3D.as with the rotateArbitrary 
>> function
>> Or can you make a function to rotate a DisplayObject3D from the center
>> Rather than change the DisplayObject3D.as
>> It will be nice…
>>
>>
>> Dustin Sparks wrote:
>> >
>> > I actually wrote a patch for DisplayObject3D a while back that
>> allows  you
>> > to rotate your object around a given axis  or the default axis of an
>> > object.
>> > You could probably use it to rotate your box around the axis that you
>> > want.
>> >
>> > heres a link to the  function to be added to displayObect3D ... note
>> that
>> > i', not entirely sure will  still work on newer revisions, but i dont
>> see
>> > why not. as is i dont believe its chnged much when it comes to directly
>> > accessing the matrices.
>> >
>> >
>> > The files are broken links in the forum, however, i provided code
>> > examples
>> > in the email itself.
>> >
>> >
>> http://www.nabble.com/Re%3A-Rotation-around-Arbitrary-axis-addition-to-DisplayObject3D-tf3981228.html#a11302129
>> >
>> >
>> >
>> > On 8/30/07, Chris Nuuja < cnuuja at adobe.com > wrote:
>> >>
>> >> >how can i rotate DisplayObject3D form the center
>> >>
>> >> Define "center".  Rotation is around 0,0,0 in the local coordinate
>> >> system.  If your cube is defined so that 0,0,0 is one of the cube
>> >> corners, then you probably want to apply a matrix that's the
>> >> concatenation of translate(-widthCube/2,-heightCube/2,-depthCube/2),
>> >> then do your rotate(dx,dy,dz), then
>> >> translate(widthCube/2,heightCube/2,depthCube/2).  Not sure what the
>> >> current api looks like, but I'm sure it can do the equivalent of:
>> >>
>> >> var myRotate:Matrix3D = new Matrix3D();
>> >> myRotate.translate(-widthCube/2,-heightCube/2,-depthCube/2);
>> >> myRotate.rotate(dx,dy,dz);
>> >> myRotate.translate(-widthCube/2,-heightCube/2,-depthCube/2);
>> >>
>> >> myD03D.transform.calculateMultiply(myD03D.transform, myRotate);
>> >>
>> >>
>> >> -----Original Message-----
>> >> From: papervision3d-bounces at osflash.org
>> >> [mailto:papervision3d-bounces at osflash.org] On Behalf Of blackdice
>> >> Sent: Thursday, August 30, 2007 11:49 AM
>> >> To: papervision3D at osflash.org
>> >> Subject: [Papervision3D] Shaded vs unShaded Material (fps)
>> >>
>> >>
>> >> im back with my old cubes lol
>> >>
>> >> http://www.isa.mohammmed.com/Shaded.swf
>> >>
>> >> http://www.isa.mohammmed.com/unShaded.swf
>> >>
>> >>
>> >> yah why there is no color in ShadedColorMaterial?
>> >> and nobody answered my question
>> >> how can i rotate DisplayObject3D form the center?
>> >> :,(
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Shaded-vs-unShaded-Material-%28fps%29-tf4356188.ht
>> >> ml#a12413679
>> >> 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
>> >>
>> >
>> >
>> >
>> > --
>> > [ Dustin Sparks ]
>> > p. (765) 273-4793
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Shaded-vs-unShaded-Material-%28fps%29-tf4356188.html#a12432822
>> 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
>>
> 
> 
> 
> -- 
> [ Dustin Sparks ]
> p. (765) 273-4793
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Shaded-vs-unShaded-Material-%28fps%29-tf4356188.html#a12443968
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list