hi,
I'm trying to create a simple 3d city with some downloaded Google
Sketchup models. For simplicity sake I export them from sketchup in
3ds format, so I dont need to import the textures.
I'm still newbie to away3d, but this is how I think it should be done:
function createBuilding(_URL:String, _x:Number, _y:Number, _z:Number,
_rX:Number, _rY:Number, _rZ:Number,_scale:Number):void
{
var _loader:Object3DLoader = new Object3DLoader();
_loader = Max3DS.load(_URL, {material:null});
_loader.addOnSuccess(loadedBuilding);
}
function loadedBuilding(e:LoaderEvent):void
{
var object3d:Object3D;
object3d = e.loader.handle;
scene.addChild(object3d);
}
function init3d():void {
createBuilding("models/model1.3ds",x,y,z,rX,rY,rZ,scale);
... and so on...
}
1. The problem is I dont know how I'll call the 3d object later, for
interactivity... perhaps I should create a separate class and generate
the models from a object3d... any ideas?
2. Other question: should I try to merge all 3d buildings in a single
3ds file and import it? wouldn't it be easier? but wouldn't it become
cpu intensive?
sorry if this is too confusing.