Hey Away3D.dev,
I've just starting looking at Away3D and 3D modelling in general. The
company I'm working for is looking to release a very basic 3D game
with 2d sprites involved in walking around a 3d room.
The 3D artist here is working with 3DStudio Max and for testing
purposes is exporting to a 3ds format so that I can import it.
So far its been pretty simple and I've managed to find solutions to
little problems I've had. However there is one thing that I've found
a little bit strange:
The parser seems to set the texture tiling to false as default and I
can't seem to find a way to set this to true with out loading the
model and then cycling through every face!
...
loader = Max3DS.load("table.3DS");
loader.addOnSuccess(loadComplete);
...
private function loadComplete(e : Loader3DEvent) : void {
model = loader.handle as ObjectContainer3D;
setTiling(model, true);
}
private function setTiling(objToTile : ObjectContainer3D, value :
Boolean) : void {
for each (var face : Object in objToTile.children[0].faces) {
Face(face).material = new BitmapMaterial(BitmapMaterial(Face
(face).material).bitmap, {repeat : value});
}
}
it would be nice if you could do something like:
loader = Max3DS.load("table.3DS", {materialRepeat : true});
Is this possible ?
Many Thanks,
Charlie.