Labels

August 8, 2011

volume ray casting in BGE

Hey, I got volumetric ray casting to work in Blender Game Engine. The shader is fully done in GLSL, including front&back face calculation in single pass and 2D texture conversion to texture3D, so it should be reeaally easy to implement in every OpenGL supporting engine.

The blend. file is here:
DOWNLOAD

volume texture:
DOWNLOAD

glsl fragment shader: (might crash on ATI/AMD gpu`s. debugging in progress..)
DOWNLOAD

screenshots taken in BGE (click on the thumbnails to see them full-sized) :



different opacity values



simple sample dithering


2 comments:

  1. link on first image is failing, should be..... http://1.bp.blogspot.com/-Ak2yRmLKVqg/TkAJKfpxqkI/AAAAAAAAAQA/qsrV9-DmylY/s1600/raycastingBGE.jpg ... i think...

    ReplyDelete