POV-Ray : Newsgroups : povray.newusers : many identical object with different textures : Re: many identical object with different textures Server Time
5 Nov 2024 11:17:15 EST (-0500)
  Re: many identical object with different textures  
From: Chris Huff
Date: 7 Sep 1999 16:38:28
Message: <37D5780A.ADB59818@compuserve.com>
Your best bet would be to make a macro to create the object itself,
which translates the textures by a random amount. Use a variable outside
the macro to store the random number generator's seed.

#declare myObjectRS = seed(456123);
#macro MakeMyObject()
    union {
        //blah blah
        texture {
            //blah blah
            translate < rand(myObjectRS)*100, rand(myObjectRS)*100,
rand(myObjectRS)*100>
        }
    }
#end

Or you could declare your object as untextured, and texture it for each
version. This would only work if the object only has one texture,
though.


Post a reply to this message

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