POV-Ray : Newsgroups : povray.newusers : many identical object with different textures : Re: many identical object with different textures Server Time
5 Nov 2024 11:16:40 EST (-0500)
  Re: many identical object with different textures  
From: Mr  Art
Date: 7 Sep 1999 16:44:19
Message: <37D578FA.4E7E2285@gci.net>
This could be of help...
#declare R1 = seed(12345);
#declare name_of_shape  = the shape without a texture here
#macro Place( name_of_shape)
    object{name_of_shape   texture{some_predefined_texture translate
<rand(R1),rand(R1),rand(R1)}}
#end

then you could use
Place {name_of_shape }

The texture will be translated by some randome amount each time that the
macro is called.

Let us know if that helped.

Mr. Art
Sander wrote:

> Hello,
> I would like to render many identical objects having non-identical textures.
> To explain: object is a union of several primitives, one of which has a
> marble texture.
> When I place 1000 of those objects on a plane, they all have an identical
> marble outlook.
> I would like to them to be different: still the same marble, but  a
> different pattern.
> Of course I could make 1000 different textures, but this doesn't seem to be
> the best solution. I tried to make a macro that produces a texture, but that
> obviously cannot be done. ... What to do?
> Thanks for any help.        Sander


Post a reply to this message

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