POV-Ray : Newsgroups : povray.general : Image_map front & back : Re: Image_map front & back Server Time
6 Aug 2024 10:26:39 EDT (-0400)
  Re: Image_map front & back  
From: Warp
Date: 21 Jun 2002 08:48:49
Message: <3d1320b1@news.povray.org>
Greg M. Johnson <gregj:-)565### [at] aolcom> wrote:
>>   Use the pattern with a pigment_map instead.

> Can you suggest a syntax for this?

  I got confused. The object pattern cannot be used with a pigment_map
literally. However, it can take two pigments without problems:

camera { location -z*5 look_at 0 angle 35 }
light_source { -z*10, 1 }

#declare Object = sphere { 0,1 }
#declare Pigm1 = pigment { bozo color_map { [0 rgb 0][1 rgb 1] } }
#declare Pigm2 = pigment { granite color_map { [0 rgb x][1 rgb x+y] } }

plane
{ -z,0
  pigment
  { object
    { Object
      pigment { Pigm1 }
      pigment { Pigm2 }
    }
  }
}


-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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