| |
|
|
|
Interested in ray tracing with Open Inventor?
Goto IVTrace to learn more.
| Open Inventor |
The bottom left image is
a screenshot of a little scene I created using gview, which is nice little
tool for building and debugging Inventor scene graphs. The bottom right image
is the same as above, but it was created using Open Inventor and C++.
Nothing too complicated, just a lot of tedious coding. The code to
generate image can be viewed below.
|
Some Real Open Inventor Code |
To the left are screenshots of a program written with the Open Inventor
libraries to animate a random number of Spheres bouncing around in a unit
Cube. The number of spheres created can either be controlled by a
command line argument or, if not specified, a random number will be
choosen. Every attribute of each sphere (radius, color, velocity,
initial location) are randomly determined at runtime in order to keep
things exciting. You may notice spheres that are touching each other are
yellow. I did not have time to try and incorporate physical laws on the
spheres so whenever they would normally bounce of each other they turn yellow. I also
have a link to a Quicktime
animation with 30 randomly bouncing spheres here.
Below are links to the C++ source code used to generate the animations.
There is a little story about how I was turned down for a job because I
did not know enough Open Inventor. I figured now was as good of as any
to start creating my own Nodes and actually keep with the Object Oriented
approach. So I created three classes which are subclasses of
SoSeparator. I don't think this is the absolute best way to create
Nodes, but it is a step in the right direction.
|
| All code
used to create these animations can be downloaded here -> hw07.tar.gz
|
|
|
|