Computer Graphics (CISC 440)

 

    • Sample code to test OpenGL (Project 1)
      1. Steps to compile the code on Strauss
        1. run following command
          setenv LD_LIBRARY_PATH /home/base/usrb/chandrak/640/OpenGL/Mesa-2.6/lib:/usr/openwin/lib (This is present as a comment in the Makefile)
        2. download Makefile and hello.c
        3. compile and run hello.c:

strauss> make -f Makefile_composor

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

strauss> hello

      1. Steps to compile the code on stimpy
        1. run following command
          setenv LD_LIBRARY_PATH /usr/local/mesa/lib:/usr/openwin/lib
        2. download Makefile_stimpy and hello.c
        3. compile and run hello.c:

stimpy> make -f Makefile_stimpy

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

            stimpy> hello

NOTE (for Strauss users) : The makefile has been modified so as to use g++ instead of cc (Thanx Parag!!!). Two extra commands need to be executed before compiling (commands are present in the Makefile as comments)

·        LD_LIBRARY_PATH now also requires the libstdc++ which is available at /opt/gcc/lib. So either execute the following command or add it as a line in .cshrc

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

·        Add the g++ executable which is available at /opt/gcc/bin to the path. Execute the following command command or add it as a line in .cshrc

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

 

  • 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

 

NOTE 3: All ECE/CIS undergraduates and can apply for an account on the ACAD/ECL machines for computation, if it is not available already. This can assuage the disk quota problem on strauss.