Flex Away3D general questions

Software: Away3D 3.x

MustHave, Newbie
Posted: 22 August 2011 09:16 AM   Total Posts: 6

Hello.
I’m trying some examples using Away3D engine (v. 3.6.0) and i have some questions. I mentioned that all 3D objects are rendered from their center. Can I switch to the “top-left rendering mode”? And the second one: advice me the best (in your opinion) way to posistion planes like on attached picture.
Thank you.

 

   

fsand, Newbie
Posted: 22 August 2011 09:39 AM   Total Posts: 5   [ # 1 ]

I have never heard of a top left rendering mode in 3d.
The positioning of your planes could be done something like this:

// define total width and height of planes
var planesWidth:Number blue.width purple.width yellow.width;
var 
planesHeight:Number blue.height green.height;

// first row positions in x
blue.= - planesWidth/2;
purple.blue.blue.width;
yellow.purple.purple.width;

// 2nd row positions in x
green.= -planesWidth/2;
lightBlue.green.green.width;
darkGreen.lightBlue.lightBlue.width;

// first row  positions in y
blue.= -planesHeight/2;
purple.blue.blue.height;
yellow.purple.purple.height;

// 2nd row positions in y
green.= -planesHeight/2;
lightBlue.green.green.height;
darkGreen.lightBlue.lightBlue.height
   

MustHave, Newbie
Posted: 22 August 2011 09:43 AM   Total Posts: 6   [ # 2 ]

And there is no way to position them automatically?

   

fsand, Newbie
Posted: 22 August 2011 09:47 AM   Total Posts: 5   [ # 3 ]

write a layoutmanager

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X