yes, but same issue, materials are not into the 3d file, so except may be for mime type all embeds should work.
Fabrice On Apr 29, 2010, at 12:38 PM, Sylvain Godbert wrote: > Hi, > > Thanks Fabrice. Will check this later today. > > I was wondering if it was possible to do the same (embed geometry and > texture) with 3ds and obj files ? I did manage to embed the 3ds file > and open it with the parsegeometry method. But didn't find other > solution than embed the images separately and manually set the > texture. Is the awd format the only one that can be embedded (except > as3) ? > > Sylvain > > On 29 avr, 00:20, Fabrice3D <[email protected]> wrote: >> I got last week after I've moved an awd + files on another computer a >> similar issue. >> the fix was to check the privileges of the images. The system on the other >> mac was not letting the files to be openned. >> changing to read/write fixed it. >> I'm using dayly the outputs so far it all works. And I do not do voodoo :)) >> I do not use embeds tho. >> >> I hope have time tomorow to look at animatedBitmapMaterial using embeds >> and while at it, I'll try test the awd embed as well. >> >> I'll come back to you on this. >> >> Fabrice >> >> On Apr 28, 2010, at 11:08 PM, Sylvain Godbert wrote: >> >> >> >>> Hi Fabrice, >> >>> Tks for the help >> >>> I did put all the images in "images/". >> >>> I tried the parse method like this : >> >>> var model:ObjectContainer3D = AWData.parse(new AWDObject()) as >>> ObjectContainer3D; >>> _View.scene.addChild(model); >> >>> I also tried : >> >>> var model:ObjectContainer3D = AWData.parse(new AWDObject(), >>> {customPath:"./images/"}) as ObjectContainer3D; >>> _View.scene.addChild(model); >> >>> or >> >>> var model:ObjectContainer3D = AWData.parse(new AWDObject(), >>> {customPath:"./assets/images/"}) as ObjectContainer3D; >>> _View.scene.addChild(model); >> >>> but nothing worked. I can't get the textures.. >>> I am running out of idea now .. Any ideas ? Am I missing something ? >> >>> Sylvain >> >>> On 28 avr, 21:31, Fabrice3D <[email protected]> wrote: >>>> you need to respect the native url which is "images/" or define >>>> a custom url >> >>>> AWData.pathToSources("/anotherdir/somedir/"); >> >>>> and use parse methode instead >> >>>> Fabrice >> >>>> On Apr 28, 2010, at 6:09 PM, Sylvain Godbert wrote: >> >>>>> Hi, >> >>>>> I was wondering whether there is a way to embed an awd object (with >>>>> textures) into an application. >> >>>>> I tried this : >> >>>>> [Embed(source="assets/objet.awd", mimeType="application/octet- >>>>> stream")] >>>>> private var AWDObject:Class; >> >>>>> var awData:AWData = new AWData(); >>>>> var model:ObjectContainer3D = awData.parseGeometry(new AWDObject()) as >>>>> ObjectContainer3D; >> >>>>> _View.scene.addChild(model); >> >>>>> This does work but only load the geometry and not the textures. Is >>>>> there an elegant way to get the textures as well ? >> >>>>> Sylvain
