[Papervision3D] 3D Lines

laurent laurent at logiquefloue.org
Tue Sep 4 03:27:01 PDT 2007


;) Hey Andy, I see the simple principle behind the big theory now!
L


Andy Zupko a écrit :
> Hey L - 
>
> It's quite easy, all you need to do is go a random direction from the
> current position.  Here is how you can do it with the line:
>
> //get the last vertex in the line
> var cv:Vertex3D = line.geometry.vertices[line.geometry.vertices.length-1];
>
> //add a new vertex to the line with random direction
> line.addVertex(new Vertex3D(cv.x+Math.random()*80-40,
> cv.y+Math.random()*80-40, cv.z+Math.random()*80-40));
>
> Just exec that every so often (I do every 10 ms in that sample) and your
> line will grow!
>
> Hope that helps.
>
> -Andy
>
> -----Original Message-----
> From: papervision3d-bounces at osflash.org
> [mailto:papervision3d-bounces at osflash.org] On Behalf Of laurent
> Sent: Monday, September 03, 2007 6:14 PM
> To: papervision3d at osflash.org
> Subject: Re: [Papervision3D] 3D Lines
>
> Hi Andy,
>
> Can you post something about the simple Brownian motion algorithm ?
> I only find complicated physics equation from wikipedia like.
>
> thx
> L
>
> Andy Zupko a écrit :
>   
>> Nothing built into pv3d yet – but here is a class I wrote:
>>
>> http://blog.zupko.info/?p=19
>>
>> hope it helps.
>>
>> -andy
>>
>> *From:* papervision3d-bounces at osflash.org 
>> [mailto:papervision3d-bounces at osflash.org] *On Behalf Of *Colby Walburn
>> *Sent:* Monday, September 03, 2007 5:16 PM
>> *To:* papervision3d at osflash.org
>> *Subject:* [Papervision3D] 3D Lines
>>
>> Hi,
>>
>> I am new to papervision and I was wondering how to create 3D Lines. I 
>> have seen it done, but could not replicate it from the source code.
>>
>> Thanks!
>>
>> Colby
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>   




More information about the Papervision3D mailing list