|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I want to make a plane of one unit checkers each of which is made up of
1 / 12 scale checkers .
How do I do that ?
Got lots to learn . Amazing program .
Bob A
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bob Armstrong" <bob### [at] cosycom> wrote:
> I want to make a plane of one unit checkers each of which is made up of
> 1 / 12 scale checkers .
>
> How do I do that ?
plane {
y, 0
pigment {
checker
pigment { checker rgb 1 rgb 0 scale 1/12 }
pigment { checker rgb <1,0,0> rgb <0,0,1> scale 1/6 }
}
}
--
jussi
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Bob Armstrong who wrote:
> I want to make a plane of one unit checkers each of which is made up of
> 1 / 12 scale checkers .
>
>How do I do that ?
>
>Got lots to learn . Amazing program .
With plain coloured pigments:
#include "functions.inc"
pigment {
function {0.5*f_checker(x,y,z)+0.25*f_checker(x*12,y*12,z*12)}
colour_map {
[0 rgb 0]
[0.25 rgb x]
[0.5 rgb y]
[0.75 rgb z]
}
}
With complete textures
#include "functions.inc"
texture {
function {0.5*f_checker(x,y,z)+0.25*f_checker(x*12,y*12,z*12)}
texture_map {
[0 T_Stone1]
[0.25 T_Stone10]
[0.5 T_Stone2]
[0.75 T_Stone6]
}
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks ,
I thought I tried something like that , I must have had some
minor error . Don't know what I got wrong .
Thanks again .
"jute" <nomail@nomail> wrote:
> plane {
> y, 0
> pigment {
> checker
> pigment { checker rgb 1 rgb 0 scale 1/12 }
> pigment { checker rgb <1,0,0> rgb <0,0,1> scale 1/6 }
> }
> }
>
> --
> jussi
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Playing with variations on this form , I guess there are
issues of syntax and allowed elisions that I don't understand
yet . When
plane { z , 5
pigment { checker
< .6 , 1 , .6 > ,
< 1 , .6 , 1 > }
}
works , I don't see why
plane { z , 5
pigment { checker
pigment { checker rgb 1 rgb 0 scale 1/12 } ,
< 1 , .6 , 1 > }
}
doesn't . I would naively expect a principle of substitution .
--
"Bob Armstrong" <bob### [at] cosycom> wrote:
> Thanks ,
> I thought I tried something like that , I must have had some
> minor error . Don't know what I got wrong .
> Thanks again .
>
> "jute" <nomail@nomail> wrote:
> > plane {
> > y, 0
> > pigment {
> > checker
> > pigment { checker rgb 1 rgb 0 scale 1/12 }
> > pigment { checker rgb <1,0,0> rgb <0,0,1> scale 1/6 }
> > }
> > }
> >
> > --
> > jussi
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bob Armstrong wrote:
> Playing with variations on this form , I guess there are
> issues of syntax and allowed elisions that I don't understand
> yet . When
>
> plane { z , 5
> pigment { checker
> < .6 , 1 , .6 > ,
> < 1 , .6 , 1 > }
> }
>
> works , I don't see why
>
> plane { z , 5
> pigment { checker
> pigment { checker rgb 1 rgb 0 scale 1/12 } ,
> < 1 , .6 , 1 > }
> }
>
> doesn't . I would naively expect a principle of substitution .
checker does either take two colors (as in your first example), or two
pigments. Your second example is one full pigment and one color, but
that's not valid. You can replace the color with a full pigment
statement and it should work:
plane { z , 5
pigment {
checker
pigment { checker rgb 1 rgb 0 scale 1/12 },
pigment { rgb < 1 , .6 , 1 > }
}
HTH,
Florian
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|