From 2D to 3D

0 views
Skip to first unread message

Admix

unread,
Jul 4, 2009, 6:32:59 AM7/4/09
to away3d.dev
Hello,

I have drawn a square with 4 Sprite:

1 = x: 0, y: 200, rotation:-90, width:6, height: 201
2 = x: 0, y: 0, rotation:0, width:201, heigth:6
3 = x: 200, y: 0, rotation: 90, width:6, height: 201
4 = x: 200, y: 200, rotation: 180, width: 201, height: 6

How can I convert the data in the 4 Cube in order to create 3D in the
same square?

Thanks for every answers

Rob Bateman

unread,
Jul 7, 2009, 3:10:02 PM7/7/09
to away3...@googlegroups.com
Hey Admix

sorry, not sure i understand the question... a cube is created in away3d by using new Cube() in the primitives package. Is this what you are looking for?

Rob
--
Rob Bateman
Flash Development & Consultancy

rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com
Message has been deleted
Message has been deleted
Message has been deleted

Admix

unread,
Jul 9, 2009, 7:16:08 AM7/9/09
to away3d.dev
No, wrong me understand

I have something like this: [http://]img35[.]imageshack[.]us/
img35/6233/29053777.png

How to make 3D object looks like in 2D?

On 7 Lip, 21:10, Rob Bateman <rob.bate...@gmail.com> wrote:
> Hey Admix
>
> sorry, not sure i understand the question... a cube is created in away3d by
> using new Cube() in the primitives package. Is this what you are looking
> for?
>
> Rob
>
> On Sat, Jul 4, 2009 at 11:32 AM, Admix <admixm...@gmail.com> wrote:
>
> > Hello,
>
> > I have drawn a square with 4 Sprite:
>
> > 1 = x: 0, y: 200, rotation:-90, width:6, height: 201
> > 2 = x: 0, y: 0, rotation:0, width:201, heigth:6
> > 3 = x: 200, y: 0, rotation: 90, width:6, height: 201
> > 4 = x: 200, y: 200, rotation: 180, width: 201, height: 6
>
> > How can I convert the data in the 4 Cube in order to create 3D in the
> > same square?
>
> > Thanks for every answers
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com

Fabrice3D

unread,
Jul 9, 2009, 7:56:59 AM7/9/09
to away3...@googlegroups.com
do you mean without perpective? Sorry but the link is not working...

if you mean without perpective, you can set an orthographic lense to
your camera
or set the focus very high.

if you mean making a sort of a skybox:
just make a Cube, pass a six sides mapped bitmap, and pass map6:true
to constructor
there are also examples in the trunk...

I hope this is what you want, as I'm not sure I understand your
problem clearly...

Fabrice

Message has been deleted

Admix

unread,
Jul 9, 2009, 8:11:44 AM7/9/09
to away3d.dev
> do you mean without perpective? Sorry but the link is not working...

[http://img35].[imageshack].[us]/img35/6233/29053777.png

Remove all symbols '[' and ']'

Fabrice3D

unread,
Jul 9, 2009, 8:38:01 AM7/9/09
to away3...@googlegroups.com
I would use here the orthographic lense.

Fabrice

Admix

unread,
Jul 9, 2009, 9:07:39 AM7/9/09
to away3d.dev
How this can be used in Away3D?

Fabrice3D

unread,
Jul 9, 2009, 9:14:11 AM7/9/09
to away3...@googlegroups.com
camera.lense = new OrthogonalLens();

fabrice
Reply all
Reply to author
Forward
0 new messages