Advertisement

How to do Volumetric Rendering?

Started by February 24, 2001 12:25 PM
1 comment, last by Fresh 23 years, 11 months ago
Hi, I put this post in the graphics forum, but a lot more people seem to read this forum, so I put it here to . Apologies if you''ve already read it. Imagine I have an array of probabilities; p_array[x][y][z]. I want to be able to visualise that somehow - I have already done some pretty good stuff like making using the probability distribution to create a volume filled with particles in varying densities, and transects of that. Then I did an anaglyph view of those particles. What I need (or rather, would like), is to figure out how to do volumetric rendering, where a smooth image is produced. There is a caveat - I also need to be able to rotate this image around it''s origin (preferably in realtime). So, do I rotate the entire probability array? Or do I use some kind of 3d brensenhams to traverse the original array, and find out which volume areas lie along the new ray of light? What happens when I add perspective to this (which I will, and then subsequently anaglyphs)? Also, how are probabilities (which I will assume are opacities) weighted as they are further away from the camera? Is it a linear scale? Or 1/distance? I''ve tried looking on the ''net for resources as the how to go about this, but I found nothing. If you want to see a demo of what I''ve already done, try http://www.razors.org/tee.zip. Note: This isn''t a game, but a commercial project, so no fancy high tech wizzy stuff . It''s also heavily WIP, but any comments on serious flaws in the UI or otherwise would be appreciated. To see the 3D prob''ty distributions, choose a state using the listbox on the left, the atom width will resize accordingly. You can fiddle with the settings, then click Go. There is copious tooltips in most areas; just hover the mouse over a control and a tip will appear on the bottom of the screen. But I''m really interested in this volumetric stuff. Other possibilities for visualisation are heightmaps of the transects, but that''s really not very informative. For the scientists out there, this is plotting electron probability density distributions for various excited states of a hydrogen atom. Thank god we have a phd from oxford on the team . r. "The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."
I only took intro level chemistry, and I could probably do that plotting... It really doesn''t require a PHD. Using only a hydrogen atom, you don''t even have to solve the partial differential equations... They''ve already been solved and well documented. They''re just the spherical harmonic functions, if I recall correctly.

But that doesn''t help answer your question in any way, does it? Volumetric rendering isn''t my strong point.
Advertisement
Check it out; you''ll see exactly what I mean. This program produces pictures with the corresponding transects very few people in the world have even seen. You wont find these pictures in 99% of the textbooks you could care to mention. But anyhow, does anybody know anything about this volumetric stuff then?

r.

"The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."

This topic is closed to new replies.

Advertisement