| Circle Samples |
50 Sampled Points

500 Sampled Points
 |
These are gif
images of randomly sampled points along a circle. Images were generated
with the program circleSamples.cpp. It used the
following class files...
When the images were created each circle was located
at the origin with a radius of 150 pixels.
|
Sphere Samples |
500 Sampled Points

5000 Sampled Points
|
This is an example output from the program sphereSamples.cpp. Which uses...
It is similar
to the above put now we are dealing with 3D space.
The images are a
screenshot from an Inventor file, however, if you have CosmoPlayer
installed you can view the VRML files
|
Ray Casting |
5000 Rays

50000 Rays
|
I had trouble with this section at first, but it turned out I was making a
really stupid mistake (who would of thought it). The smaller sphere is
randomly shooting rays out in any one direction. When a ray hits the big
sphere a blue sphere is placed on the intersection point and a red sphere at the point
where the ray originated.
I used the program rayCast1.cpp. Which
uses...
If you have CosmoPlayer
installed you can view the VRML files for both the 5000 and 50000
examples.
|
| All code
used to create these images can be downloaded here -> hw05.tar.gz
|