POV-Ray : Newsgroups : povray.general : GCSpheres! : Re: GCSpheres! Server Time
31 Jul 2024 16:29:56 EDT (-0400)
  Re: GCSpheres!  
From: nemesis
Date: 23 Nov 2006 11:30:00
Message: <web.4565cc38a21c67a03976a8750@news.povray.org>
"Doctor John" <doc### [at] linuxmailorg> wrote:
> I'm a
> little p****d off that they don't have POV down as one their preferred
> ray-tracers tho'

me too!  Actually, i tried emulating the "template" scene they provided, but
have messed up it many times by trying to get the uv_mapped texture right,
with no luck.  Does anyone know how to get it done?

here goes it:

#declare t_plane = texture {
        //pigment { checker rgb 1 rgb .7 scale .75 }
        pigment { cells color_map {[0 rgb .8][1 rgb 1]}}
        finish { ambient .3 diffuse .6 }
}


union {
        light_source { 8*(4-8*z) 1 }

        difference {
                box{-<9,4,4>,<9,4,4> pigment { rgbt 1 }}
                cylinder {-8*x,8*x 4 translate -z*4+y*4 }
                //texture { uv_mapping t_plane translate -y*.4 }
        }
        plane { y,0 }//texture { t_plane translate z*.2 } }
        plane { -z,-5 }//texture { t_plane translate z*.2 } }

        sphere { y-12*z, 1 pigment { rgb 1 } }
        texture { uv_mapping t_plane scale z*.2 }

        rotate -x*5
        translate 18*z
}

camera { location -z*8 angle 20 }


Post a reply to this message

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