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.x = - planesWidth/2;
purple.x = blue.x + blue.width;
yellow.x = purple.x + purple.width;

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

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

// 2nd row positions in y
green.y = -planesHeight/2;
lightBlue.y = green.y + green.height;
darkGreen.y = lightBlue.y + 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