[Papervision3D] 3D Lines

Andy Zupko azupko at zupko.info
Mon Sep 3 18:44:04 PDT 2007


You don't need to call line.render(scene) - that is done through the
scene.renderCamera  (which projects then renders all objects in the scene). 

 

If you aren't seeing anything - you might want to check the line color - it
defaults to white.  If that doesn't work check your camera matrix to see if
you can even see the line the way its set up.

 

Sorry for the white default color - I always use black backgrounds J

 

From: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] On Behalf Of Colby Walburn
Sent: Monday, September 03, 2007 9:00 PM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] 3D Lines

 

Thanks!

I've been having some problems using it.  It's probably a simple mistake,
I've never used the vertices3D class before and am having some trouble
getting it to render.  This is what I did:

 

var vertices:Array = new Array();

                                                vertices[0] = new
Vertex3D(0,0,0);

                                                vertices[1] = new
Vertex3D(100,100,100);

                                                vertices[2] = new
Vertex3D(0,100,50);

                                                var line:Line3D = new
Line3D(vertices);

                                                scene.addChild(line);

                                                line.render(scene);

                                                scene.renderCamera(camera);

 

Am I missing something?

 

-Colby

 

From: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] On Behalf Of Andy Zupko
Sent: Monday, September 03, 2007 5:54 PM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] 3D Lines

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070903/e43c5c5b/attachment-0001.html 


More information about the Papervision3D mailing list