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
