[Papervision3D] 3D Lines

Colby Walburn colby.walburn at iqinteractive.com
Mon Sep 3 19:37:15 PDT 2007


Oh, Thanks!  :) 

________________________________

From: papervision3d-bounces at osflash.org on behalf of Andy Zupko
Sent: Mon 9/3/2007 9:44 PM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] 3D Lines



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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 9385 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070903/639d1fac/attachment-0001.bin 


More information about the Papervision3D mailing list