Gianfranco Doretto April 19, 2002 1 CS 174 Discussion 2 TA Gianfranco Doretto.

Slides:



Advertisements
Similar presentations
How to Use Stowe School District
Advertisements

Burning a Video or File to a CD 1.Double click on the Nero- Burning Rom icon on your desktop or go to “Start” > “Programs” > “ahead Nero” > “Nero Burning.
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
Empowering the Education Community to Improve Student Performance through the Intelligent Use of Practical Data EdGate Training: Part 3 - SchoolNotes.
Connecting Parents to Fulton County Schools
1 Unit & District Tools Phase 1. 2 To access the new Unit and District Tools, you will need to click on the link embedded in the MyScouting Flash page.
Using Macros and Visual Basic for Applications (VBA) with Excel
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
WELCOME TO SKYWARD EMPLOYEE ACCESS Step 1
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
Creating First Class Web Pages Log into your account.
UConn ECE is your opportunity to take UConn courses while still in high school. The UConn ECE courses you will take are equivalent to the same course at.
New Offline Password After initial login to the system, the offline version in located by clicking on the red Emergency button.
New Features Jan 2014.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Adding Websites to a Folder  Putting sites into an already existing folder Putting sites into an already existing folder  Adding an image on the icon.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
Bowling Green State University Facilities Services Staff References On the Web! June 2002.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Class Embedding maps on the listing page of your United Country office website.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
Search Empower Engage Send Print Co-Brand With BusinessBuilder.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
Associate ® Typist – Transcription Module Starting Associate Transcription: To start Associate typist module, double click the Associate dictation icon.
PowerPoint 1 The Basics 1. Save this file to your Apps Folder as YourLastName_PP1 2. Read each slide. 3. Complete each set of numbered directions.
NMU Voic Welcome to. This presentation will walk you through the setup and use of the NMU Voic system. Follow the step by step instructions.
Online Registration All returning students must have their parents respond to the link from TADS by January 28 th. Students will then be.
Setting Up DreamWeaver NOTE: Use your mouse OR page down key to advance each page.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first four.
Install and Setup VC++ and OpenGL Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
Ellsworth Publishing Company (888) Keyboard Short Course Part 2: Student Side (Screen-Based Version—No Textbook Needed) 20-minute, Self-Paced,
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
CS 450: COMPUTER GRAPHICS INSTALLING GLUT AND GLEW SPRING 2015 DR. MICHAEL J. REALE.
Using Skype to Communicate with Family and Friends Presented by: Karla Lechuga.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first 4.
Basic Instructions on how to use One Drive and share files. ONE Drive Your LogoYour own footer.
PowerTeacher with Web Grade Book Semester Classes School Year August 2012.
NEW FOR 2009 Faster, Easier, Friendlier. Before you start Any student, staff, or faculty member can file an accident/incident report. Accident reporting.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
MODULE 2 Microsoft® Windows 7 Chapter 1: Navigating around Windows Chapter 2: Managing Files and Folders Chapter 3: Working with Windows Settings, Gadgets,
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
How to Design a Page, Part 2 HOWE/ANDERSON. Step 1: Login   Job No  User ID/ Password.
NYS Division of Homeland Security And Emergency Services (DHSES) E-Grants Tutorial Creating an Application for the EOC RFP To access DHSES E-Grants you.
Online Registration All returning students must turn in their Tuition Contract, $300 registration fee, and Data Verification sheet by Monday,
CS 470 Computer Graphic Getting Started with OpenGL.
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
Starting Associate Dictation: To start the Associate Dictation double click the Associate dictation icon on your desktop or from the preferred link set.
Access to Webcasting Contents You may have access to the entire BRF TV contents through the Web and may view the programming through Live broadcasting.
Managing Your Computer Staff Development Day January 14, 2008 Presenter: Jenny Wallskog.
Word and the Writing Process. To create a document 1.On the Start menu, point to Programs, and then click Microsoft Word. A new document opens in Normal.
1E9 – Design 1- Autocad Scheduled labs Assignment Tutorial Interface Prof. S Pavía, Dept. of Civil Engineering, TCD.
A little PHP. Enter the simple HTML code seen below.
Return to the Welcome to Windows 7 web page Lesson 1: Getting Your First Look.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Excel Tutorial 8 Developing an Excel Application
A little PHP.
Editing Your Faculty Homepage
Word and the Writing Process
How to Use Members Area of The Ninety-Nines Website
Tutorial Introduction to support.ebsco.com.
Getting Started: Amazon AWS Account Creation
Dean of Administration
Tutorial Introduction to help.ebsco.com.
Presentation transcript:

Gianfranco Doretto April 19, CS 174 Discussion 2 TA Gianfranco Doretto

Gianfranco Doretto April 19, Reminders Sign and turn in the academic honesty policy: no homework will be graded if you do not do so! Let me know your preferred address (grading notification) Forward your Use the mailing list Keep an eye on the class website

