povray_tutorial1

povray_tutorial1 - POV-Ray tutorial 20th June 2003 The...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: POV-Ray tutorial 20th June 2003 The beginning tutorial explains step by step how to use POV-Rays scene de- scription language to create your own scenes. The use of almost every feature of POV- Rays language is explained in detail. We will learn basic things like placing cameras and light sources. We will also learn how to create a large variety of objects and how to assign different textures to them. Here is presented only the beginning of the whole Beginning tutorial. This should be well enought to make your computer graphics assignment. For full tutorial and also for other documentation please refer the official POV-Ray site at http://www.povray.org. 1 1 You know you have been raytracing too long when . . . You actually read all the documentation that comes with programs. AmaltheaJ5 1 Contents 1 Our First Image 3 1.1 Understanding POV-Rays Coordinate System . . . . . . . . . . 3 1.2 Adding Standard Include Files . . . . . . . . . . . . . . . . . . . 4 1.3 Adding a Camera . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Describing an Object . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5 Adding Texture to an Object . . . . . . . . . . . . . . . . . . . . 6 1.6 Defining a Light Source . . . . . . . . . . . . . . . . . . . . . . . 7 2 Basic Shapes 8 2.1 Box Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 Cone Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 Cylinder Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 Plane Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 Torus Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 CSG objects 18 3.1 What is CSG? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.2 CSG Union . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3 CSG Intersection . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4 CSG Difference . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.5 CSG Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.6 CSG Pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.6.1 Co-incident Surfaces . . . . . . . . . . . . . . . . . . . . . 23 2 1 Our First Image We will create the scene file for a simple picture. Since ray-tracers thrive on spheres, that is what we will render first. 2 1.1 Understanding POV-Rays Coordinate System First, we have to tell POV-Ray where our camera is and where it is looking. To do this, we use 3D coordinates. The usual coordinate system for POV-Ray has the positive y-axis pointing up, the positive x-axis pointing to the right, and the positive z-axis pointing into the screen as shown in the figure 1 : Figure 1: The left-handed coordinate system This kind of coordinate system is called a left-handed coordinate system. If we use our left hands fingers we can easily see why it is called left-handed. We just point our thumb in the direction of the positive...
View Full Document

Page1 / 24

povray_tutorial1 - POV-Ray tutorial 20th June 2003 The...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online