nobodu have an hint for me?
On Apr 4, 12:42 pm, mastrobardo <[email protected]> wrote: > Hi all , i have a problem with the path duplicator class. > > i have a collada (embed) i load and add to the scene so: > > var sign:Mesh = Collada.parse(Embed.SIGN, { scaling:10000} ); > sign.material = new BitmapMaterial(Embed.SIGN_TEXTURE ); > _view.scene.addChild(sign); > > everything is fine. > > i want to duplicate it along a path , so: > > var aPath:Array = [new Vector3D(738*200 ,200, 78 *200), > new Vector3D(775*200 , 200, > 110 *200), > new Vector3D(795*200 , 200, > 165*200 ), > new Vector3D(789*200 , 200, > 227 *200), > new Vector3D(752*200 , 200, > 275*200 ), > new Vector3D(698*200 ,200, > 301*200 )] > > var pathPoint:Path = new Path(aPath); > pathDuplicator = new PathDuplicator(pathPoint , sign, null, null, > { scaling:1, aligntopath:true, recenter:true, material:new > BitmapMaterial(Embed.SIGN_TEXTURE ) } ); > _view.scene.addChild(pathDuplicator); > > nothing happens. > Tryng to cast the Collada as an ObjectContainer3d , and duplicating > the first children of the .children array , duplicates not the model , > but a cube with the texture mapped on each face. > > Im doing something wrong?
