Still the problem ... i tried with .AWD , .OBJ , .DAE .... Path duplicator dont work. i can add object to the scene , but not duplicates it along a path. using Path Duplicator with a cube , works.
On Apr 4, 6:09 pm, mastrobardo <[email protected]> wrote: > ok , installed prefab on my own laptop ... except for the scale , and > a name(corrected) , nothing worng. > > On Apr 4, 4:55 pm, Fabrice3D <[email protected]> wrote: > > > if you see the cube while its a direct parsedata... something is wrong with > > it. > > thats why I want make sure it loads in Prefab but if you can't install... > > > Fabrice > > > On Apr 4, 2011, at 4:37 PM, mastrobardo wrote: > > > > im not using awd(cant' install nothing at work) , but adding it to the > > > scene directly dont cause problems. > > > i uploaded the file here:http://www.e3beta.it/creativita/Collada.zip > > > , if some nice person want to make a test ;) , but really dont think > > > the problem come from the file. ALso , the loader cube appearing when > > > i add sign.children[0] , also if textures and the collada itself are > > > embedded is strange. > > > > The collada is actually prepared from an external studio , we made > > > some work togheter(altough not with away , its the first project for > > > me) and never experienced this problem. > > > > On Apr 4, 4:05 pm, Fabrice3D <[email protected]> wrote: > > >> at first sight it should work. but are you sure the sign mesh is ok? > > >> if you add it to scene you see it or if you for the sake of testing drop > > >> this collada in prefab, does it load? if yes replace your code with an > > >> output awd or a class from prefab. > > > >> Fabrice > > > >> On Apr 4, 2011, at 3:58 PM, mastrobardo wrote: > > > >>> 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? > >
