spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / 3d / lesson5

Lesson 5 - Lights, Camera, Render! - Part 1

Developer News
Sir Tim Talks Up Linked Open Data Movement
From L.A. to Vegas With 100GbE
Salesforce Rolls Out Big Summer '08 Update

Recall that deep question of philosophy which ponders whether a tree, falling in a deserted forest, makes a sound. Just so, our 3-D models can't be seen unless there is someone there to see them. In this case, however, that "someone" is not a person, but a hypothetical camera, and the process of seeing is called RENDERING. We have taken the rendering process for granted thus far in these tutorials, suggesting for simplicity that we just create 3-D models and look at them. But the models themselves are just the data necessary to produce a rendered image, and the rendering process itself is half the story.

To strip the rendering process to its bare essentials, a hypothetical camera is placed in the same 3D coordinate space that contains our models. It therefore has a location in (x,y,z) coordinates. It is a single point that represents the spot from which an "eye" looks at the scene, and so it is often called the viewpoint. Like a real eye and real camera, it must have an orientation. It must be looking in a certain direction. And it must also have an field of vision, an angle projecting out from the viewpoint. Objects that fall within this angle can be seen, and those falling outside it cannot. This is all exactly like a real camera and like our own eyes, although a camera with a zoom lens can expand and contract its field of vision without moving the camera itself. So can our hypothetical camera in 3-D coordinate space.

In the rendering process, the camera "takes a picture" of the objects in the scene as seen from the camera's viewpoint, given its direction and field of view. The rendering is achieved mathematically, by tracing lines from the vertices of all the polygons in all the objects in the scene back to the viewpoint of the camera. This enables the "rendering engine," as the software that produces the rendering is often called, to reconstruct the polygons as they would be projected on a flat surface, just as light is focused though the center of a camera lens onto the film plane. A major aspect of this process is determining which polygons (surfaces) on the objects are obstructed by other polygons from the camera's viewpoint. Surfaces that are behind other surfaces obviously should not be rendered.

Once the rendering engine has determined which polygons are visible and how they should be projected on the rendering surface, called the "viewing plane," they must be drawn as pixels to produce a bitmap. Each pixel in a bitmap must be assigned a color. How does the rendering engine assign a color?

Here we approach one of the most fascinating aspects of 3-D graphics. 3-D graphics applications model reality in two distinct ways. The most obvious is in geometry. A 3-D object is no mere flat representation, but rather like a sculpture that can be viewed from different directions to reveal its full three-dimensional substance. But 3-D graphics also models the way that light interacts with objects and with our eyes. Objects don't have just a color the way they do in painting and 2-D computer graphics. They have surface qualities that reveal themselves under the particular lighting in the scene. If there is no lighting, the object is rendered black regardless of what color it would appear in light.

To Continue to Parts 2 and 3, Use Arrow Buttons

Comments are welcome


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Book Review: Head First JavaScript · Web Hosting Control Panels · Use Your Blog for Fast Search Engine Rankings
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
NetApp's Virtual Storage Strategy Crystallizes · F/MC Watch: A Cisco-Centric Approach · Olympic Time Trials Use Wi-Fi Mesh

and brought to you by webreference.com

Created: Mar. 25, 1997
Revised: Apr. 22, 1997

URL: http://webreference.com/3d/lesson5/