Drawing 3D in the Editor?

For developers using the Construct 2 Javascript SDK

Post » Mon May 12, 2014 4:48 pm

Since I am working on a 3D plugin + 3D model importer I was wondering if it is possible to render the 3D models inside the Editor? It uses V8 but does it support the <canvas> element? This is not really necessary for the plugin. But it would make things look a lot nicer if I could show my 3D models inside the editor rather than just colored squares.

The models I import are in the JSON format. So I suppose if I went out of my way I could write something that at least would draw the wiremap. But if there is support for the <canvas> tag I could skip all this and just use the 3D rendering library inside the engine.
B
40
S
11
G
4
Posts: 665
Reputation: 8,443

Post » Mon May 12, 2014 8:45 pm

In the editor you don't have access to any html5 stuff, only what's listed here:
https://www.scirra.com/manual/21/the-edit-time
You can draw colored and textured quads with that so you possibly could do more than just wireframe. The rendering engine in the editor is just 2d though.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Tue May 13, 2014 8:41 am

Cheers mate
B
40
S
11
G
4
Posts: 665
Reputation: 8,443


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest