View Full Version : Xray shader with VEX?

01-17-2003, 12:35 AM
Anyone know how to make a nice xray
type shader with VEX? Kinda like the
Fight Club opening.


01-17-2003, 06:43 AM
Something like the bottom-right corner on this page?

01-22-2003, 02:58 AM
The shader in fight club was supposed to look like a scanning electron microscope, not an x-ray.
The SEM is a very simple shader, basicly just the following:

Cf = 1-abs(dot(normalize(N),normalize(I)))

if that helps at all.

01-22-2003, 07:21 AM
Cool, didn't think it was that simple. :) So I made a VOPnet out of it. Here's how it looks like:

01-22-2003, 08:06 AM
wow! that looks really cool. I need to put an OpenGL graphics card in this piece of crap so I can get Houdini running.

01-22-2003, 09:16 AM
Wow ! ,

Can someone please post here a step by step guide to make that shader?

I am a total newbie to houdini , just installed apprentice today , that shader looks perfect! , i would love to learn the making of :beer:

thanks in advance .

01-22-2003, 09:35 AM
just compile the one line shader in my last post...

nice rendering by the way! is that an isosurface of a sphere plus a noise function?

01-22-2003, 01:59 PM
Personally, I hate compiling shaders. :)
If anyone wants, I posted my .hipnc file over on 3dbuzz in the general houdini forum. In the file, there's a surface VOP that does the one-liner. I would post the file here too except that I can't attach anything other than jpegs or gifs.

01-22-2003, 02:04 PM

No, I couldn't figure out how to do that! :) I ended up by simply generating a default cloud.i3d (VEX fluffy cloud shader) and then putting it into the isosurface. Just did some tweaking with the density to get something interesting after that. The divisions was also upped to 128x128x128 to match the resolution of the 3D texture.

I should try doing a volumetric render instead but didn't bother since it looked good enough just to test the one-liner. :)

01-22-2003, 02:53 PM
PS. The idea of how to do use the isoSurface sop this way was from the "volumetrics using Image3d" tutorial on odforce at
(specifically here:

01-23-2003, 08:16 AM
That's really great guys

CGTalk Moderation
01-14-2006, 05:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.