POV-Ray : Newsgroups : povray.newusers : textures and blocks/tiles Server Time
5 Nov 2024 11:18:32 EST (-0500)
  textures and blocks/tiles (Message 1 to 6 of 6)  
From: Mock26
Subject: textures and blocks/tiles
Date: 12 Nov 2003 19:30:01
Message: <web.3fb2d0638187e1a07a0e9df90@news.povray.org>
I am a new user, and I have been experimenting with building a stone wall.
The problem that I have is that when I construct it out of blocks, I get
the same stone pattern (using T_Stone24) over and over again.  Is there a
quick and easy way to have the stone pattern (or any pattern for that
matter!) randomly change?  Thank you very much.  Take care and have a great
day....

ciao,
john.


Post a reply to this message

From: Warp
Subject: Re: textures and blocks/tiles
Date: 12 Nov 2003 19:59:03
Message: <3fb2d757@news.povray.org>
You can either apply the texture only once to the whole wall of stones
so that each stone will have its unique texture (the problem being that
sometimes it's too clear that there's a single texture applied to the
whole wall, which looks bad), or you can create a set of eg. 20 different
stones with different textures and then create the wall by randomly
selecting different stones and rotating/reversing them randomly.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Matthew Pace
Subject: Re: textures and blocks/tiles
Date: 12 Nov 2003 22:46:34
Message: <matt-pace-F9D890.19463212112003@netplex.aussie.org>
In article <web.3fb2d0638187e1a07a0e9df90@news.povray.org>,
 "Mock26" <nomail@nomail> wrote:

> I am a new user, and I have been experimenting with building a stone wall.
> The problem that I have is that when I construct it out of blocks, I get
> the same stone pattern (using T_Stone24) over and over again.  Is there a
> quick and easy way to have the stone pattern (or any pattern for that
> matter!) randomly change?  Thank you very much.  Take care and have a great
> day....
> 
> ciao,
> john.
> 

If they are using the same texture, you can translate teh texture 
randomly with each block, but then I think lines would appear where the 
textures dont align...

Somebody correct me if im wrong on that


Post a reply to this message

From: JC (Exether)
Subject: Re: textures and blocks/tiles
Date: 13 Nov 2003 01:11:50
Message: <3fb320a6$1@news.povray.org>
Add a random translation to each texture :
#local MySeed=seed(0)

#while (whatever)
   [...]
   object {
     Stone
     texture {
       T_Stone
       <rand(MySeed), rand(MySeed), rand(MySeed)>*1000
     }
   }
   [...]
#end

Mock26 wrote:
> I am a new user, and I have been experimenting with building a stone wall.
> The problem that I have is that when I construct it out of blocks, I get
> the same stone pattern (using T_Stone24) over and over again.  Is there a
> quick and easy way to have the stone pattern (or any pattern for that
> matter!) randomly change?  Thank you very much.  Take care and have a great
> day....
> 
> ciao,
> john.
>


Post a reply to this message

From: Warp
Subject: Re: textures and blocks/tiles
Date: 13 Nov 2003 06:45:13
Message: <3fb36ec9@news.povray.org>
"JC (Exether)" <no### [at] spamfr> wrote:
>      texture {
>        T_Stone
>        <rand(MySeed), rand(MySeed), rand(MySeed)>*1000
>      }

  That probably lacks something... :)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: JC (Exether)
Subject: Re: textures and blocks/tiles
Date: 13 Nov 2003 07:53:56
Message: <3fb37ee4@news.povray.org>
Warp wrote:
> "JC (Exether)" <no### [at] spamfr> wrote:
> 
>>     texture {
>>       T_Stone
>>       <rand(MySeed), rand(MySeed), rand(MySeed)>*1000
>>     }
> 
> 
>   That probably lacks something... :)
> 

Errr ... It might work better with a translate ...  :-)

texture {
        T_Stone
        translate <rand(MySeed), rand(MySeed), rand(MySeed)>*1000
      }


Post a reply to this message

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