Gianfranco Doretto April 19, OpenGL in the Lab For all your labs, you should NOT use any opengl or glut functions other than the ones already available in the sample program provided (opengl.cc) 1. login to NT box 2. click on “Xsession ugrad.seas” (Solaris) icon on the desktop 3. login again (same login name and password) 4. invoke a window manager (choose it from the option menu) 5. ftp or copy the skeleton.tar.gz tarball from local machine to your UNIX directory

Gianfranco Doretto April 19, OpenGL at Home download and unzip the file glutLibs.zipglutLibs.zip place the file glut.h in the folder C:\Program Files\Microsoft Visual Studio\VC98\Include\GL place the file glut.dll in the folder C:\WINDOWS\system32 place the file glut32.dll in the folder C:\WINDOWS\system32 place the file glut.lib in the folder C:\Program Files\Microsoft Visual Studio\VC98\Lib place the file glut32.lib in the folder C:\Program Files\Microsoft Visual Studio\VC98\Lib

Gianfranco Doretto April 19, UNIX Tutorial Have a look at the FAQ of the class web page

Gianfranco Doretto April 19, Submission guidelines Due: 4/25/2002 at 6:00pm No partial credit will be given to programs which cannot be compiled and tested on ugrad.seas (Solaris) submit a tarball: source code files, Makefile, input script files, README etc. Example: your files are located in $(HOME)/lab1 1) cd ~/ 2) tar cvf lab1.tar lab1 3) gzip lab1.tar 4) submit cs174 lab1.tar.gz After you hit the return key, a statement like "submission successful" will be printed on the screen

Gianfranco Doretto April 19, README file submit a README file with each lab, only if you are doing the extra credit stuff, or if you are doing something different from what is mentioned in the lab description handout. Also, mention what assumptions you have made to get your lab running.README 1. Your name appeared in UCLA record, 2. Your student ID, 3. Your preferred address 4. Your seas login ID, 5. Date and Lab number.

Gianfranco Doretto April 19, Surce files In particular, you must put down the following information at the top of each program file. 1. Your name appeared in UCLA record 2. Your student ID 3. Your preferred address 4. Your seas login ID 5. Date and Lab number

Gianfranco Doretto April 19, Makefile In case your makefile gives an error while compiling, try the following command from the command line (everything on one line): g++ -I/usr/local/glut-3.7b/include -I/usr/include - I/usr/local/gcc /include/g++-3 -I./ - L/usr/local/glut-3.7b/lib/glut - L/usr/lpp/OpenGL/lib -L/lib -L/usr/lib -lGLw - lGLU -lGL -lglut -lXm -lXt -lXext -lX11 -lXmu -lm -o opengl opengl.cc

Gianfranco Doretto April 19, What does the sample program do? It starts up a window of size 400x300, and clears it. Press the left mouse button  a dot is plotted Release the left button  another dot is plotted Press the right or the middle mouse button, a message is printed out k-q exits the program Bring up a larger or smaller window (“opengl " will bring up a window of size 500x500)

Gianfranco Doretto April 19, k-L (20%) Puts in line drawing mode. A line should be drawn between every two consecutive points you left-click on the window Midpoint algorithm works for slopes between 0 and 1 Generalizing the algorithm is your job!

Gianfranco Doretto April 19, k-P (30%) Puts in polygon drawing mode A line should be drawn between the current (left-clicked) point and previous (left-clicked) point. End the sequence of points using the right-click. Complete the polygon by drawing a line between the last point and the first point

Gianfranco Doretto April 19, k-C (10%) Clear the window

Gianfranco Doretto April 19, k-Q (10%) close the window and quit the program

Gianfranco Doretto April 19, Any other keys (10%) print out an appropriate message, notifying the user of the invalid key

Gianfranco Doretto April 19, Moving/rise window (20%) Your program should be able to handle lowering and raising of the drawing window. Basically, redraw the contents of the window whenever you raise or move your window You do not need to use dynamic data structures to store an indefinite number of objects (such as points, line, circles, polygons, etc.) If you want to add some more credits you can handle also the reshaping using the glutReshapeFunc() (look at the code posted on the web for an example that use this function)

Gianfranco Doretto April 19, Moving/rise window (20%) For the purposes of refreshing your screen (during redraw, etc.), you will need to store information about the lines, polygons, and circles. Assume an upper limit to each of these: max # of lines : 100 max # of polygons : 100 max # of lines per polygons : 25 max # of circles : 100

Gianfranco Doretto April 19, Extra credit k-F (10%) Fill the polygon with RED color

Gianfranco Doretto April 19, Extra credit: Circle drawing (10%) Add circle drawing functionality to your program Mark the center of the circle with a middle-click, then drag the mouse (holding the middle mouse button down), and release the middle mouse button, when you reach the size (radius) of the circle.

Gianfranco Doretto April 19, Demo Skeleton Example 1 Example 2 Example 3