I’m posting a cleaned up version of my volumetric rendering/raycasting code seen here: http://forum.openframeworks.cc/t/fun-with-volumetrics-and-time/4534/1
I dont know why the vimeo links arent working in that post, even if I try to edit it and reinsert them, so I’ll post one here:
And here is the output from this example code:
I’ve made this code clearer and simpler for this example. It generates a volume using the noise function then uploads it to the GFX card and renders the volume. You can also toggle animation on and off which basically overwrites the texture one slice at a time. This is usefull to test the glTexSubImage3d() function which can upload partial data into a 3d texture.
The shader itself I’ve adapted from peter trier’s example: http://www.daimi.au.dk/~trier/?page-id=98
but I’ve added some tweaks for performance and usability like the quality and density variables. I don’t have any support for dynamic lighting or shadows on the volume yet.
here’s the project designed for 0062 on ubuntu 10.10 : http://timothyscaffidi.com/files/VolumetricsExample.tar.gz
If you get this to run please let me know what your computer’s specs are and what framerates you get.
I’m running this on an atom 330 with ION graphics (similar to 9400m) and I get 30-50 without animation and 20-30 with animation
I am particularly interested to see if anyone can get this running on the new intel HD graphics 3000 thats integrated into sandy bridge chips, like the ones that the new macbook pro 13" is using.