Hello,

I'm new to oop, flash, and away3d but trying hard reading
examples,etc ... just can't get mind around certain concepts ...

Couple questions ...

Suppose I read in an exported .obj file (textures come in fine) as
such:

import away3d.loaders.Obj;

public var obj1:Object3DLoader;

var material:BitmapFileMaterial = new BitmapFileMaterial
("bitmap1.jpg");

obj1 = Obj.load("teepot1.obj", { material:material } );

All good to that point ...

1. How do I get access to mesh vertices to be able to manipulate obj1?
I know it's mesh.vertices but all examples I've seen just don't make
sense (not sure the basic setup). Could I get a little extra
clarification as to where to begin having obj1 in hand?

2. If I then read in another obj file (which I verified can be read in
and texture file is ok) how do I switch back and forth displaying one
or the other?

I've tried:

if (objtoload=2) { scene.addChild(obj2);scene.removeChild(obj1); }

via a button handler but I get the original obj and then a cube of
some sort with a texture of text saying "Loading Geometry ..." over
top of original obj ...

using Flash CS4 (demo), away3D 3.3.3, btw

Thanks

Reply via email to