POV-Ray : Newsgroups : povray.beta-test : Bug with transform syntax : Bug with transform syntax Server Time
2 Nov 2024 07:24:17 EDT (-0400)
  Bug with transform syntax  
From: Christopher James Huff
Date: 27 Dec 2001 19:30:50
Message: <chrishuff-5FC1B7.19310427122001@netplex.aussie.org>
The "transform {}" syntax seems not to work within textures...
This:

   texture_map {
      #local J = 0;
      #while(J < Samples)
         [J/(Samples - 1) Texture transform {rotate y*Amt*pow(J/(Samples 
- 1), Exp)}]
         #local J = J + 1;
      #end
   }

will give a parse error "Expected 'transform identifier', { found 
instead", but this works:

   texture_map {
      #local J = 0;
      #while(J < Samples)
         #local Trans = transform {rotate y*Amt*pow(J/(Samples - 1), 
Exp)}
         [J/(Samples - 1) Texture transform Trans]
         #local J = J + 1;
      #end
   }


(I will post a test scene if necessary)
I have only noticed it happening in texture_maps, but I think I saw 
someone else mention it happening with pigments, so there are probably 
other cases where it happens.

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

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