To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13165
13164  |  13166
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: 
1327 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:
  Re: How do you change the floor and sky in POV for grass and clouds?
 
I haven't tried the sky sphere yet, but I'm still having a problem with the grass texture. I did as you said and put "4" in for the "floor_height". I even tried "4 Hollow", since that was the figure original there. What happens is that I get an (...) (19 years ago, 8-Aug-05, to lugnet.cad)

Message is in Reply To:
  How do you change the floor and sky in POV for grass and clouds?
 
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. I've been experimenting with this in POV, but haven't had much (...) (19 years ago, 7-Aug-05, to lugnet.cad)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR