[Papervision3D] Modifying collada geometry
Tim Knip
tim.knip at gmail.com
Sat Aug 18 09:24:29 PDT 2007
Hi,
The resulting Collada object is a DisplayObject3D with children.
Each child can have other children.
So you have to loop over all children and check each child for a
non-null geometry-property.
Say you have a model of car, then the tree would look something like:
Collada-object (geometry == null)
=> car body (geometry != null)
=> wheels (geometry == null)
=> wheel_front_left (geometry != null)
=> wheel_front_right (geometry != null)
Hope this helps!
Tim
2007/8/18, frangalvezv <utbabya at gmail.com>:
>
> I'd like to modify, from actionscript, the geometry of a collada 3D model. I
> can load the model, but once in the scene I can't acces de geometry
> property: I can see the model, I can rotate and translate it, but I can't
> reach the geometry. I use this code to load the model:
>
> var myCollada:Collada = new Collada("mymodel.DAE", null, .1);
>
> Once it is loaded (I check it), the geometry property is "null". So if I try
> something like:
>
> trace(myCollada.geometry);
>
> I get null.
>
> Anyone know what am I doing wrong?
> --
> View this message in context: http://www.nabble.com/Modifying-collada-geometry-tf4286551.html#a12202118
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
More information about the Papervision3D
mailing list