3D?

Discussion and feedback on Construct 2

Post » Thu Jul 28, 2011 3:35 pm

On a Utube demo I saw a while ago, there were some 3D boxes whizzing about. It was probably a Classic program. Is there now or will there be 3D for HTML5?

Dicon
B
8
S
3
G
5
Posts: 4
Reputation: 2,833

Post » Thu Jul 28, 2011 4:10 pm

Yeah that was on Construct Classic. 3D on browsers right now is a mess. There's WebGL but it's support is pretty limited. Only Chrome and Firefox support it decently. IE won't support it, it appears they will do 3D with Silverlight 5 using XNA as expected. For Apple platform it seems there will be no full support of WebGL anytime soon. The best chance to accomplish multi platform browser 3D would be Flash Molehill, but that's another story. So we'll have to do with normal canvas for HTML5 for some time.Kiyoshi2011-07-28 16:14:42
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Fri Jul 29, 2011 8:48 am

I thought it might be a bit "iffy".
Thanks.

Dicon
B
8
S
3
G
5
Posts: 4
Reputation: 2,833

Post » Fri Jul 29, 2011 8:51 am

yeah, but if someone didn't mind the math, it might be possible to make a plugin

http://www.kevs3d.co.uk/dev/canvask3d/k3d_test.html

EDIT: just noticed you can download the source code at the link at the bottom of that pagelucid2011-07-29 08:53:05
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jul 29, 2011 9:40 am

A plugin could be made indeed, but the problem is WebGL represents a possible security hole. Indeed, as browsers get access to low level routines on the client's graphic card to render 3D, it gives possibility for hackers to read GC's memory (take screenshots of what is displayed on your screen if you will).

Historicly, Graphic Cards drivers didn't need to care about security measure in the past. With WebGL, there will be a need for new design of thess drivers.

As a result, Microsoft has no plan to support WebGL and will focus on silverlight as far as 3D is concerned (even if I guess they will have to deal with the the same security constraints as WebGL). Moreover, "experts" advise for now to disable webgl support in chrome and firefox until the implementation is secured (once again, like websocket).

So working on a 3D plugin for C2 now could be quite a loss of time and energy. It might be safer to wait for a proper support by the browsers, and then getting hands and heads around such a plugin.
Again, such a plugin wouldn't be supported on IE (and possibly safari in the long term).

Sources: Researchers Warn of Security Issues in WebGL Standard

Microsoft Rejects WebGL for Security Reasons
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Jul 29, 2011 5:47 pm

I heard that was mostly FUD from microsoft, probably to use as an excuse to not support webGL. Read this: http://my.opera.com/haavard/blog/2011/06/22/microsoft

A few choice quotes:

"Microsoft's criticism would sound a little less hollow if they weren't doing the exact same thing with Silverlight that they are criticizing WebGL over. And lo and behold, a Denial of Service vulnerability in Silverlight 5 of the same type that Microsoft was overly concerned about with WebGL recently surfaced."

"Even people at Microsoft do not buy it."

I also recall hearing a bunch of the security issues have already been resolved.

Regardless, do those demos in Lucid's link actually use webGL or are they purely HTML5 canvas?Arima2011-07-29 17:48:19
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Fri Jul 29, 2011 6:12 pm

Pure html5 and javascript(on the demo link above)
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jul 29, 2011 6:37 pm

Well a plug would give C2 a leg up if it didn't rely on webgl.
The question is how slow would it be?
Lucid's link actually ran pretty good on my FF3.6.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Jul 29, 2011 7:06 pm

Well, the k3d render library lucid posted about seems the good way to start. It's indeed not relying on webGL, and it renders pretty nicely in my FF5.

I don't know, though, if the library can run alongside jquery, and how that would affect C2's exported projects.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sat Jul 30, 2011 7:46 pm

I do think everything Microsoft has said about WebGL is rubbish. Other browser makers have secure implementations of WebGL. For example, they clear all surfaces that are created to transparent black, which prevents the "take a screenshot of your apps" security issue. Honestly, they just don't want to implement it because it would help promote OpenGL, which is a competitor to DirectX.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests