l******a 发帖数: 3803 | 1 Just got started with OpenGL, so a rookie question.
I try to create a 3D volume (medical: patient's brain scans),
using glTexImage3D. then how can I change the trasparency
or opacity of the volume to generate a see-through view?
Thanks a bunch! | N*********y 发帖数: 105 | | L*******g 发帖数: 913 | 3 没用过glTexImage3D,我以前试过透视,但是经常控制不好,你可以加下面两行到你的
init()里面,然后在颜色里定义alpha值。具体参见红宝书。
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
|