News for hackers. Stuff that matters.
Re:Volume Rendering with WebGL by Impossible on Monday January 21, 2019 @08:36PM (#18965262)
This GPU Gems article is a good overview of GPU volume rendering as well (http://developer.download.nvidia.com/books/HTML/gpugems/gpug...). Raymarching in the fragment shader is probably better on modern hardware than the approach outlined in GPU Gems but it's still worth a read.
Re:Volume Rendering with WebGL by vecplane on Monday January 21, 2019 @08:49PM (#18965330)
Hey this is super interesting to see, thanks for sharing!

That aneurysm model looks really cool with this technique - https://www.willusher.io/webgl-volume-raycaster/#Aneurysm

Re:Volume Rendering with WebGL by malkia on Monday January 21, 2019 @10:25PM (#18965773)
Don't zoom into the Boston Teapot!
Re:Volume Rendering with WebGL by marcusjt on Tuesday January 22, 2019 @01:18PM (#18970698)
Ha! I just stumbled upon that myself then came back here to comment and spotted yours!
Re:Volume Rendering with WebGL by habi on Tuesday January 22, 2019 @04:03AM (#18967018)
This can also be done in a Jupyter notebook, I'm using this for scientific visualization of 'stuff': https://github.com/maartenbreddels/ipyvolume
Re:Volume Rendering with WebGL by obl on Monday January 21, 2019 @06:40PM (#18964697)
You should probably use mipmaps to avoid aliasing when rendering from far away.

I guess you'll have to compute the LOD by hand since neighbor fragments are not necessarily performing the same texture fetches.

Re:Volume Rendering with WebGL by berkut on Monday January 21, 2019 @06:50PM (#18964754)
That works fine as long as there's no physically-based emission (say based off temperature or heat blackbody). Averaging (filtering) temperature values will give you slightly incorrect results at the edges. For WebGL stuff, that's probably not a problem, but it shows up in production offline rendering and needs to be dealt with differently.
Re:Volume Rendering with WebGL by aboutruby on Tuesday January 22, 2019 @06:46AM (#18967604)
The foot example with Samsel Linear YGB is simply amazing!