[Papervision3D] Siento preguntar.
Antonio González
aghsoft at aghsoft.com
Sun Jun 3 19:29:29 EDT 2007
Thanks Peter, will try to find that error and to apply what you say to me. A big greeting :)
----- Original Message -----
From: Peter Kapelyan
To: Papervision3D at osflash.org
Sent: Monday, June 04, 2007 1:06 AM
Subject: Re: [Papervision3D] Siento preguntar.
Try something like:
rootNode.addChild( plane1, "plane");
There has to be a name - or you might get this error - heres some code for instance:
rootNodeParty = scene.addChild( new DisplayObject3D( "rootNodeParty" ) );
var basicSphere:Sphere = new Sphere( materialEarth, 300, 20, 12);
rootNodeParty.addChild( basicSphere, "basicSphere" );
then to find name of that object:
var rootNodePartyXXXXXXX:DisplayObject3D = scene.getChildByName( "rootNodeParty" );
var basicSphere :DisplayObject3D = rootNodePartyXXXXXXX.getChildByName( "basicSphere" );
Hope it helps
-Pete
------------------------------------------------------------------------------
_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
__________ Informacisn de NOD32, revisisn 2305 (20070601) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070604/96ed11d2/attachment.htm
More information about the Papervision3D
mailing list