Generating a heightmap 2004-02-26 - By Neto
Back > I also tried taking a snapshot of the scene from above having > recoloured everything to white with a fog, and checking the height based > on pixel brightness - but fell down when I couldn't think of a way to > scale the image down by a 12th and still retain the brightest colour in > each pixel.
Maybe you could try rebuilding all models into #mesh primitives and change their vertex colors based on their Z value relative to the camera. Better yet, you could compare all the vertices' Z values to the camera, and define a mazimum and a minimum values, and thus maximize your color range usage.
Then scale the camera to the size you need, and take a snapshot.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|