Away3D display problems (2D and 3D mixing)

Software: Away3D 3.x

anomander, Newbie
Posted: 13 January 2012 02:47 PM   Total Posts: 4

Hello everyone!

I’m doing a 3D simulator of the solar system using Away3D. I need to add a kind of a control panel at the bottom of the screen (with some components like radio buttons etc.). When I do it, there are terrible rendering problems (the 3D scene and the control panel mix together in a nasty way…). Can you help me finding the solution? In my view I could attach Away3D view not to the whole scene, but for example to a smaller panel or something like this - but how to do it?

I attach a file which shows the problem

 

   

Avatar
Fabrice Closier, Administrator
Posted: 13 January 2012 03:11 PM   Total Posts: 1265   [ # 1 ]

do you addChild above the view3d?
It looks like you use Flex. What happends if you use pure as3 or simply add a basic graphic on top of the view?

   

anomander, Newbie
Posted: 13 January 2012 03:30 PM   Total Posts: 4   [ # 2 ]

I’m working using Flash Professional CS5.5. I’m simply creating a panel using components and Rectangle tool. (I do it in the main scene view).

Then, I add the code to it - and no, there is no other addChild calling.

I’m pretty sure it’s something very easy to handle - but I’m a beginner in flash and that’s it.

   

anomander, Newbie
Posted: 17 January 2012 12:02 AM   Total Posts: 4   [ # 3 ]

No-one knows the solution…?

OK, I’d like only to know, how to ‘attach’ Away3D View not to the WHOLE flash screen/page, but only to a part of it… Is it possible?

   

MichaelS, Newbie
Posted: 17 January 2012 01:17 AM   Total Posts: 8   [ # 4 ]

Your panel is added to the 2D Scene before you add your viewport to the scene:

this.addChild(_yourPanel);
this.addChild(_view);

you can either change that to

this.addChild(_view);
this.addChild(_yourPanel);

or the the index of your Panel to bring it to the front:

this.setChildIndex(_yourPanel, this.numChildren-1); // puts the panel on top


the other thing you are searching for is clipping. I don’t know the code from scratch: Google Away3D Clipping wink

   

anomander, Newbie
Posted: 20 January 2012 12:22 AM   Total Posts: 4   [ # 5 ]

Thanks a lot! This clipping was that I was looking for;)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X