First Time 3D + Collision Detection!

Chat about anything not covered in these forums, but keep it civil!

Post » Wed Jul 31, 2013 8:48 pm

Great , it looks totally 3D for me, Good one.
B
94
S
19
G
15
Posts: 198
Reputation: 14,421

Post » Fri Aug 02, 2013 10:35 am

[QUOTE=thehorseman007] Great , it looks totally 3D for me, Good one.[/QUOTE]
That's coz it is 3D :p
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Fri Aug 02, 2013 10:56 am

[QUOTE=jayderyu] oh yes. I was thinking of implementing a 3d engine to use. Not for full 3d, but to use a s buildings from a top down view. A few other environmental objects. heck even rotating. but if your on top of it. You rock :)

Are you using a 3d engine or is this custom 3d code?[/QUOTE]

I am using a 3D Library called THREE JS. So that I do not have to deal with WEBGL code.
And then all that happens on the screen is by me. Check the Source Code.

There are big limitations to 3D in WebGL.
JavaScript is running via JIT complilers and this is far slower then Complied code. And I guess being such a "Advanced" language does not help either :)
And Webgl does not use Geometry Instancing (at least not to my knowledge).

So limit your units! And Polygons!

I am actually still baffled how Construct 2 gets such a high framerate..
I made stress test with the THREE JS Library and I end up with roughly 2000 Planes (or Cubes). And the WebGL demo:
http://www.scirra.com/labs/perftest-webgl/

Gets me around 4000!

Hm...
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon Feb 10, 2014 2:28 am

@Schoening this looks very cool! Do you have a capx that you can share?
B
19
S
6
G
2
Posts: 57
Reputation: 2,524

Post » Mon Feb 10, 2014 10:40 pm

[QUOTE=funkyos] @Schoening this looks very cool! Do you have a capx that you can share?[/QUOTE]

Hey man. I used THREEJS.
So there is no CAPX.
Only the code in there :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Tue Feb 11, 2014 2:15 am

Ahhh I misinterpreted :S I thought you managed to use Three.js within C2.
B
19
S
6
G
2
Posts: 57
Reputation: 2,524

Previous

Return to Open Topic

Who is online

Users browsing this forum: No registered users and 0 guests