Subject:
|
Re: How do you change the floor and sky in POV for grass and clouds?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Mon, 8 Aug 2005 00:19:10 GMT
|
Viewed:
|
1434 times
|
| |
| |
In lugnet.cad, Chris Shepard wrote:
> I've been doing some browsing on the internet and I found some great "macros"
> that add grass for the ground (or other types of textures) and also blue sky
> with clouds for the sky.
OK here it goes:
> // Floor:
> object {
> plane { y, 4 hollow }
Note the number '4' in the above line? Remember it.
> texture {
> pigment { color rgb <0.8,0.8,0.8> }
> finish { ambient 0.4 diffuse 0.4 }
> }
> }
> <snip>
> -------------------------------------------------------------------------
> // Persistence of Vision Ray Tracer Floor Description File
> // Created by Gregory J Overkamp (e-Mail: vagabondma@hotmail.com)
> // This floor code creates a grass-like floor.
> // Replace "floor_height" with a numeric value for the height of the floor.
> //**********************************************************
> // Floor:
> #include "colors.inc"
> #include "textures.inc"
> plane { y, floor_height
At this line, replace 'floor_height' with the number noted above.
> pigment { color <1,1,1> } texture { pigment { Jade } }
> finish { ambient .5 diffuse .3 } }
> ---------------------------------------------------------------------------
Now delete the original 'floor' section of the code.
As far clouds are concerned, you'll have to use a 'sky_sphere'. Here's a sample
of code (I think this is Jeroen De Haan's code):
#include "colors.inc"
#declare VERSTERKING = 1.05 ;
#declare P_Cloud4 =
pigment {
wrinkles
turbulence 1 / 15
lambda 2.2
omega 0.707
color_map {
[0.20 SkyBlue * VERSTERKING ]
[0.50 White * VERSTERKING ]
[1.00 Gray70 * VERSTERKING ]
}
scale <0.5, 0.15, 1>
}
sky_sphere {
pigment {
gradient y
pigment_map {
[0.00 rgb <0.847, 0.749, 0.847> *1.2 ] // horizon
[0.10 SkyBlue*1.15 ] // horizon
[0.20 P_Cloud4 ]
}
}
}
-Orion
|
|
Message has 1 Reply:
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|