Computer Graphics (CISC 440)

 

    • Sample code to test OpenGL (Project 1)

Steps to compile the code on Strauss

        1. run following command (or add to your .cshrc) (/opt/sfw/bin contains gmake)

            setenv LD_LIBRARY_PATH /home/base/usrb/chandrak/640/OpenGL/Mesa-2.6/lib:/usr/openwin/lib:/opt/gcc/lib

            set path = ($path /opt/gcc/bin /opt/sfw/bin)

strauss> gmake -f Makefile_composor

        1. run your code (Use ./hello if path not set properly)

strauss> hello

Steps to compile the code on stimpy

        1. run following command

            setenv LD_LIBRARY_PATH /usr/local/mesa/lib:/usr/openwin/lib

        1. download Makefile_stimpy and hello.c
        2. compile and run hello.c: (gmake is present in /usr/local/gnu/bin if not in your path already)

stimpy> gmake -f Makefile_stimpy

        1. run your code (Use ./hello if path not set properly)

            stimpy> hello

Steps to compile the code on windows

        1. Create and Empty project

        1. Add files

        1. Build and execute the program (Ctrl + F5 and F7)

 

·                    Skeleton code for Project 3 (transformations) (Due date: 10/25/2005, Scores will be sent out by: 11/08/2005)

·        Download Makefile and transformation.cpp for Strauss

·        Download Makefile_stimpy and transformation.cpp for Stimpy

·                    Data files for testing (2D polygonal data: same as the assignment 2 i.e. scan_poly*.txt)

  • Slides for Ray tracing (Oct 18, 2005) and (Oct 20, 2005)
  • A free option to connect to Strauss/Stimpy from home without having to install shareware X servers such as Exceed (www.vnc.com)
    1. Download the Windows viewer (vnc-4.0-x86_win32_viewer.exe) program to your PC/desktop
    2. Download the Solaris (vnc-4.0-sparc_solaris_2.5.tar.gz) to the home directory on Strauss/Stimpy
    3. Gunzip and untar the file

stimpy > gunzip vnc-4.0-sparc_solaris_2.5.tar.gz

stimpy > tar –xvf vnc-4.0-sparc_solaris_2.5.tar

    1. Start the vnc server running

stimpy > vncserver :25 (here 25 is the display number that I have selected)

    1. Connecting to vnc from the PC
      1. On executing the vnc-4.0-x86_win32_viewer.exe, your are prompted for connection details

Enter stimpy.cis.udel.edu:25 ( stimpy – since I have run the vnc server there and 25 since that was my display number)

      1. Enter the password that you have supplied
    1. You should now be connected to stimpy and your window manager should be visible

NOTE 1: VNC Free Edition and older VNC 3 based systems support a simple challenge-response protocol used to verify a password of up to eight characters, supplied by the connecting user. While this avoids exposing the password to attackers as would be the case with pure plaintext protocols such as telnet, the rest of the session is unencrypted and so anything typed into the viewer passes "in the clear" to the server. VNC Free Edition is therefore suitable for use within a local network or secure VPN, but not for general use over untrusted networks, such as the Internet.

NOTE 2: Making VNC more secure using SSH

http://www.uk.research.att.com/archive/vnc/sshvnc.html