POV-Ray : Newsgroups : povray.newusers : Random texture? : Re: Random texture? Server Time
28 Sep 2024 18:13:45 EDT (-0400)
  Re: Random texture?  
From: Christian Froeschlin
Date: 6 Jan 2012 22:40:56
Message: <4f07bec8$1@news.povray.org>
Micke wrote:

> All works untill I add the texture line, then this error:No matching } in
> object',: found instead. What am I doing wrong,please.

It looks like you accidentally inserted the texture
within the expression -x*12*Count. Such things are easier
to spot if you use more consistent spacings and indents:

#declare Rand = seed(1);
#declare Count = 0;
#while (Count <10)
   object
   {
     My_Column
     translate -12*Count*x
     texture {My_Marble rotate <rand(Rand),rand(Rand),rand(Rand)>}
     rotate -100*y
   }
   #declare Count=Count+1;
#end


Note that it can also be relevant when to apply the
texture with respect to transformations.


Post a reply to this message

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