[osg-users] View volume image on web

Émeric MASCHINO emeric.maschino at gmail.com
Thu May 21 01:52:26 PDT 2015

Hi Clement,

If by volume, you mean voxels, then you're out of luck, as OpenGL ES,
which WebGL relies upon, lacks of 3D texture support [1]. This is
something WebGL 2.0 is supposed to solve. In the meantime, there seems
to be a trick involving GLSL [2] but I didn't look deep into the

BTW, how did you use WebGL with OSG? I know of OSG.JS [3], a
JavaScript reimplementation of OSG API aiming to develop WebGL
applications, but that's a totally different project.

[1] https://www.khronos.org/message_boards/showthread.php/7225-3D-textures-in-WebGL
[2] http://gamedev.stackexchange.com/questions/34110/how-can-i-implement-3d-textures-using-webgl
[3] http://osgjs.org


2015-05-21 4:30 GMT+02:00  <Clement.Chu at csiro.au>:
> Hi,
>    I saved my volume image data as dds format by using osgDB::writeImage method.  Does anyone know any method to be able to show dds image on webpage?  I tried webgl and it does not work.  I am not sure whether webgl supports volume rendering or not.  Thanks.
> Regards,
> Clement
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list