Hi,
I managed to patch into the mesh & vertexes but a detached singular object
based solution is more of what i am looking for. (created some interesting
spheres with color hsv & rgb colour cycling effects in development).

I have managed to generate planes from the vertexes of any given primitive,
which brings me to my issue.

So imagine we have a sphere made up of planes, each of these planes is in
perfect position to simulate a sphere generated from the primitive sphere
class.

I wish to be able to animate each of these planes to expand outward from the
sphere's centre point. Which would result in gaps being developed between
each of the planes that make up the sphere.

Now my 3D maths is not too good, but would this be done with a lot of trig
calculations and applied to each plane?
or
is there a simpler method of doing this?

Thanks

Darcey





2009/2/28 Darcey Lloyd <[email protected]>

> Thanks for the info on this guys, set me down the right path  :)
>
> Darcey
>
>
>
>
> 2009/2/28 Peter Kapelyan <[email protected]>
>
>> 1. You can apply the material on each face like
>> myPrimitive.faces[number].material=somematerial;
>>
>> 2. I'm not too sure but I assume yes, so you can try, the same as the
>> above,with faces, not vertices :)
>>
>> -Pete
>>
>> On Fri, Feb 27, 2009 at 7:33 PM, Darcey Lloyd <[email protected]>wrote:
>>
>>> Ah nice :) Thanks guys :)
>>> 2 more quick Q's on the same subject:
>>>
>>> 1. Is it possible to apply a unique material (colormaterial) on each of
>>> the vertices? or even at a push an interactive moviematerial?
>>> 2. Is it possible to apply unique interactivity for mouse event on each
>>> vertice? or would this have to be applied to the sphere as a whole?
>>>
>>> Darcey
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2009/2/28 Peter Kapelyan <[email protected]>
>>>
>>>  Something like:
>>>>
>>>> myPrimitive.vertices[int(mouseX/20)].x=mouseX;
>>>>
>>>> will change your vertices int he primitive
>>>>
>>>> -Pete
>>>>
>>>>   On Fri, Feb 27, 2009 at 7:17 PM, Darcey Lloyd <[email protected]
>>>> > wrote:
>>>>
>>>>> Hi Fabrice,
>>>>>
>>>>> Cheers for the info, but I guess I poorly worded what I need,
>>>>> apologies.
>>>>>
>>>>> Take this image for example (something quickly googled):
>>>>>
>>>>> http://www.yellowpipe.com/yis/tutorials/ps7/img/ps_3D_sphere/ps_3D_sphere05.jpg
>>>>>
>>>>> Each white or blue square (plane) making up the sphere, I would like to
>>>>> manipulate each individual one.
>>>>>
>>>>> Is this possible via the sphere class or would I need to construct a
>>>>> sphere out of planes?
>>>>>
>>>>>
>>>>> Darceu
>>>>>
>>>>>
>>>>>
>>>>> 2009/2/27 Fabrice <[email protected]>
>>>>>
>>>>>
>>>>>> Hi Darcey,
>>>>>> just store the instances as you wish into a class var array, object
>>>>>> etc...
>>>>>> you can then access them when you want to.
>>>>>>
>>>>>> var plane:Plane = new Plane();
>>>>>> myarray.push(plane);
>>>>>>
>>>>>> on enterframe
>>>>>> myArray[i].rotationY = 90;
>>>>>>
>>>>>> or
>>>>>>
>>>>>> loop
>>>>>> oPlanes["p"+i] = plane;
>>>>>>
>>>>>> on enterframe
>>>>>> oPlanes.p0.rotationY = 90;
>>>>>> oPlanes.p1.rotationY = 90;
>>>>>>
>>>>>> or loop
>>>>>> Planes["p"+i] = rotationY = 90;
>>>>>>
>>>>>> Fabrice
>>>>>>
>>>>>>
>>>>>> On Feb 28, 2009, at 12:29 AM, Darcey wrote:
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Is there a way of accessing each individual plane/segment plate
>>>>>>> (unsure on name) of the sphere class (or any primitives), I would
>>>>>>> like
>>>>>>> to be able to manipulate the location of each plane/segment. Would
>>>>>>> this be possible on the cube class also?
>>>>>>>
>>>>>>> I am using the latest trunk.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Darcey
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>>> ___________________
>>>>
>>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>>
>>>> HTTP://AWAY3D.COM <http://away3d.com/>
>>>>
>>>
>>>
>>
>>
>> --
>> ___________________
>>
>> Actionscript 3.0 Flash 3D Graphics Engine
>>
>> HTTP://AWAY3D.COM
>>
>
>

Reply via email to