I've written a little demo of the classic physics demonstration "Shoot the
Monkey." It is available from this page:
http://unix.cap.american.edu/~jwk/class/monkeyshoot.html
Bruce, thanks for your reply about implementing new shapes. I can't
understand the difficulty in implementing opacity for shapes. Wouldn't you
just change the color value under the one you're plotting, instead of
replacing it?
Thanks also to Shuan for his instructions about hacking your own shapes into
the C++ code. I wish I had time to work on developing the VPython library
(it's fun stuff), but at present I'm overbooked with a full teaching load,
as well as a job search for after the semester.
In case anyone else out there has the time. Other ideas for shapes to
implement are the Platonic solids. Other ideas you might grab from the COG
radiation transport package, which implements a pretty complete set of
space-bounding surfaces. The manual is available here:
http://www-phys.llnl.gov/N_Div/COG/Manual/COG_ToC.html
Look under the "SURFACES Data Block" section about a fifth of the way down
the page.
JK
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
|