|
![](/i/fill.gif) |
"Trevor G Quayle" <Tin### [at] hotmail com> wrote:
> "alphaQuad" <alp### [at] earthlink net> wrote:
> > "Trevor G Quayle" <Tin### [at] hotmail com> wrote:
> > > Slight problem with some grout scaling being off, try this instead:
> >
> > If there were any heads to be saved in Gefilte Fish jars for the future it would
> > be yours. "Danger danger Will 'Einstein' Robinson".
> >
> > "leet" brain waves there TQ
>
> Well thanks...
>
> As long as it all works out for you and we both learned something. I always
> take these things as a challenge to teach myself how to do something and
> hopefully learn something.
>
> -tgq
I was playin with your first one, check it out:
#declare TilSiz=<6/7,12/7,-4>; //Size of tile (x,y)
#declare scal = (1-TilSiz)*TilSiz/34.85;
#declare Grt=1/7;
#declare TQ_tile =
pigment { uv_mapping
gradient x
pigment_map{
[Grt/(TilSiz.x+Grt) rgb 1]
[Grt/(TilSiz.x+Grt) gradient y
colour_map{
[Grt/(TilSiz.y+Grt) rgb 1]
[Grt/(TilSiz.y+Grt) rgb <.6,.6,1> ]
}
]
}
//scale <scal.x,abs(scal.y),1> // = different image
scale scal // negative y-scale
//scale <1/160,1/20,1>*.7
}
echov((1-TilSiz)*TilSiz*0.0287) // <0.00351,-0.03514,-0.57400>
cr()
echov((1-TilSiz)*TilSiz/34.85) // <0.00351,-0.03514,-0.57389>
cr()
echov(<1/160,1/20,1>*.7) // = <0.00437,0.03500,0.70000>
cr()
#declare pool_box2 =
difference {
box { <-8, -66.5, -8> <232, 0, 232> } // legoworld hole +8
box { <0, -65, 0> <224, 1, 224> }
texture { TQ_tile basic_finish }
translate <-8,0,-8>
}
object { pool_box2 translate y*4 }
how/why is negative -scale is OK?
Post a reply to this message
Attachments:
Download 'lego_pool_01test.png' (46 KB)
Preview of image 'lego_pool_01test.png'
![lego_pool_01test.png](/povray.binaries.images/attachment/%3Cweb.494f1df26655db18f798649f0%40news.povray.org%3E/lego_pool_01test.png?preview=1)
|
![](/i/fill.gif) |