3d fps example

Post your Construct-made creations!

Post » Sun Dec 13, 2009 1:45 am

Here's an example of some more 3d in Construct. On my system I get 57-60 fps. I'm somewhat done adding to it today after two random crashes while I was trying to implement a few more features.

Download: [url:1piezvak]http://www.filedropper.com/vert3d2u[/url:1piezvak]
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Post » Sun Dec 13, 2009 2:00 am

that's just nutz O_o
I'm too lazy to go trough the math right now :P
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sun Dec 13, 2009 8:39 pm

Really awesome. The rotating prism was quite cool.
B
21
S
14
G
5
Posts: 106
Reputation: 3,416

Post » Thu Dec 31, 2009 2:24 pm

OMG!!! That's awesome!
r u a genius or yes?!
B
2
G
3
Posts: 51
Reputation: 952

Post » Fri Jan 01, 2010 12:31 pm

Pretty sweet and works steady 75fps here
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Sat Jan 02, 2010 12:53 am

If you want to measure performance, set the framerate mode from V-synced to unlimited, or the FPS you get is just the refresh rate of your monitor. That way I get about 120fps. Nice example!
Scirra Founder
B
385
S
227
G
86
Posts: 24,148
Reputation: 190,849

Post » Sat Jan 02, 2010 12:32 pm

Could anyone explain globally how this example works that created this 3D engine? Thanks :)
B
24
S
6
G
7
Posts: 669
Reputation: 5,523

Post » Sat Jan 02, 2010 11:11 pm

Take a look in the "3d engine" event sheet at the "On function newtexture" and "for each texture" events. In a nutshell each texture is grouped with four points via their unique id's, and each point is the used to set the position of the four corners of the texture.

All the collision detection is done on the "map" layer. When an object is moved on the "map" layer it's corresponding object is moved in 3d with the help of geometry and trigonometry.

All the 3d rotations are done with the following two formulas:
x = x *cos(angle) -y *sin(angle)
y = y *cos(angle) +x *sin(angle)

x and y can be changed depending on what axis you want to rotate around.
ex.
z axis:x,y
x axis:y,z
y axis:x,z
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Post » Thu Aug 02, 2012 4:56 pm

Hey Rojohound, do you still have this file? I'm really interested in looking at it.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Thu Aug 02, 2012 8:18 pm

B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest