Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
  POV-Ray Objects - Ready-made Objects for POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  - POV-Ray Objects
    Index of Content
  - Instructions for use
  - Insert Menu Add-on
    & Download
 
  - Geometry
  - Architecture
  - Plants
  - Engineering
  - Railway / Railroad
                                       

Instructions for using the Include Files
of the Ready-made POV-Ray Objects

This is a little collection of ready-made objects and parts of objects for POV-Ray.
They mostly were definded in one or more include files as objects or as macros.

How to use these objects?
For using the objects defined in include files, we have to save the include file of the object (with the extension ".inc") in our subdirectory
POV-Ray 3.6 on Windows XP:
"C:/Programs/POV-Ray for Windows 3.6/Include".
POV-Ray 3.6 on Windows Vista:
"C:/POVRay_3.6/Include".
POV-Ray 3.7 beta on Windows Vista:
"C:/Users/MYSELF/Documents/v3.7/Include".

Alternatively we can save the include file to the directory of our scene files (".pov") or to any other library path directory which is listed in the file "POVRAY.INI".
We can find the file "POVRAY.INI" with the editor of POV-Ray by
"Tools" - "Edit master POVRAY.INI".
There we find in one of the last lines declarations of paths to libraries like this:
Library_Path="C:\Programs\POV-Ray_for_Windows_v3.6\include".
We can declare up to 20 library paths here, i.e.
Library_Path="C:\Users\MYSELF\Documents\My_include_files".
(don't forget to close and restart POV-Ray after adding a new path there!).

Example:
To be able to use the object Chair_s00( ... ),
we first have to save Chair_s00.inc in our directory (as descriped above !)
Than we can call the object "Chair_s00(...)" in our POV-Ray scene files as follows:

//------------------------------------------------
#include "Chair_s00.inc"
//------------------------------------------------
object{ Chair_s00 ( 0.80, // Chair_Height,
                    0.45, // Seat_Height,
                    0.225,// Chair_Half_Width
                    0.015,// Chair_Feet_Radius,
                  )  //--------------------------
         texture{ pigment{ color rgb<0.37,0.25,0.15>}
                  finish { diffuse 0.9 phong 1 }
                } // end of texture
         scale <1,1,1>
         rotate<0,0,0>
         translate< 0.00,0.00,0.00>
       } // end of "Chair_s00(...)"
//------------------------------------------------


Furniture
Chair_s00

Download of all ready-made POV-Ray objects
zipped up (with all include files, example files and with
the according Insert Menu Add-ons for comfortable use!)
at the Download Page
top

© Friedrich A. Lohmüller, 2009
www.f-lohmueller.de