[away3d] Two or more Away3D scenes on one stage

6 views
Skip to first unread message

Vadim

unread,
Apr 26, 2010, 3:31:24 PM4/26/10
to Away3D.dev
Hello community. I want to place about two away3d scenes on one stage.
All scenes must be in containers, like slides. This containers can be
moved or scaled by user. But when i put something like 3d panorama
class inside this container, it's looks terrible. I'm tried to use
clipping, but without great results. This is example what i'm trying
to get - http://dl.dropbox.com/u/2096854/question.jpg . Hope, someone
can help me.


--
Subscription settings: http://groups.google.com/group/away3d-dev/subscribe?hl=en

Fabrice3D

unread,
Apr 26, 2010, 3:59:32 PM4/26/10
to away3...@googlegroups.com
What is exactly going wrong?
Not becomming very wize from your image...
Fabrice

Vadim

unread,
Apr 27, 2010, 7:32:09 AM4/27/10
to away3...@googlegroups.com
Hello. It's looks like on this screen http://dl.dropbox.com/u/2096854/Screen.PNG . This white rectangle is container and i want place away3D panorama class inside it. But it's always looks distorted. I can't found any example about using more then 1 away3d scene on stage.

2010/4/26 Fabrice3D <fabr...@gmail.com>



--
Best regards, Vadim Smakhtin.
http://vadimsmakhtin.com

savagelook

unread,
Apr 27, 2010, 7:53:07 AM4/27/10
to Away3D.dev
Not sure I fully understand what you are trying to achieve, but have
you looked at the multiple view example here:
http://www.flashmagazine.com/tutorials/detail/away3d_basics_the_view_and_the_scene/

You can also create other totally separate away3d instances on your
stage by adding a new sprite to the stage and then adding your view to
it.

On Apr 27, 7:32 am, Vadim <algar...@gmail.com> wrote:
> Hello. It's looks like on this screenhttp://dl.dropbox.com/u/2096854/Screen.PNG. This white rectangle is
> container and i want place away3D panorama class inside it. But it's always
> looks distorted. I can't found any example about using more then 1 away3d
> scene on stage.
>
> 2010/4/26 Fabrice3D <fabric...@gmail.com>
>
>
>
>
>
> > What is exactly going wrong?
> > Not becomming very wize from your image...
> > Fabrice
>
> > On Apr 26, 2010, at 9:31 PM, Vadim wrote:
>
> > > Hello community. I want to place about two away3d scenes on one stage.
> > > All scenes must be in containers, like slides. This containers can be
> > > moved or scaled by user. But when i put something like 3d panorama
> > > class inside this container, it's looks terrible. I'm tried to use
> > > clipping, but without great results. This is example what i'm trying
> > > to get -http://dl.dropbox.com/u/2096854/question.jpg. Hope, someone

Fabrice3D

unread,
Apr 27, 2010, 8:26:02 AM4/27/10
to away3...@googlegroups.com
If you get comfused with centered based rects,

Call this for each of your views

_myleftView = SomeFreakinCoolWayToDOIt(new Rectangle(100,100,300,400));
addChild(_myleftView);

private function SomeFreakinCoolWayToDOIt(rect:Rectangle):View3D
{
var activeRectNearClip:NearfieldClipping = new NearfieldClipping({minX:-(rect.width*.5) ,minY:-(rect.height*.5), maxX:(rect.width*.5), maxY:(rect.height * .5)});
return new View3D({x: rect.x, y:rect.y, clipping: activeRectNearClip});
}


Fabrice

Fabrice3D

unread,
Apr 27, 2010, 8:36:03 AM4/27/10
to away3...@googlegroups.com
btw, just saw I have typed too fast...
add .5 width and .5 height for your view center :)

Fabrice

On Apr 27, 2010, at 1:53 PM, savagelook wrote:

Reply all
Reply to author
Forward
0 new messages