<< Chapter < Page Chapter >> Page >

In computer graphics, ray tracing is a technique used to project three dimensional space onto a two dimensionalplane as seen from an eye point. The basic ray tracing algorithm is to fire a ray from the eye point through every pixel in thedisplay. If the ray intersects something in the scene, keep the closest intersection point and calculate the intensity at thatpoint. The following novel algorithm which we designed, the Stochastic Gain Control operator, was inspired by distributed ray tracing.

Ron Goldman, “Lecture 17: Recursive Ray Tracing” (Houston: Rice University, 25 Oct 2006) 1.
One problem though is that, since each pixel really represents a fixed area of the sceneinstead of a fixed point, one sample for the whole pixel may not capture all of the information in that area. This leads to jaggededges often called aliasing.
Arnold Martin, “Distributed Ray Tracing” (Worcester: Worcester Polytechnic Institute, 1999)<http://www.owlnet.rice.edu/~comp360/lectures/RayTracing.pdf>.
Therefore, anti-aliasing techniques are used to soften the edges in a raytracer.

One such technique is called supersampling. By firing multiple, evenly spaced rays over the pixel area, theintensities calculated for each ray are averaged to find the overall intensity in the pixel.

Donald Hearn and M. Pauline Baker, Computer Graphics (2nd ed. Englewood Cliffs: Prentice Hall, 1994)538-9.
This is similar to the Pattanaik-Yee Adaptive Gain Control operator. Unfortunately, by uniformly sampling each pixel,the image may appear blurry in some parts or have rigid variations in other parts. This can be solved by using distributed raytracing.

In distributed ray tracing, rays are randomly fired over a finite pixel area and then averaged together. Surfacelighting is usually defined as multiple integrals, so using a Monte Carlo method to sample the integrand at randomly chosen pointsresults in a better approximation. While the aliasing is removed, it will lead to a small amount of noise in the picture, but overallthe picture quality will be improved.

Hearn 541.

Using this idea, modifications can be made to the averaging local operator. As the window sweeps across theimage, randomly selected pixels are averaged together. Since the pixels are randomly selected, the same pixel may be selected morethan once. Thus, some pixels are weighted more than others. This acts as a weighted pixel mask or pseudo Gaussian filter.

If only one pixel is randomly selected inside the window, the resulting image will be very blurry. This makessense because while sliding the window the same pixel may have sampled repeatedly and at the same time failed to sample others. Asthe number of pixels selected increases, the image becomes sharper and sharper compared to the image produced by the Pattanaik-YeeAdaptive Gain Control operator. However, if more than 125% of the pixels in the window are selected, there will be no noticeablechange.

1 pixel sampled from a 3-by3 pixel window
5 pixels sampled from a 3-by3 pixel window
10 pixels sampled from a 3-by3 pixel window

Questions & Answers

if three forces F1.f2 .f3 act at a point on a Cartesian plane in the daigram .....so if the question says write down the x and y components ..... I really don't understand
Syamthanda Reply
hey , can you please explain oxidation reaction & redox ?
Boitumelo Reply
hey , can you please explain oxidation reaction and redox ?
Boitumelo
for grade 12 or grade 11?
Sibulele
the value of V1 and V2
Tumelo Reply
advantages of electrons in a circuit
Rethabile Reply
we're do you find electromagnetism past papers
Ntombifuthi
what a normal force
Tholulwazi Reply
it is the force or component of the force that the surface exert on an object incontact with it and which acts perpendicular to the surface
Sihle
what is physics?
Petrus Reply
what is the half reaction of Potassium and chlorine
Anna Reply
how to calculate coefficient of static friction
Lisa Reply
how to calculate static friction
Lisa
How to calculate a current
Tumelo
how to calculate the magnitude of horizontal component of the applied force
Mogano
How to calculate force
Monambi
a structure of a thermocouple used to measure inner temperature
Anna Reply
a fixed gas of a mass is held at standard pressure temperature of 15 degrees Celsius .Calculate the temperature of the gas in Celsius if the pressure is changed to 2×10 to the power 4
Amahle Reply
How is energy being used in bonding?
Raymond Reply
what is acceleration
Syamthanda Reply
a rate of change in velocity of an object whith respect to time
Khuthadzo
how can we find the moment of torque of a circular object
Kidist
Acceleration is a rate of change in velocity.
Justice
t =r×f
Khuthadzo
how to calculate tension by substitution
Precious Reply
hi
Shongi
hi
Leago
use fnet method. how many obects are being calculated ?
Khuthadzo
khuthadzo hii
Hulisani
how to calculate acceleration and tension force
Lungile Reply
you use Fnet equals ma , newtoms second law formula
Masego
please help me with vectors in two dimensions
Mulaudzi Reply
how to calculate normal force
Mulaudzi
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Elec 301 projects fall 2006. OpenStax CNX. Sep 27, 2007 Download for free at http://cnx.org/content/col10462/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Elec 301 projects fall 2006' conversation and receive update notifications?

Ask