Chris,

I think you have to export your .max file to .3DS file.

ttv

2009/7/17 ChrisMcIntosh <[email protected]>

>
> Hello im using 3dsMax 2010 for modeling, I am trying to get my objects
> that i build in 3d Max to get loaded and displayed on screen.  I have
> seen a couple examples of how to do this and i have setup the
> following code:
>
> It says it loads the file, and i get a round ball on the screen with a
> message in blue saying loading X of X geometry.  Am i doing something
> wrong on the model side or on the flash side?
>
> Thanks
> //
>
> import away3d.loaders.*;
>
> import away3d.containers.View3D;
> import away3d.core.base.Object3D;
> import away3d.events.*;
> import away3d.containers.ObjectContainer3D;
> import away3d.core.math.Number3D;
> import away3d.core.base.Vertex;
> trace('finished importting classes');
> var playerCharacter:Object3DLoader;
> stop();
> trace('starting loader');
>
>
> playerCharacter = Max3DS.load("http://fatalcombat.spacecasegames.com/
> sites/fatalcombat.spacecasegames.com/files/Man_Suit_Black_001.max<http://fatalcombat.spacecasegames.com/%0Asites/fatalcombat.spacecasegames.com/files/Man_Suit_Black_001.max>
> ",
> { name:"stuff", scaling:1, y:1, x:1, z:1,
> rotationX:0, loadersize:300});
> ///here it is
> playerCharacter.addOnSuccess(loadModelComplete);
>
> function loadModelComplete(e:LoaderEvent) {
>
>        trace('loader complete');
>        view.scene.addChild(playerCharacter);// your player character
> content
> as ObjectContainer3D
>
>        view.render();
> }
>
> //Build the View
>                var view:View3D;
>
>                        // Create the view and Add it to the stage
>                                view = new View3D({x:250,y:200});
>                                stage.addChild(view);
>                                view.render();
>
> //
>
>


-- 
Tatavo
Luiz Otávio Toniato Senna

Reply via email to