|
|
hi there,
I'm trying to create a texture to be applied to a long, thin box. The
texture needs to consist of alternating black and yellow/orange stripes.
Perhaps a piece of ASCII art would help.
|__ __|
| \_/ |
|__ __|
| \_/ |
|__ __|
| \_/ |
|__ __|
| \_/ |
| |
O Y O
The lines represent the stripes. The area in between them is black. The
stripes should be yellow in the centre and orange towards the edges.
I can create straight horizontal stripes using a combination of a scaled
checker overlaid with a gradient / color_map combination to produce the
orange/yellow tinges - that's straightforward enough. What I cannot figure
out is a way to warp the stripes in the centre so that they have that
"grooved" effect.
I could do it by creating intersections with CSG objects passing through the
box and texturing the intersected areas differently, but this seems like a
pretty horrible, inelegant solution, as I need perhaps 50 or 100 stripes. I
could also of course use a GIF or something, but really I would much rather
try to keep things within the scene files and not use anything external.
I'm reasonably new to POV-Ray, so there may be an obvious answer.
Thanks,
DJG
Post a reply to this message
|
|
|
|
> I could do it by creating intersections with CSG objects passing through
the
> box and texturing the intersected areas differently, but this seems like a
> pretty horrible, inelegant solution, as I need perhaps 50 or 100 stripes.
If you make a CSG object which represents the shape of the orange stripes,
you can then use the object pattern with a repeat warp to turn it into a
pigment, which you can then use in a pigment_pattern.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
|
|
> If you make a CSG object which represents the shape of the orange stripes,
> you can then use the object pattern with a repeat warp to turn it into a
> pigment, which you can then use in a pigment_pattern.
aha - that looks promising - I'd not come across object patterns before.
thanks.
Post a reply to this message
|
|