POV-Ray : Newsgroups : povray.general : projective transformations : Re: projective transformations Server Time
31 Jul 2024 08:19:43 EDT (-0400)
  Re: projective transformations  
From: mimmo
Date: 26 Jul 2007 03:35:00
Message: <web.46a84e19cb3fb5f749aa3f520@news.povray.org>
> > I believe you should be able to do this by defining a function to use as a
> > pigment (though I've not tried it and don't know the maths you'd need).
> > ... snip ...
>
> Here's what I arrived at through messing about for a couple of minutes with
> that trying to get a perspective-like pattern:
>
> camera {location <0, 0,-20> look_at  0}
> light_source { <-20, 20, -20> color rgb <1,1,1>}
>
> #include "functions.inc"
> #declare FOO = function {pigment { checker scale 10} }
>
> plane {-z,0
>    pigment {
>      function { FOO(x/y*20,sqrt(y)*100,z).green}
>    }
> }
>
> Regards,
> Chris B.

Thanks to all, it's just what I need to know.

mimmo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.