SuperComputer Applications
Introduction to Modeling with Graphics
Trajectory Programs 1, 2, and 3 Spring 2004

  • 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)
    1. Look over: An Introduction to simulation

    2. Computer Simulation and Modeling: Graphics Modeling Project: Trajectory 1
      • 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").

    3. Trajectory Program 2: Elaborated trajectory program, see "8.0 Extensions to the Basic Model" (scroll down)
      Summarize what special things you did for part B (samples):
      • Bouncing of walls
      • Obstacles
      • Gravitational attractor
      • Wind effects
      • Landscape
      • Text output on the graphics screen
      • Other Special effects, special displays

    4. Trajectory Program 3: Computational trajectory program, see: "4.0 Expanding to a Supercomputer Application" (scroll down)
      • Plots all angles and velocities within a certain range
        • __ 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 or Gypsy Moth Simulation

    5. Helpful list of OpenGL Online resources

    6. To experiment with animated versions: see

    7. Spring 2002 Course Web Page (this is a good starter page for references)

    8. MPI script for GLUT (C) (don't forget to "chmod 755 Lgcc" to make this executable)

    9. 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