@aceshigh said:
@al hart said:
@aceshigh said:
How do you guys do it???? How do you set the z-distance as the color intensity???
We did it by extracting all the faces and surfaces and running them through OpenGL in a separate routine and grabbing the OpenGL z-buffer.
However, I believe you can do the same thing by turning on fog, perhaps making it a color, making everything white, rendering the image, and then processing the intensity of the images. Things that are further should be a different color or darker.
(I was considering a similar "distance from the eye" routine for making shadows which get lighter as you move into the distance (without applying fog to everything), or Sketchy Shadows which change as the object in shadow is farther and farther from the eye.)