[Papervision3D] Line3D howto

xero xero.nu at gmail.com
Fri Mar 7 11:33:12 PST 2008


 hey, (yup, im replying to myself!)
i was thinking about this at lunch, and just
couldnt help myself but make a simple demo.

here's the link
http://the.fontvir.us/pv3d/lineObject/
and the source, of course!
http://the.fontvir.us/pv3d/lineObject/srcview/<http://the.fontvir.us/pv3d/lineObject/srcview/index.html>

i create a cylinder (that has a wide base and a small top)
that lookes more link a cone. and set it's visible property to false.
then i create a lines3D object.
then on the render loop, i draw a new line form
vertice to vertice untill the end of the object.
then i reloade the line object and start again.

this is VERY basic code.
like i said, i did it on my lunch
break ;) but it still should give
you some ideas.

try using diffrent objects in place
of the cylinder... have fun, i did!
____  ___
\   \/  /___________  ____
.\     // __ \_  __ \/ _  \
./     \  ___/ | | \( <_>  )
/___/\  \___  >__|---\____/
|     \_/   \/        |
| xero harrison       |
| xero.nu at gmail.com   |
| http://xero.nu      |
| http://fontvir.us   |
| http://0x000000.nu  |
| http://xero.owns.us |
`---------------------'


> ---------- Forwarded message ----------
> From: xero <xero.nu at gmail.com>
> To: papervision3d at osflash.org
> Date: Fri, 7 Mar 2008 11:23:24 -0500
> Subject: Re: [Papervision3D] Line3D howto
>  some how you have to provide the line
> object the previous + next coordinates.
>
> to make the lines follow a signature
> or something you will still need the
> 3D points.
>
> this is just an idea...
>
> if you wanted to do somthing
> 2D like a signature, you could
> create a spline in 3DSM and export
> it (see here: http://ascollada.org/?p=6 )
> then the splines. objectname.geomerty
> to get the posions on the vertexes in
> the spline, then use the line3D class
> to connect them.
>
> 3D should be pretty simmilar.
> make a 3d object (primative or
> otherwise) then look at the
> object.geomerty again, you
> will get the same vertix positions,
> and should be able to use those
> positions to draw you lines.
>
> g'luck!
> ____  ___
> \   \/  /___________  ____
> .\     // __ \_  __ \/ _  \
> ./     \  ___/ | | \( <_>  )
> /___/\  \___  >__|---\____/
> |     \_/   \/        |
> | xero harrison       |
> | xero.nu at gmail.com   |
> | http://xero.nu      |
> | http://fontvir.us   |
> | http://0x000000.nu  |
> | http://xero.owns.us |
> `---------------------'
>
>
> > ---------- Forwarded message ----------
> > From: "Romuald Quantin" <romuald at thoughtomatic.co.uk>
> > To: <papervision3d at osflash.org>
> > Date: Fri, 7 Mar 2008 14:57:29 -0000
> > Subject: Re: [Papervision3D] Line3D howto
> >
> > Wow that's very nice!
> >
> >
> >
> > Is there any way to make the drawing following a path instead of being
> > generated? I'd like to draw a logo, a letter or something like that?
> >
> >
> >
> > Romu
> >
> >
> >  ------------------------------
> >
> > *From:* papervision3d-bounces at osflash.org [mailto:
> > papervision3d-bounces at osflash.org] *On Behalf Of *xero
> > *Sent:* 07 March 2008 13:47
> > *To:* papervision3d at osflash.org
> > *Subject:* Re: [Papervision3D] Line3D howto
> >
> >
> >
> > hey,
> >
> > i made a little demo recently
> >
> > its a lorenz attractor (w/ some
> >
> > help from andy!) that uses the
> >
> > new line3D in pv3d great white
> >
> >
> >
> > http://the.fontvir.us/b10g/?id=107
> >
> > and here's the source
> >
> > http://the.fontvir.us/pv3d/lorenzAttractor/srcview/
> >
> >
> >
> > if you look in the loop3D function
> >
> > i use lines.addLine()
> >
> > but i also have the alternative lines.addNewLine()
> >
> > in there commented out....
> >
> >
> >
> > hope that helps!
> >
> > ____  ___
> > \   \/  /___________  ____
> > .\     // __ \_  __ \/ _  \
> > ./     \  ___/ | | \( <_>  )
> > /___/\  \___  >__|---\____/
> > |     \_/   \/        |
> > | xero harrison       |
> > | xero.nu at gmail.com   |
> > | http://xero.nu      |
> > | http://fontvir.us   |
> > | http://0x000000.nu  |
> > | http://xero.owns.us |
> > `---------------------'
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: "denis.ws" <denis at santelli.name>
> > To: papervision3D at osflash.org
> > Date: Thu, 6 Mar 2008 11:52:10 -0800 (PST)
> > Subject: [Papervision3D] Line3D howto
> >
> > hello
> > I'm new on PV3D.
> > Can someone tell me basically  how to use the line3D object?
> > What class to import and how to make a simple vertical line.
> > I found some samples but too avanced for me
> > Thank
> >
> > -----
> > "Fluxus's more fun than Dada" Nam June Paik
> > --
> > View this message in context:
> > http://www.nabble.com/Line3D-howto-tp15877382p15877382.html
> > Sent from the Papervision3D mailing list archive at Nabble.com<http://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
> >
> >
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080307/f4ab2d68/attachment.html 


More information about the Papervision3D mailing list