Introduction to the scenery description langage of the POV-Ray Raytracer         - page 1 -
by Friedrich A. Lohmüller
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorials
 
  
POV-Ray Introduction
   Content  -  INDEX
 
> 0. Working with POV-Ray:
      "Insert Menu Add-on".
  1. Basics
      on writing texts.
  2. 3D Coordinates,
      Floats and Vectors
  3. Scene Structur
      #include files,
      camera, light_source.
      Types of light sources
  4. Basic Objects plane, sphere,
      box, cylinder, cone, torus.
      Other Shapes
      height_field, text, etc.
  5. Transformations
      Streching, Turning,
      Moving and others.
      CSG: union,
      difference, intersection.
  6. Color + Surfaces       texture, pigment, normal, finish
  7. #declare, #local,
      #macro .. #end,
      #include,
      re-usable objects.
  8. #while Loops
  9. Efficiency,
      speed, flexibility,
      modulare working
      adapting from 3.1 to 3.5;3.6
      adapting from 3.5;3.6 to 3.7
      POV-Ray + Windows Vista.
 
  - Insert Menu Add-on
    & Download
                                       

Creating a Scenery in POV-Ray:

Creating a scene with POV-Ray for Windows is easy to do with a minimal effort in writing.
For this we use the text templates from the "Insert Menu". In the following parts we assume that you have already installed my "Insert Menu Add-on", created to to make POV-Ray more comfortable. The original Insert Menu templates unfortunately are only designed by theoretical aspects. So I made an add-on to improve this by didactical aspects as well as ergonomical aspects.
You can get my "Insert Menu Add-on" at the tutorial pages of our homepage:
http://www.f-lohmueller.de/pov_tut/pov__eng.htm - see: "Download".


I   Building a basic scene

We are making a new scene starting with a blank sheet of text, clicking the "New" button. Then we choose "Insert" - "Basic templates" - "Ready_made scenes" a basic scenery with camera, light source and background (Floor and sky):

Click for higher resolutione of this image

II   Render Test of the basic scene

To get a first idea how the empty stage of our scenery looks like, we choose an appropriate resolution in the resolution drop-down menu under the "New" button.
After this we save our scenery file with the "Save" button - please don't use any non-ASCII characters, spaces or special signs except "_" in your file name (here: "demo1"). The extension ".pov" will be added automatically.
Clicking the "Run" button shows us the scene in a additional window, called the "Render Window":

Click for higher resolutione of this image


III   Adding shapes to the scene

Attention: Be careful before adding any other object:
You have to put the cursor at the very end of our text!
(Otherwise ... Some day you'll forget to do so and be in trouble! Hope you will remember this point! :-) Then we select "Insert" - "Basic templates" - "Shapes with textures" to add a simple basic shape to our scene:

Click for higher resolutione of this image


IV   Render Test of the complete scene

To see our scene, we again click the "Run" button. This shows us the new arrangement in the "Render Window":

Click for higher resolutione of this image


V    How to edit our scene file

To modify the scene text we have more tools than just inserting some templates from the "Insert Menu". We can also do nearly all kind of text editing, which we know from modern text editors like i.e. "Word".
Some of the most important functions:
Ctrl + c copies a marked text section to copy memory space.
By Ctrl + v this text section will be inserted at the point indicated by the cursor.
This insert action we can also do by Ctrl + Insert.

This trap you will find at all text editors:
"My cursor eats the characters!" - (instead of inserting them!)
Normally (this is indicated by the sign "Ins" in the 4th lower gray sector) an editor program inserts a character at the place indicated by the cursor. If we hit the "Insert" button once the editor changes to overwrite modus (this is indicated by the sign "Ovr" in the 4th lower gray field).
How to change back: Just hit the "Insert" button once again!

The important "undo function" is like by most programs Ctrl z: This allows the user to undo all previous actions step by step. The according counterpart is Ctrl y: called redo
Those commands are also available by "rigth mouse click, select undo/redo" or by selecting them from the upper menu item "Edit".

VI    Where is the image?

If you don't know where the renderered image's location is: Normally in the same directory like the scene file (.pov).
To change this: Click in your POV-Ray editor at "Tools", "Edit master POV-Ray.INI":
Add a last line to this text file something like this:
"Output_File_Name=C:\User\POV-Ray_images\. You can change this line to any existing directory you want.
But don't forget the backslash at the end, otherwise all rendered images will be saved with the same name "images.bmp" - and your older images are overwritten.

VII    The Render Window is not visible or disappears immediately!

You will find a solution of this problem looking at the following image:

Click for higher resolutione of this image
top

© Friedrich A. Lohmüller, 2009
email email: Friedrich.Lohmueller_at_t-online.de
homepage:http://www.f-lohmueller.de