POV-Ray : Newsgroups : povray.general : Checkered Sphere : Re: Checkered Sphere Server Time
8 Jun 2024 04:40:48 EDT (-0400)
  Re: Checkered Sphere  
From: Tim Attwood
Date: 25 Sep 2007 04:45:50
Message: <46f8cabe$1@news.povray.org>
> since everybody knows how to render a reflective sphere on a checkered 
> floor, I wonder how to make a checkered sphere. Since map_type 1 only 
> works only with pigment or texture maps, how do I map the checkered
> pattern correctly onto a sphere?
>
> Maybe someone could be so kind and explain it?

It's not perfect at the poles, but this is the basic way of doing it.

sphere {0,1 pigment{uv_mapping checker White Blue scale 0.05}}

Not every object type supports uv_mapping, but it's handy when they do.


Post a reply to this message

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