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 / 13164
13163  |  13165
Subject: 
How do you change the floor and sky in POV for grass and clouds?
Newsgroups: 
lugnet.cad
Date: 
Sun, 7 Aug 2005 23:35:13 GMT
Viewed: 
1074 times
  
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 success.  Either
it doesn't render out right, or the floor messes up the object.  If anyone has
any experience with this, I could use some pointers.  Perhaps you can edit my
example text file here into what it SHOULD say. Also how can you set up your
lights to not set up such harsh shadows.  I've seen some awesome renders that
look like real Legos, and there's just a hint of a shadow.

Let me show you an example from a normal pov file that came from Mlcad.

------------------------------------------------------------------------------
// Floor:
object {
plane { y, 4 hollow }
texture {
pigment { color rgb <0.8,0.8,0.8> }
finish { ambient 0.4 diffuse 0.4 }
}
}

// Background:
background { color rgb <0,0,0>}

// Camera (Latitude,Longitude,Radius = 0,0,0)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-105,-95.25,-731> + PCT/100.0*<0,0,-800>,
                      <0,-640000,0>,STEREO)
sky      -y
right    -4/3*x
look_at  <-105,-95.25,69> // calculated
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}

// Lights:
light_source {
<-113.025,-791.685,-496.685>  // Latitude,Longitude,Radius: 45,0,800
color rgb <1,1,1>
}
light_source {
<486.975,-626,415.41>  // Latitude,Longitude,Radius: 30,120,800
color rgb <1,1,1>
}
light_source {
<-459.435,-918.82,269>  // Latitude,Longitude,Radius: 60,-120,800
color rgb <1,1,1>
}
--------------------------------------------------------------------------


OK, so here's the macro for the grass:


-------------------------------------------------------------------------
// 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
    pigment { color <1,1,1> }  texture { pigment { Jade } }
    finish { ambient .5 diffuse .3 }  }
---------------------------------------------------------------------------


I've tried putting this in the Pov file, and it seems simple enough yet I'm
messing something up.  Maybe I'm missing the texture files, I'm not really sure.



Message has 1 Reply:
  Re: How do you change the floor and sky in POV for grass and clouds?
 
(...) OK here it goes: (...) Note the number '4' in the above line? Remember it. (...) At this line, replace 'floor_height' with the number noted above. (...) Now delete the original 'floor' section of the code. As far clouds are concerned, you'll (...) (19 years ago, 8-Aug-05, to lugnet.cad)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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