POV-Ray : Newsgroups : povray.beta-test : Non-rotating slope maps in 3.5.beta.11.incl.win32 : Re: Non-rotating slope maps in 3.5.beta.11.incl.win32 Server Time
29 Jul 2024 22:32:11 EDT (-0400)
  Re: Non-rotating slope maps in 3.5.beta.11.incl.win32  
From: Anders K 
Date: 14 Feb 2002 10:18:47
Message: <3c6bd557$1@news.povray.org>
> // unrotated slope map
> // rotated slope map looks the same:

You're applying the texture after you rotate/translate the sphere. Try
applying it before the rotation and translation instead, so it will get
rotated and translated with the object like you want it to.

Anders

--
light_source{6#local D#macro B(E)#macro A(D)#declare#declare C=mod(E
D);E=(E-C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(C<3)
}cylinder{0(C=<1 2>).2translate<D+C*A(2)A(4)#else}intersection{torus
{1 .2}box{-2y}rotate<1 0C>*90translate<D+1A(2)*2+1#end-2 13>pigment{
rgb x}finish{specular 1}#end#end#end=-8;1B(445000298)B(519053970)B(
483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

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