Jeremy:
I will share the technique with an image that shows how
it is done. I think that this will be better than my messy code.
First, I made a cob out of a cone with a sphere at each end.
The cob tapers slightly. I played around a lot with how much
it tapers, etc.
Then, I went row by row, using the trace() function to find the
surface vector. I put a kernel on the surface of the cob,
using SRand() to introduce variations in the size and placement.
I also adjusted the size of the kernel so that they are bigger
at the widest areas of the cob and smaller where the cob
grows smaller in radius. I made a "palette" using an array of rgb vectors
and then used RRand() to randomly select colors from the palette for each
kernel.
And that is pretty much it. :)
Post a reply to this message
Attachments:
Download 'halloween.jpg' (19 KB)
Preview of image 'halloween.jpg'
|