FAQ Database Discussion Community


Volume rendering is more transparent from one direction that another

three.js,glsl,webgl,volume-rendering,raymarching
I'm trying to get my head around volume rendering using three.js and ray marching GLSL. I've got some data I synthesised from a numpy array. The cube of data being rendered is more opaque on one side, graduating to being transparent on the other side - like this (ignore the...

Load non power of two image stack into 3d texture OpenGL C++

c++,opengl,volume-rendering
i have tried to load stack of .png image files into glTexImage3D for volume rendering purpose. However, i just cant make it work as it keeps crashing. BTW, the problem seems to be related with pData. Below is the code for your reference: GLubyte * pData = new GLubyte[XDIM*YDIM*ZDIM]; ifstream...