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
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

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
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

Post » Mon Dec 12, 2011 2:54 pm

yeah lot of events i must do. Mindblow work :)delgado2011-12-12 15:14:36
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

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.

/examples%208/carousel.capx
https://www.dropbox.com/s/ijfsxk087coxv ... .capx?dl=1
Last edited by R0J0hound on Sun Jun 04, 2017 10:01 pm, edited 1 time in total.
B
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

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
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

Post » Mon Dec 12, 2011 6:20 pm

heh
Priceless
Its ok Yann, you get used to it.:P
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Next

Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi and 26 guests