|
![](/i/fill.gif) |
> "Dave Blandston"<nomail@nomail> wrote:
>
>> Currently I'm working on a CSG model of an Mk 2 hand grenade. So far the top
>> part is finished except for the spoon. I'm having a hard time figuring out how
>> to construct the actual body of the grenade, though. Does anybody have any
>> suggestions?
>
> Would a triangle-mesh object made with POV's HF_Sphere macro qualify as 'SDL'?
>
> Here's a basic idea, some code I came up with (and an image.) It's one way to do
> it; there are probably others. Just add a camera and some lights. The code's not
> perfect by any means, but it does create that 'pineapple' look. BTW, I could
> have used 'pattern' rather than 'pigment' to generate the functions (to do away
> with the .gray step)--but the two functions need to be combined anyway, before
> being used in the macro. (It accepts only one.)
>
You can use .x .y .z .red .green or .blue without any problem in this
case. You can do that because your pigment is black and white.
Using a single channel is faster, you only fetch that channel instread
of geting all 3 channels and doing a ponderated average.
Alain
Post a reply to this message
|
![](/i/fill.gif) |