+ 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?
32 Answers
+ 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
+ 15
Well, I can run WebGL codes in SL. You should try updating your Android System Webview to a version which supports WebGL.
+ 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.
+ 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.
+ 8
But in mine does not work, will be the version of my Android??
+ 8
My very own engine even works on Sololearn.
https://code.sololearn.com/WOI0E0qCmH7v/?ref=app
+ 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
+ 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
+ 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
+ 7
I'm sorry @Samuelllr, I don't know what you mean...
+ 7
Just another question... I do not speak English, and I keep translating to write here, the translations are coming out correct??
+ 7
Yes, I can understand what you're trying to say.
+ 7
@Samuelllr, thanks, looking forward for ur suggestions
+ 7
@samuelllr , me too 😄, with the doubts
+ 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
+ 6
web GL programs are working correctly on my device in sololearn 🤗
+ 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
+ 6
The code is working fine for me. But it might not work for everyone because of different operating systems and web browsers.
+ 5
test from Kirk's code!
+ 5
But as the phones of the staff can work... I'll post some WebGL here 😉 thanks Kirk Schafer and Rishabh