3d carousel

Get help using Construct 2

Post » Mon Dec 12, 2011 10:20 am

How do i that effect, check this out: www.flashxml.net/3d-carousel-menu.html

B
103
S
25
G
42
Posts: 1,877
Reputation: 32,897

Post » Mon Dec 12, 2011 12:18 pm

With a neat projection matrix I guess.

http://en.wikipedia.org/wiki/3D_projection
Don't be scared :DYann2011-12-12 12:20:01
B
64
S
22
G
14
Posts: 1,482
Reputation: 16,457

Post » Mon Dec 12, 2011 12:35 pm

ekhem ee... good start :D But i want only carousel without options like angle, speed, location itp
Carousel like a menu in game :)
B
103
S
25
G
42
Posts: 1,877
Reputation: 32,897

Post » Mon Dec 12, 2011 1:26 pm

You can easily put some instance variable in a sprite for the 2D position (=where are the element in the circle). And in that matter, options like angle, speed, etc are the easiest part.

The problem is, even if you know where each element is, you will have to project their position to know where to display them in screen space. And what will be their size.

The screen X,Y position and size are values that depends on the position of the viewer (camera) and the Field Of View (how much things shrink with distance).

That's more or less 3D projection for you.Yann2011-12-12 13:26:48
B
64
S
22
G
14
Posts: 1,482
Reputation: 16,457

Post » Mon Dec 12, 2011 2:54 pm

yeah lot of events i must do. Mindblow work :)delgado2011-12-12 15:14:36
B
103
S
25
G
42
Posts: 1,877
Reputation: 32,897

Post » Mon Dec 12, 2011 4:14 pm

Well if one day I am in a good mood, nothing to do, and a matrix urge, I might try writting a lil plugin for vector/matrix operation with dot/cross product and some easy projection algo... But don't count on it, I'm still a beginner in matrix math and I don't have that much time (: (unless I get fired writting on forum instead of working /o\)Yann2011-12-12 16:14:37
B
64
S
22
G
14
Posts: 1,482
Reputation: 16,457

Post » Mon Dec 12, 2011 5:59 pm

You don't have to use matrices, just some trig will work. The hardest bit is probably the depth sorting.

http://dl.dropbox.com/u/5426011/examples%208/carousel.capx
B
88
S
30
G
89
Posts: 5,113
Reputation: 60,337

Post » Mon Dec 12, 2011 6:11 pm

Very nice, R0J0hound :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
75
Posts: 5,147
Reputation: 53,199

Post » Mon Dec 12, 2011 6:11 pm

oh yeah you pwnd me =D (and I didn't even open the capx I know it)


opened
haha Yawn :DYann2011-12-12 18:21:57
B
64
S
22
G
14
Posts: 1,482
Reputation: 16,457

Post » Mon Dec 12, 2011 6:20 pm

heh
Priceless
Its ok Yann, you get used to it.:P
Image ImageImage
B
165
S
49
G
147
Posts: 8,048
Reputation: 96,588

Next

Return to How do I....?

Who is online

Users browsing this forum: marcoscodas and 12 guests