HoloDraw Program Documentation: drawbump

Documentation | Download | Examples | Frequently Asked Questions (FAQ)

Program Summary

Filename drawbump.pl
Author Marvin Simkin
Program Created 2005-01-10
Last Updated Jan 12 10:39
Purpose make a smooth surface rougher
syntax drawbump.pl X Y Z < smooth.draw > bumpy.draw
X roughness for X dimensions, 0=no change to input
X-roughness=1 would randomly adjust X values by
some number between +1 and -1
Y roughness for Y dimensions, 0=no change to input
Z roughness for Z dimensions, 0=no change to input
smooth.draw draw instructions for a smooth object
bumpy.draw those same instructions but with points randomly
moved to make the object look bumpier

Discussion

Sometimes a large flat polygon doesn't look that interesting or it is hard
to see which way it is facing due to lighting etc.
In combination with drawchop.pl, this can introduce some roughness to
a flat surface.

For example

echo 'polygon: 0 0 0, 10 0 0, 10 10 0, 0 10 0' |
  drawchop.pl x=1+1 y=1+1 |
  drawbump.pl 0 0 1 | drawwrl.pl > bumpy.wrl

drawchop.pl will cut the original polygon up into 100 polygons
then drawbump.pl will tinker with the intersections a little
raising or lowering the Z value from 0 to + or -1 so what
started out to be one big flat surface now has some variety.


Written by Marvin Simkin
Filename drawbump.html
Last updated April 5, 2005
Arizona State University Valid HTML 4.01!
Freedom to Choose ANY Browser