I have not really considered concepts of shading, lighting, etc. I have only just gotten to working with solid shapes in 3D (I use my own mechanics for this)...
To make some sorta effect, I thought maybe the color of things could change or get darker or something the further away it is in 3D space..
in Java there is a gradientPaint tool that will change the color or paint from colorOrPaintA to colorOrPaintB along the line described by pointA and pointB. So, I need to figure out where the steapest line (greates difference in z) on a polygon in 3D space is; The line must go from a point on one edge to a point on antoher (or from the corners, but that is not very likely).
Does anybody know how to find this line (make a routine that does this)?