SuperComputer Applications
Introduction to Modeling with Graphics
Trajectory Programs, Fall 2003
Helpful list of
OpenGL Online resources
Spring 2002 Course
Web Page (this is a good starter page for references)
Lg++ script (C++)
(don't forget to "chmod 755 Lg++" to make this executable)
Lgcc script (C)
(don't forget to "chmod 755 Lgcc" to make this executable)
MPI script for GLUT (C)
(don't forget to "chmod 755 Lgcc" to make this executable)
- Computer Simulation and Modeling: Graphics Modeling Projects 1A-C Trajectory
Look over: An Introduction
to simulation
- Part 1A Trajectory
basic program,
or Gypsy
Moth Simulation
To experiment with animated versions: see
-
basicanimate.c, animation version of the curve plotting program
- basicanimate2.c
This one includes text on the graphics screen
- basicanimate3.c
This one demonstrates a Menu on the graphics screen
(also more
introductory programs)
- Your program needs at least the following features:
- __ Enter velocity and angle
- __ Show path of projectile
- __ Determine if the projectile hits the target
- __ Allow new input of velocity and angle to try again if a miss.
- Provide these links in your Project 1a website:
- __ Screenshot(s) of your program in action
- __ Description of the details of how your program works
- __ COMMENTED program code (Try to save the web version
file as "filename.txt").
- Part 1B Elaborated trajectory program, see
"8.0
Extensions to the Basic Model" (scroll down)
Summarize what special things you did for part B:
- Bouncing of walls
- Obstacles
- Gravitational attractor
- Wind effects
- Landscape
- Text output on the graphics screen
- Other Special effects, special displays
Provide these links to Project 1b website:
- __ Screenshot(s) of your program in action
- __ Detailed description of your program.
- __ List all the special features you've programmed
- __ Link to COMMENTED program code (Save the web version
file as "filename.txt").
- Part 1C Computational trajectory program, see: "4.0
Expanding to a Supercomputer Application" (scroll down)
Plots all angles and velocities within a certain range
Link to Project 1c website:
- __ Screenshot of your program
- __ Description of special computation algorithms you may have used
- __ COMMENTED program code (.txt version)
- For other types of computational programs, see
Iteration, Bifurcation, and Chaos
- ONTO 3D PROGRAMMING: Graphics Modeling Projects 2a,b 3D Programming
Proj. 2A, introductory 3D program with Transformations
- Project 2A - Basic 3D program
3D
Graphing in OpenGL
Program your own variation of one of the sample programs
MAKE AN ANIMATED SCENE ON YOUR WEBSITE!
See how
to make "animated gifs"
Links for your Project 2a website:
- __ Screenshot of your program in action
- __ Description of elements of your program
- __ COMMENTED program code
- Nate
Robbins tutorial on 3D Transformations, lighting, perspective (#7 on the
list)
- Project 2b, 3D Robot Program - Exercise in Transformations:
PROJECT 2B is OPTIONAL, Extra Credit
Translations, Rotations, Scalings
Construct-a-Robot/Transformer (or similar figure)
that has individually moving parts
- Basic design:
- Torso - connects to Head, Left and Right Upper arms, Left and Right Upper Legs
- Left and Right Upper Arms - connect to Left and Right Lower Arms
- Left and Right Lower Legs - connect to Left and Right Lower Legs
- Download robot1.c starter program.
- Middle mouse button ("both buttons" for 2-button mice): menu
- Left button: positive rotations
- Right button: negative rotations
- Download cylinder.c starter program.
- Draws a 5-sided "cylinder" + a triangle
- Translated 2 units along the z axis
- Use left and right buttons to rotate the cylinder
- NOTE: You can also construct another 3D object such as a
car, tank, pool table with pool balls, or some other shape
with movable parts
YOU CAN BE CREATIVE
Link to your Project 2b website:
- __ Screenshots of program in action
- __ Description of details of your program. What are the different
parts of the "robot" that you translated/rotated/scaled?
- __ COMMENTED program code (.txt version for easy web
access)