POV-Ray : Newsgroups : povray.unofficial.patches : I don't understand the slope pattern : Re: I don't understand the slope pattern Server Time
1 Sep 2024 18:19:30 EDT (-0400)
  Re: I don't understand the slope pattern  
From: Warp
Date: 2 May 2001 08:46:12
Message: <3af00193@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: Shouldn't that be:

:  heighfield
:  { whatever
:    texture { whatever scale <1, 1/2, 1>}
:    scale <1, 2, 1>
:  }

  No. The idea was that the heighfield should be scaled in widht and length
to the appropriate size before texturing (so that the texture would not be
distorted or anything), but the height should be 1 because of the used slope
pattern.
  My suggestion was to first set the width and length of the heightfield to
whatever they should be but leave the height to 1, then texture it and then
set the height to what it should be.

-- 
#local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
#local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
blob{#while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2
pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end}               /*- Warp -*/


Post a reply to this message

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