Re:Show HN: A conformant WebGL implementation for Node.js
by antihero on Thursday May 26, 2016 @08:06AM
(#11777266)
Does this mean we can basically render any WebGL code server side and effectively stream the output?
[ Parent
| on HN ]
Re:Show HN: A conformant WebGL implementation for Node.js
by 33a on Thursday May 26, 2016 @12:02PM
(#11779021)
You could, but it would be slow, or at least pretty heavy per client. That said if you have a beefy enough server I suppose it might work.
Re:Show HN: A conformant WebGL implementation for Node.js
by nomel on Thursday May 26, 2016 @04:19PM
(#11781180)
I don't really understand what's going on here.
Is there a practical use for this? When would rendering, server side, ever be beneficial (assuming that's what's going on here)?
Re:Show HN: A conformant WebGL implementation for Node.js
by 33a on Thursday May 26, 2016 @04:27PM
(#11781263)
Lots of places. For example:
* You want to generate preview images of WebGL content, such as in a gallery
* You are using WebGL to accelerate some computation in nodejs with a library like https://github.com/waylonflinn/weblas
* You want to test your WebGL code using continuous integration
etc.
Re:Show HN: A conformant WebGL implementation for Node.js
by jpambrun on Thursday May 26, 2016 @05:49PM
(#11781966)
I know that some medical image viewers use server side rendering for segmented volumes. Such tasks are computationally intensive and usually involves very large datasets. With server side rendering, you can easily and efficiently stream videos or even JPEGs to thin clients such as mobile devices.
Re:Show HN: A conformant WebGL implementation for Node.js
by jpambrun on Thursday May 26, 2016 @08:28AM
(#11777366)
And, if so, is it hardware accelerated or a software implementation?
Edit: And, how many concurrent context could it support?
Re:Show HN: A conformant WebGL implementation for Node.js
by roblabla on Thursday May 26, 2016 @08:42AM
(#11777443)
It looks like it uses whatever native implementation of EGL there is behindt he scenes. So it should be hardware accelerated if there is a GPU on your server.
As for whether you can stream the output, looks like you can with `gl.readPixels`, but you'll probably want to compress it somehow. Sending a raw video stream is heavy.