.awd bothsides

Software: Away3D 4.x

Manuel L., Member
Posted: 15 February 2012 03:01 PM   Total Posts: 99

Hey guys, hope somebody can help me with showing bothsides of my model.

I load a .awd file

Parsers.enableAllBundled();
_loader = new Loader3D();
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETEonResourceComplete);
_loader.addEventListener(LoaderEvent.LOAD_ERRORonLoadError);
_loader.load( new URLRequest('Hpg.awd') ); 

how is it possible to make everything showing with bothsides = true?
Mesh isnt available in 4.0 right? So what to do now?

Greetz manu!

   

Avatar
Fabrice Closier, Administrator
Posted: 15 February 2012 04:08 PM   Total Posts: 1265   [ # 1 ]

material.bothSides

   

Manuel L., Member
Posted: 16 February 2012 05:55 AM   Total Posts: 99   [ # 2 ]

Hey fabrice ... thank you for this helpful reply.
But when you look at my code you see the parsing runs automatically ... where can i get access to the material properties?

Normally i changed the name property while parsing, so additionally i could get access when programm is running with .getChildByName() ... i dont know what to do now.

Do i have to change the parsers-class?

thank you, manu

   

Manuel L., Member
Posted: 16 February 2012 07:36 AM   Total Posts: 99   [ # 3 ]

Where is the .material property?

It doesnt work for ObjectContainer3D and Object3D ... and Mesh seems to doesnt exist anymore in 4.0.

Is it possible to get access to the material when using .awd-file?
Or do i have to work with another method like .obj for example?

   

Manuel L., Member
Posted: 16 February 2012 09:05 AM   Total Posts: 99   [ # 4 ]

hey sorry for my newbieness wink

got it with

for(var i:int 0_view.scene.getChildAt(0).getChildAt(0).numChildreni++)
{ Mesh(_view.scene.getChildAt(0).getChildAt(0).getChildAt(i)).material.bothSides true;

thank you smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X