Computer Graphics
CAP 4730

 

Fall 2000
Tuesday/Thursday 9:30am
103 Love Building
Dr. David C. Banks

 

Computer Graphics
Homework 12
3 hours
 
Copyright © 2000 David C. Banks

  1. 1.00 hours
    Open Inventor

    Skim through the Inventor Mentor, chapter 11 (File Format). Skim through chapter 15 (Draggers and Manipulators).

  2. 1.00 hours
    Draggers and Manipulators

    Here is a simple dragger.

      #Inventor V2.0 ascii
    
      Complexity  { value 1 }
      Font        { size 3 }
      AsciiText   { string "Hello world." }
      JackDragger { }
      Sphere      { }
    

    Save it as "jackDragger.iv" and try it out using ivview. Read the man page for sojackdragger. Be sure you know how to drag the jack by all of its parts.

    Here is a simple manipulator.

      #Inventor V2.0 ascii
    
      Complexity  { value 1 }
      Font        { size 3 }
      AsciiText   { string "Hello world." }
      JackManip   { }
      Sphere      { }
    

    Save it as "jackManip.iv" and try it out using ivview. Read the man page for sojackmanip. Be sure you know how to drag the jack by all of its parts.

    Read the man page for sodragger. At the bottom is a list of draggers. Make a different Inventor file for each of them.

    Read the man page for SoTransformManip. At the bottom is a list of manipulators. Make an Inventor file for each of them. Link them from your Web page.

  3. 1.00 hours
    Buttonfly

    Read the man page for "buttonfly" on the SGI.

    Save the following in a file called ".menu" in the directory where you saved the Inventor files above. Note that there are tabs, not leading spaces.

    Jack Dragger
    	netscape -remote 'openURL(http://www.cs.fsu.edu/~banks/courses/2000.3/homework/hw.12.html)'
    	jot    jackDragger.iv
    	ivview jackDragger.iv
    Jack Manipulator
    	ivview jackManip.iv
    

    If you named the files differently, edit the .menu to match them.

    Run "buttonfly" from within this same directory. You should see a window with buttons labeled for your two demos. Click them to run the demos.

    Edit your .menu to demo all the .iv files you created. Try it out. Take a screenshot of the buttonfly window and put it on your Web page.

    Link the .iv files from your Web page. Link your .menu .

  4. Extra Credit (100 points)

    Create c++ code that produces a scene with a dragger.

    Create c++ code that produces a scene with a dragger.

    Tar, gzip, and link from your Web page.

  5. Extra Credit (100 points)

    Create a .menu in your graphics directory with a button for each assignment you've done. In each week's homework directory, create another .menu file. You're making a nested buttonfly structure. Here's an example to get you started. Note the leading tabs.

    Pixels
    	.cd. hw00
    	.menu. .menu
    Filters
    	.cd. hw01
    	.menu. .menu
    

    Link the .menu files from your Web page.

  6. Extra Credit (100 points)

    Read the man page for toolchest. Create a VisLab line in the toolchest with menu elements for your individual buttonfly demos for each homework. Link the files from your Web page.