POV-Ray : Newsgroups : povray.general : Black on left and white on right. : Black on left and white on right. Server Time
10 Aug 2024 01:24:55 EDT (-0400)
  Black on left and white on right.  
From: Greg M  Johnson
Date: 5 Apr 2000 22:48:27
Message: <38ebfafb$1@news.povray.org>
How do I set up something that is black on the left and white on the
right? Before you answer, I want the demarcation at x=0, and the max &
min extent in x can vary wildly, and it's a BLOB!  (The arms can swing
out.)  This question is no-brainer if we are talking an unchangingsphere
but perhaps not solvable w/ pov if we are talking a blob of varying
extent.

The following solution won't work, because it is reflected over the x=0
plane.

pigment {         gradient x
                        pigment_map{
                         [0       Black]
                         [0.5       Black]
                         [0.51     White]
                         [1       White]
                         }
                         }

If I translate the image map, this won't work either, because it will
start at min extent of the actual figure, something impossible to
determine with a blob.


Post a reply to this message

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