Hi!
I am new with away3D and am experiencing some of its functionalities at the moment, and I already got stuck at one. I followed a tutorial (that I can’t seem to find again…damn) to import a .3ds mesh I created in blender, and successfully applied a texture over it, but I cannot find out how to change its alpha value.
Should it happen at this moment?
function loadModel3D():void
{
_objLoader = new Max3DS();
// redimentionner le modèle 3D, multiplie par 8 sa taille
_objLoader.scaling = 8;
// analyse le fichier 3DS pour en faire un ObjectContainer3D
_model3D = _objLoader.parseGeometry(_model3DLoader.data) as ObjectContainer3D;
// récupère le premier enfant de _model3D pour lui appliquer la texture
(_model3D.children[0] as Mesh).material = new BitmapFileMaterial("texture_crystal3.png");
// lisse la texture
((_model3D.children[0] as Mesh).material as BitmapFileMaterial).smooth = true;
// ajoute _model3D sur Scene3D puis on le place bien
_scene.addChild(_model3D);
_model3D.rotationX = -90;
_model3D.y = 10;
addEventListener(Event.ENTER_FRAME, refresh);
}
I am also wondering whether it is normal that my shape isn’t transparent, since it was in blender…
Any idea? I guess it’s normal to be a bit confusing while trying something new
Thank you in advance for your help.
julien.
P.S. : I join my .fla with the post, but without the shape and the texture which I guess aren’t needed.