povtut - POVRAY Tutorial 204481 Fo undatio n o f Co mpute r...

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

View Full Document Right Arrow Icon
J ump to first page POVRAY Tutorial 204481 Foundation of Computer graphics Pradondet Nilagupta
Background image of page 1

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

View Full DocumentRight Arrow Icon
J ump to first page What is POV-Ray? POVRAY = Persistence of Vision Ray-Tracer POV-Ray is a high-quality, freely available ray-tracing software package that is available for PC, Maci ntosh and UNIX platforms. POV-Ray is no toy. POV-Ray is what is known as a "rendering engine".
Background image of page 2
J ump to first page Written POV-Ray language Describing scenes to POV-Ray is fairly simple Give POV-Ray a file containing a description of every object in the scen e. POV-Ray takes this file and genera tes a picture, which you can then vie w.
Background image of page 3

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

View Full DocumentRight Arrow Icon
J ump to first page Object description of POVRAY What type of object you want (one of POV-Ray's simple objects or one you've created yourself. Various attributes of the object (its color, how it reflects light, etc).
Background image of page 4
J ump to first page What is ray-tracing? Ray-tracing is a method of creating visual art in which a description of an object or scene is mathematically con verted into a picture. ray-tracing is the process of mathematically generating near-photo realistic images from a given descripti on of a scene via geometrical modelin g of light rays.
Background image of page 5

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

View Full DocumentRight Arrow Icon
J ump to first page POV-Ray's Coordinate Sys tem The coordinate system that POV-Ray uses, then, is called a three- dimensional (or 3D) Cartesian coordi nate system. The axis we have drawn is not fixed in POV-Ray -- the way the axis looks (in terms of which axes are which) re ally depends on where you place your camera in POV-Ray.
Background image of page 6
J ump to first page Vectors in POV-Ray The term vector refers to any group of numbers describing a certain thing -- there are color vectors and normal ve ctors. vectors are surrounded by angle brackets (that's < and >). For example, to specify the origin in terms that POV-Ray understands, we would say <0,0,0>
Background image of page 7

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

View Full DocumentRight Arrow Icon
J ump to first page How to describe color: RGB and RGBF Vectors In describing a color, each element of the vector corresponds to the amount of a prima ry color -- red, green and blue. Such a vector is called a RGB vector (for r ed g reen b lue ve ctor). In a RGB vector, the numbers should be between 0.0 and 1.0. For example, the color black, is described by the color vector <0,0,0>. And color white , is specified by the color vector <1,1,1>.
Background image of page 8
J ump to first page Normal Vectors normal vectors are used to specify an orientation , not a distance.
Background image of page 9

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

View Full DocumentRight Arrow Icon
J ump to first page Normal Vector (cont.) POV-Ray is kind enough to automatically define three normal vectors for you x (corresponding to <1,0,0>), the normal vector for a plane lying along the y and z axe s y (corresponding to <0, 1, 0>), the normal vector for a plane lying along the x and z axe s, z (corresponding to <0, 0, 1>), the normal vector for a plane lying along the x and y axe s.
Background image of page 10
J ump to first page POV-Ray Source Code There are three things you need to know about POV-Ray source code POV-Ray source code is case sensitive POV-Ray ignores whitespace Ordering is unimportant
Background image of page 11

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

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

Page1 / 92

povtut - POVRAY Tutorial 204481 Fo undatio n o f Co mpute r...

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

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