|
|
Of course... It's all so simple now... My mind was stuck on the object
center remaining at the origin.
"Maarten Boonen" <m44### [at] yahoocom> wrote in message
news:41f95360$1@news.povray.org...
> Bryan Valencia schreef:
> > This is 3 sides of a cube turned into a shelter on a very hot alien
world.
> > I had to use trial and error (because my math skills are lacking) to
figure
> > out how much to rotate and translate my box{-1,1} to make the cube sit
> > correctly on the plane{y,0} Can someone 'splain the math for me?
>
> Hi,
>
> Not really math, but this might help:
>
> camera { location <5,1,8> look_at 0 }
>
> light_source { 50 rgb 1 }
>
> plane { y, 0 pigment { rgbt <1,1,1,.5> } }
> plane { x, 0 pigment { rgbt <0,1,0,.5> } }
> plane { z, 0 pigment { rgbt <0,0,1,.5> } }
>
> difference
> {
> box { <1,0,1>, <-1,2,-1> }
> box { <1,0,1>, <-1,2,-1> translate <.1,-.1,.1> }
>
> translate <1,0,1>
> rotate y*-45
> translate <0,0,-1>
> rotate x*45
>
> pigment { rgb <1,0,0> }
> }
>
>
> Greetings,
>
> Maarten
Post a reply to this message
|
|