|
|
Ok, I hope I got the right group. :)
You'll need the birdhouse.inc file I'll post in a separate message. This file
shows basically how the include file is used. You will need to put together
the birdhouse in objects, where you can color each of the 4 pieces. If you
want, you can then cut the birdhouse code out of your file and make your own
.inc files for different color birdhouses. I recommend leaving the 'translate'
out of your .inc files so you can be able to place them anywhere you like.
Have fun! :)
--
Tika
Tika's Graphics: http://www.5thpower.com/tika/
// Birdhouse Model Demo 1.2
// by Tika Carr
// Release: October 2, 1999
// NOTE: Created and Tested with POV-Ray for Windows 3.1g
// Note that this include file is to be considered "unfinished", even though
it is usable.
// No warranties or Guarantees are expressed nor implied. Use at your own
risk.
#include "colors.inc"
#include "skies.inc"
#include "birdhouse.inc"
#include "woods.inc"
#include "stones1.inc"
global_settings { assumed_gamma 1.0 }
// Set up world
background {color RichBlue}
camera {
location <0, 1, -4.5>
look_at <0, 0, 3>
}
light_source
{
0*x
color rgb 1.0
area_light
<8, 0, 0> <0, 0, 8>
4, 4
adaptive 0
jitter
translate <40, 80, -40>
}
sky_sphere { pigment {P_Cloud1 scale .1} }
plane { y, -1 pigment {color DarkGreen} }
// Each birdhouse is actually made up of 4 objects. I did it this way so that
// you can change the color or texture of each object. If you get one you
// particularly like, just cut it out and make an include file of it to put
// it in your own images. I'd recommend leaving out the 'translate' though so
// you can reposition your custom-color birdhouse.
// Primary color Birdhouse:
union {
object {
Birdhouse_Roof
pigment { color Red }
}
object {
Birdhouse_House
pigment { color Yellow }
}
object {
Birdhouse_Perch
pigment { color SkyBlue }
}
object {
Birdhouse_Post
pigment { color VLightGrey }
}
// translate <-1, 0, 4> // Use this to position your birdhouse.
// Keep it on the ground by keeping y (middle
value) to zero
// x (first value) is left/right and z (last
value) is forward/back
// Note that postive numbers move z backward
into the picture.
}
// Wooden Birdhouse
union {
object {
Birdhouse_Roof
texture { T_Wood28 }
}
object {
Birdhouse_House
texture { T_Wood30 }
}
object {
Birdhouse_Perch
texture { T_Wood28 }
}
object {
Birdhouse_Post
texture { T_Wood30 }
}
translate <-2.5, 0, 2>
}
// Green Stone Birdhouse
union {
object {
Birdhouse_Roof
texture { T_Stone1 } // Brown
}
object {
Birdhouse_House
texture { T_Stone18 } // Green
}
object {
Birdhouse_Perch
texture { T_Stone6 } // Black
}
object {
Birdhouse_Post
texture { T_Stone9 } // Grey White
}
translate <2, 0, -1>
rotate <-5, 45, 0>
}
Post a reply to this message
|
|