The problem lay with the poor mesh, whatever it was. Prefab of course works like a charm with other meshes. What an app, and I haven't tried the best things yet!
I am stuck again with a simple issue: I successfully imported an .obj file containing 3 meshes with uv mapped textures and exported it to away3d .as class. But in the compiled swf, the textures only show on one side of the meshes. I tried to set bothsides=true on the children of the .as class Objectcontainer3. I hoped the children would be the 3 meshes. But when I trace the children, I only get "cont_1=x:0, y:0, z=0" or similar. Is there a standard way of setting children objects properties? Thanks for any help. On Oct 6, 12:19 am, Fabrice3D <[email protected]> wrote: > if you have a model, just drop it in Prefab and export as as3 for the engine > version you want, > call it Head of whatever name the tut uses and you should be good. > > Also make sure if you use a custom model that it has a unique mapping, this > is a must for propper > normalmap generation. > > Fabrice > > On Oct 5, 2010, at 12:41 PM, richardolsson wrote: > > > > > Hi again Lawrence, > > > I'll just re-post here what we discussed via e-mail for any future > > readers to find! > > > The head model was exported using an old version of the AS3Exporter > > (i.e. before Away3D 3.5.3) and hence uses classes that have since been > > deprecated and removed from the library. > > > The best way to get around this problem is to simply use an older > > version of Away3D (pre revision 2786) when working with these parts of > > the book. This can be done by updating one's local SVN working copy to > > this older revision using the following command-line command: > > > svn -r2785 update > > > This will get the Away3D source per revision 2785, which should work > > with the code in the book. > > > Note that the workflows described in the book (exporting models to AS3 > > and using them as classes) still work, but a model should be exported > > and important using the same version of Away3D. The problems here are > > caused by the HeadModel class being exported using an old version (the > > current one at the time of printing the book). > > > Cheers > > /R > > > On Oct 5, 5:18 am,bandy<[email protected]> wrote: > >> Hi, > >> I have a problem with getting the code to compile when running the > >> UsingNormalMapGenerator exercise in Chapter 10. This class extends > >> Chapter10SampleBase and imports the class HeadModel.as which is a > >> model of a head. > > >> HeadModel.as gets an error trying to instantiate new MatrixAway3d() at > >> line 41 (1180: call to undefined method). I have read online that that > >> class is obsolete and has been replaced by native Matrix3D methods. > >> Does that mean that the HeadModel class is now obsolete as well? Would > >> anyone know of the best workaround for this type of situation? > > >> I have tried to research this but no luck. Thanks for any help! > >> Lawrence- Hide quoted text - > > - Show quoted text -
