[Plugin] Three.js 3D canvas

Post your work in progress addons and get feedback

Post » Sun May 18, 2014 10:34 pm

@Schoening
Second one is working fine. First one is still being weird. I originally didn't see anything, now I see the buttons, but I don't see the box until I hit unpause and then it just shows a frozen cube which advances a frame every time I click.
B
55
S
12
G
7
Posts: 184
Reputation: 7,125

Post » Mon May 19, 2014 7:41 am

@Yarfapet press CTRL + SHIFT + i and copy paste what it says in the console.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 7:47 am

It works pretty good for me, even on my shitty pc at work... ;D

See my cube armada:

Image


Some texture loading problems (wireframe cubes) and it seems they are all created at less than 0,0 instead of the coordinates you specified in the events...
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Mon May 19, 2014 8:04 am

@Ize the wireframe is intentional. Yes. There is a issue with the offset. That is because Three.js [0,0] is in the center of the <canvas> and Construct2 [0,0] is at the top-left corner. And the FOV and Z position has to be calculated in 3D. All this makes the perfect position a little troublesome.

Edit: Oh yeah and Construct2 UP is DOWN in Three.js :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 1:11 pm

Both examples working fine here :) Just looked for a nice JS 3D Engine as the copperlicht engine is not my cup of tea and came across three.js. Thought that it should be nice to have a C2 plugin with it... and here it is :)

Keep up your great work :)
B
44
S
10
G
8
Posts: 437
Reputation: 6,473

Post » Mon May 19, 2014 1:17 pm

Thanks @Ubivis. I think that @QuaziGNRLnose is also working on one: https://www.scirra.com/forum/drawing-content-from-another-canvas-onto-c2canvas_t100901 It's a different approach. Perhaps there will be some collaboration later on :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 4:38 pm

@Shoening

On Chrome (Not showing until pause is hit, only updates once)
Code: Select all
Document was loaded from Application Cache with manifest https://dl.dropboxusercontent.com/u/53738503/construct2/pluginpreview14-05/offline.appcache index.html:1
Application Cache Checking event index.html:1
THREE.WebGLRenderer 67 three.js:20806
THREE.WebGLRenderer: S3TC compressed textures not supported. three.js:26936
Application Cache NoUpdate event index.html:1
unpause c2runtime.js:13576
false c2runtime.js:13554
unpause c2runtime.js:13576
false c2runtime.js:13554
unpause c2runtime.js:13576
false c2runtime.js:13554
resize


On Canary
Code: Select all
Document was loaded from Application Cache with manifest https://dl.dropboxusercontent.com/u/53738503/construct2/pluginpreview14-05/offline.appcache index.html:1
Application Cache Checking event index.html:1
Application Cache NoUpdate event index.html:1
THREE.WebGLRenderer 67 three.js:20806
132
false c2runtime.js:13554
false c2runtime.js:13554
resize c2runtime.js:13521
821
false


On Firefox
Console was quickly flooded with
Code: Select all
Request for full-screen was denied because Element.mozRequestFullScreen() was not called from inside a short running user-generated event handler. c2runtime.js:12895
false
B
55
S
12
G
7
Posts: 184
Reputation: 7,125

Post » Mon May 19, 2014 5:04 pm

@Yarfapet Nothing there that indicates anything tbh. Try to clear your cache. Otherwise I guess you could try re-install the browser. But I would wait for future Plugin updates as I am making big changes anyways.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Tue May 20, 2014 4:40 am

@Schoening I went ahead and reinstalled my browser after noticing even my own project weren't displaying correctly (Specifically, WebGl effects weren't working at all), and both example are now working perfectly. Thanks for the support though.
B
55
S
12
G
7
Posts: 184
Reputation: 7,125

Post » Tue May 20, 2014 7:44 am

NP @Yarfapet
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests