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
100
S
23
G
38
Posts: 1,872
Reputation: 30,610

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
62
S
22
G
14
Posts: 1,481
Reputation: 16,405

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
100
S
23
G
38
Posts: 1,872
Reputation: 30,610

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
62
S
22
G
14
Posts: 1,481
Reputation: 16,405

Post » Mon Dec 12, 2011 2:54 pm

yeah lot of events i must do. Mindblow work :)delgado2011-12-12 15:14:36
B
100
S
23
G
38
Posts: 1,872
Reputation: 30,610

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
62
S
22
G
14
Posts: 1,481
Reputation: 16,405

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
85
S
27
G
77
Posts: 5,000
Reputation: 53,734

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
126
S
29
G
72
Posts: 5,027
Reputation: 51,364

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
62
S
22
G
14
Posts: 1,481
Reputation: 16,405

Post » Mon Dec 12, 2011 6:20 pm

heh
Priceless
Its ok Yann, you get used to it.:P
Image Image
B
164
S
49
G
123
Posts: 7,776
Reputation: 84,006

Next

Return to How do I....?

Who is online

Users browsing this forum: kevinyeoh5385, MPPlantOfficial and 8 guests