POV-Ray : Newsgroups : povray.advanced-users : Texture transition : Re: Texture transition Server Time
29 Jul 2024 00:23:38 EDT (-0400)
  Re: Texture transition  
From: Mark Weyer
Date: 3 Jun 2003 03:59:16
Message: <3EDC558F.9000703@informatik.uni-freiburg.de>
> What I want is for all points where y >= +100 to be red, all points where y
> <= -100 to be blue, and the points inbetween to be linearly interpolated. I
> can get red -> blue -> red, and I can get blue -> red -> blue, but how do I
> get red -> blue?

I would take a checker and scale it so large that only two cubes are
in the visible scene, their frontier being at y=100. One of the
patterns I would make red, for the other I repeat the trick for a
second frontier at y=-100. One of those textures I make blue, the
other will be a gradient or however that was called.

Probably NOT the best solution.


-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message

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