+ 6

Someone can or could run WebGL in Sololearn

In my app Sololearn I can not run WebGL, but I looked at some experiments of some people from Sololearn and saw that had comments from people commenting on the beauty of what the code generated the WebGL, ie they saw the graphics WebGL, I went to try to see and did not give , is that normal or not?. Can you visualize WebGL on your gadgets?

1st Jan 2018, 7:51 PM
SℋamKY✧
SℋamKY✧ - avatar
32 ответов
+ 11
Scroll down to "3D and VR" (menu: top left) to see if your device's webview (tied to Android version) supports it but perhaps is being initialized wrong. https://code.sololearn.com/WeBKGPjY0UHK/?ref=app
1st Jan 2018, 8:16 PM
Kirk Schafer
Kirk Schafer - avatar
+ 15
Well, I can run WebGL codes in SL. You should try updating your Android System Webview to a version which supports WebGL.
4th Jan 2018, 3:03 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 12
You can try canvas.getContext("experimental-webgl") to see if your device is at the threshold. This is the same idea as manufacturer prefixes people use in their CSS codes, for almost-ready testing features.
1st Jan 2018, 8:27 PM
Kirk Schafer
Kirk Schafer - avatar
+ 10
Chromium webview is version-locked to Android release. This is done because newer Androids / CPU+GPUs have additional features; attempting to use them on older devices just crashes. If WebGL works in Chrome / Firefox, it's a bit more likely to be webview and not some GPU issue.
1st Jan 2018, 8:23 PM
Kirk Schafer
Kirk Schafer - avatar
+ 8
But in mine does not work, will be the version of my Android??
1st Jan 2018, 8:17 PM
SℋamKY✧
SℋamKY✧ - avatar
+ 8
My very own engine even works on Sololearn. https://code.sololearn.com/WOI0E0qCmH7v/?ref=app
1st Jan 2018, 10:24 PM
The Coding Sloth
The Coding Sloth - avatar
+ 8
I am trying to learn to use webgl, through few online sources, I was going through GLSL language for GPU, but it was not clear, I m not getting relevant resources for GLSL for webgl, but only getting for openGL , Please share a good link for learning GLSL for latest webGL
4th Jan 2018, 7:47 AM
Morpheus
Morpheus - avatar
+ 8
I used this website, it's very clear and works great. And if I'm correct the shaders (GLSL) are the same as in OpenGL, but I'm not sure. http://learningwebgl.com/blog/?page_id=1217
4th Jan 2018, 9:34 AM
The Coding Sloth
The Coding Sloth - avatar
+ 8
@The coding sloth, thx for the link , it ll be very helpful , i found nehe.gamedev.net too, from there, which is also more elaborate on using GLSL, @Samuellr, thx for suggesting three.js and P5.js, they are the best libraries Available to help get started faster in using webGL , but I am in a dilemma right now, I want to know the basics of webGL or it's super set openGL ES( embedded systems), cause I am seeing a lot of potential in it after learning , to create cool 3d UI s for my project. Some people said webGL is not the best , coz if it would have been perfect than, you d have getContext('3d') , instead of webgl, it lacks many features while working with GPU, with device and version support I am hearing that web assembly is the future, or better get grasp on direct3d HLSL, 😒I guess best way would be to, start with with webGL , three p5 for now , then will get better judgement in future
4th Jan 2018, 11:23 AM
Morpheus
Morpheus - avatar
+ 7
I'm sorry @Samuelllr, I don't know what you mean...
1st Jan 2018, 11:26 PM
The Coding Sloth
The Coding Sloth - avatar
+ 7
Just another question... I do not speak English, and I keep translating to write here, the translations are coming out correct??
4th Jan 2018, 10:34 AM
SℋamKY✧
SℋamKY✧ - avatar
+ 7
Yes, I can understand what you're trying to say.
4th Jan 2018, 10:39 AM
The Coding Sloth
The Coding Sloth - avatar
+ 7
@Samuelllr, thanks, looking forward for ur suggestions
4th Jan 2018, 11:34 AM
Morpheus
Morpheus - avatar
+ 7
@samuelllr , me too 😄, with the doubts
4th Jan 2018, 11:37 AM
Morpheus
Morpheus - avatar
+ 7
...also: I evaluated a few solutions and liked how 'regl' split the difference between complexity and 'helping too much': http://regl.party/ "A new functional abstraction for webgl" It should work in the browser. The second link, below, was a popular code using regl: https://code.sololearn.com/Wcw9kppQxRid/?ref=app https://code.sololearn.com/W2bfb7TpGJkk/?ref=app
4th Jan 2018, 2:59 PM
Kirk Schafer
Kirk Schafer - avatar
+ 6
web GL programs are working correctly on my device in sololearn 🤗
1st Jan 2018, 8:13 PM
Rishabh
Rishabh - avatar
+ 6
I looked in the code of Kirk Schafer and saw that WebGL 2 does not catch, is that it? Maybe EI is using WebGL 2.0
1st Jan 2018, 8:22 PM
SℋamKY✧
SℋamKY✧ - avatar
+ 6
The code is working fine for me. But it might not work for everyone because of different operating systems and web browsers.
1st Jan 2018, 11:33 PM
The Coding Sloth
The Coding Sloth - avatar
+ 5
test from Kirk's code!
1st Jan 2018, 8:18 PM
Rishabh
Rishabh - avatar
+ 5
But as the phones of the staff can work... I'll post some WebGL here 😉 thanks Kirk Schafer and Rishabh
1st Jan 2018, 8:31 PM
SℋamKY✧
SℋamKY✧ - avatar