POV-Ray : Newsgroups : povray.binaries.images : just messin around. [200k] : Re: just messin around. [200k] Server Time
1 Aug 2024 00:18:39 EDT (-0400)
  Re: just messin around. [200k]  
From: Thomas de Groot
Date: 28 Feb 2009 07:41:37
Message: <49a93101@news.povray.org>
"[GDS|Entropy]" <gds### [at] hotmailcom> schreef in bericht 
news:49a82833$1@news.povray.org...
>
> Possibly. Might I see the test source? I might be able to do something 
> with it.

Sure. This is the relevant code (Material for the 'moss' and parameters for 
the MakeSnow macro. Be aware that this comes from a scene originally created 
in Moray. So, the z-axis is up for the macro parameters:
//---- start code
#local Frequency = 20;
#declare Moss =
material {
texture {
  pigment {
    granite
    frequency Frequency
    color_map {
      [0.33 color rgbt <0,0,0,1> ]
      [0.33 color rgb <0.3,0.4,0.1>*0.5 ]
      [0.40 color rgb <0.8,0.9,0.1>*0.9 ]
      [0.50 color rgb <0.4,0.4,0.1>*0.8 ]
      [0.50 color rgbt <0,0,0,1> ]
      [0.66 color rgbt <0,0,0,1> ]
      [0.66 color rgb <0.4,0.4,0.2>*0.8 ]
      [0.80 color rgb <0.8,0.8,0.2>*0.8 ]
      [0.99 color rgb <0.4,1.0,0.2>*0.5 ]
      [0.99 color rgbt <0,0,0,1> ]
    }
  }
  normal {
    granite 0.5
    frequency Frequency
    bump_size 5
  }
  finish{
    specular 0.0
  }
}
}

//MakeSnow Object
object {
 #declare Obj       = object { MakeSnow_Landscape };
 #declare Particles = 20000;
 #declare Size      = 0.050;
 #declare Thickness = 0.050;
 #declare MinHeight = 0.500;
 #declare MaxHeight = 3.000;
 #declare Direction = (0.0*x)+(0.0*y)+(-1.0*z);
 #declare rd        = seed(2003);
 #declare T_Snow    = material {Moss}
 MakeSnow(Obj,Particles,Size,Thickness,MinHeight,MaxHeight,Direction)
}

//---- endcode

>
> With a slight modification, the image you posted looks a lot like trees 
> from a great altitude... :)
>
> It would also make great corrosion or rust if you changed the colors of 
> your moss...even dirt or paint peeling off of a wall. Lots of 
> possibilities I see there.

Absolutely. Both aspects are possible, depending on the type of texture that 
you use.

Thomas


Post a reply to this message

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