For instance the spiky sphere - as taj says, move every vertex in the tesselated sphere out along its radius based on tan of the distance it is away from the original vertices (before tesselation).
If I use a tangent function to do the spikes, I would need to limit my parameters to like 0 to 90 or 180-270 degrees since the slope of the an angle is only positive on the 1st and 3rd quadrants. Do you mean that I interpolate my distance(since that would be my parameter to tan) so that it has a value of just 0 to 90?
EDIT: I don't even need to interpolate or limit my angles at all. All I have to do is to limit my Y - axis' values to only positive values. Yay!
On second thought, I believe y = exp(x) would never work as I would only get one spike. So taj and Jim has the right idea here. I'll try this in 2d first when I get home to the boondocks.
Frea: Thanks, though I seem to have problems visualizing it.
PO. Not really. Right now you're probably better than me. :*)
Guy's I haven't coded anything since Marvelous twilight so treat me as a noob. :*)