COMP 110 Introduction to Programming Mr. Joshua Stough.

Slides:



Advertisements
Similar presentations
Internet and WWW CS216. Open System Interconnection (OSI)
Advertisements

Internet – Part I. What is Internet? Internet is a global computer network of inter-connected networks.
The Internet and the World Wide Web. Una DooneySlide 2Internet and WWW What is the Internet? This is the physical infrastructure or backbone of computers,
Chapter 3 Internet. Physical Components of the Internet Servers Networks Routers.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Internet…issues Managing the Internet
1 Networks & Data Representation Overview l Computer networks »Network connections »LANs »WANs l The internet. »Identifying computers on the internet »The.
The Web HTTP request HTTP response Your Machine Web Server Web browser sends a separate request for each object (e.g., embedded image) on the web page.
The Internet and the World Wide Web. Una DooneyThe Internet and WWWSlide 2 What is the Internet? A collection of networks (LANS and WANS) around the world.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
1 12Lecture 15 The Internet Overview  Internet / Intranet  TCP/IP  IP address  IP address Classes  Calculating the IP address  Domain Names.
1 Networking A computer network is a collection of computing devices that are connected in various ways in order to communicate and share resources. The.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Internet Basics.
Lesson 3: Introduction to Internet Technology
A global, public network of computer networks. The largest computer network in the world. Computer Network A collection of computing devices connected.
15-1 More Chapter 15 Goals Compare and contrast various technologies for home Internet connections Explain packet switching Describe the basic roles of.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 3: Introduction to Internet Technology.
Chapter 3 The Basics of Networking
Computer Networks  Network - A system of computers interconnected in order to share information.  Data transmission - consists of sending and receiving.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Lecturer: Ghadah Aldehim
1 Chapter 2 (Continued) Section 2.2 Section 2.2. Internet Service Provider (ISP) ISP - a company that connects you through your communications line to.
Chapter 4. After completion of this chapter, you should be able to: Explain “what is the Internet? And how we connect to the Internet using an ISP. Explain.
© 2006 Pearson Education 1  Obj: 1.2, to understand networks HW: Review sheet  Quiz next class Sections 1.0 – 1.2  Do Now: p.47 #1.4 and 1.5 C1 D3.
The Internet Writer’s Handbook 2/e Introduction to World Wide Web Terms Writing for the Web.
The Internet in Education Objectives Introduction Overview –The World Wide Web –Web Page v. Web Site v. Portal Unique and Compelling Characteristics Navigation.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
Web Page Design I Retest Terms Review. 1. Web pages are created using a language known as ___________. The coding of this language must follow specific.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
Copyright © 2002 Pearson Education, Inc. Slide 3-1 CHAPTER 3 Created by, David Zolzer, Northwestern State University—Louisiana The Internet and World Wide.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story describes.
 The World Wide Web is a collection of electronic documents linked together like a spider web.  These documents are stored on computers called servers.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources.
NETWORKING and the INTERNET
Communication, Networks, The internet and the Worldwide Web.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
Introduction to Internet. Chapter 1 Objectives Origins of the Internet Packets and Routers TCP/IP DNS HTTP URL Client-Server.
TCP/IP (Transmission Control Protocol / Internet Protocol)
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
1 A Computer Specification  Consider the following specification for a “simplified” personal computer: 950 MHz Pentium 4 Processor 512 MB RAM 30 GB Hard.
Internet Essentials. The History of the Internet The Internet started when the Advanced Research Projects Agency (ARPA) of the United States Defense Department.
Wel come –Prepared by: BHAVIN TANK MILAN VEGAD. What is the.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
HOW THE INTERNET WORKS. Introduction : The internet has brought revolutionary changes Has become a medium for interaction and information Can access to.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Internet Protocol Version4 (IPv4)
(class #2) CLICK TO CONTINUE done by T Batchelor.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
1 ** THE INTERNET ** Large, worldwide collection of networks that use a common protocol to communicate with each other A network of networks.
Introduction to the Internet
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Networking for Home and Small Businesses – Chapter 6
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Web Development & Design Chapter 1, Sections 4, 5 & 6
Networking for Home and Small Businesses – Chapter 6
I. Basic Network Concepts
1 Introduction to the Internet.
Lesson 3: Introduction to Internet Technology
Chap 2. Computer Fundamentals
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story.
Networking for Home and Small Businesses – Chapter 6
The Internet and Electronic mail
Presentation transcript:

COMP 110 Introduction to Programming Mr. Joshua Stough

What is Computer Graphics? At Least To a CS Major... Converting a set of models into an image –geometric model –lighting model –color model –... Not graphic design –no Photoshop Very mathematical –matrices, vectors (linear algebra is a must)

But, What's It Good For? Movies Video Games Medical Imaging Virtual Environments Scientific Data Visualization

Computer UNC UNC is one of the top computer graphics research universities. COMP 575 –prereqs: COMP 411 (computer organization), (linear algebra)

Graphics UNC Examples Office of the Future nanoManipulator Effective Virtual Environments (EVE)

Office of the Future Goal: Allow distant people to feel as though they are together in a shared office space

nanoManipulator Goal: Allows scientists to view and interact with objects (scaled up by 1,000,000:1) under a scanning-probe microscope Currently used by "real" scientists to study things like carbon nanotubes, DNA, adeno viruses, fibrin.

Effective Virtual Environments Goal: Allow a user in a virtual environment to interact naturally with virtual objects.

Jobs in Computer Graphics Bachelor's in CS –video game programmer VERY good grades, especially in graphics courses (COMP 575) Master's in CS –data visualization toolkit programmer –video game programmer –movie special effects programmer (at Pixar, etc) PhD in CS –all of the above + research Typical Job Path testing and support programmer designer architect management

Introduction to Graphics A picture or drawing must be digitized for storage on a computer A picture is broken down into pixels (picture element) –each pixel is stored separately –all pixels are square –every pixel in a picture is the same size Complete picture is stored by storing the color of each pixel

Pixels and Color A black and white picture can be stored using one bit per pixel –0 = white –1 = black one pixel

Carolina Blue: R172 G194 B227 Representing Color A color picture requires more information –every color can be represented as a mixture of the three primary colors red, green, and blue In Java, each color is represented by three numbers between 0 and 255 that are collectively called an RGB value –1 byte (8 bits) to store the contribution of each color (red, green, blue)

Basic Building Blocks A step up from the pixel is the line. How hard could it be to draw?

Line Drawing A line can be uniquely specified by two points A line can be specified by a slope, m, and a y- axis intercept, b Goal: construct the best possible approximation of an ideal line

Slope-Intercept Algorithm Start at one endpoint Compute dy/dx Increment –x by 1 –y by dy/dx Problem: Pixels are discrete (represented by integers not floating point) Solution: Bresenham's line drawing algorithm

Drawing Triangles A step up from the line is the filled triangle –3 lines for edges –many lines in between to fill in Filling the triangle is sometimes called scan conversion or rasterization

Model to Image Graphics Pipeline Modeling Transformation –model coordinates to world coordinates Illumination –how much light is reflected by a certain point on an object to the viewer View Transformation –center the picture at the viewer Clipping –which points are in the field of view Projection –take into account perspective Rasterization –what color each pixel should be (uses Bresenham line drawing)

Light Source Camera (Viewer)

Phong Illumination Model Approximates all reflections with three terms: –ambient –diffuse –specular

Ambient Not related to particular light source Not dependent on viewer's location –view independent Not affected by object's shape Examples: moonlight, dusk

Diffuse Reflects in all directions View independent Dependent on object's shape Dependent on location of light source Examples: chalk, tire

Specular See light source directly reflected on the surface View dependent Dependent on object's shape Dependent on location of light source Examples: mirror, shiny plastic, metal Lighting Demo

What is Networking? Basically, the transfer of data from one computer to another. In the Internet, data transfer is divided into packets.

But, What's It Good For File Transfer Web Pages Streaming Audio/Video Instant Messaging

UNC UNC is one of the top places for networking research –"up and coming“

UNC Examples Traffic Monitoring and Modeling –what does Internet traffic look like? –certain times of the year, we record the header information (size, when sent) of every packet leaving UNC don't worry -- it's anonymous Congestion Control –how to send packets most efficiently RTT Variability –why does one packet in a connection take so much longer to arrive than another packet?

Jobs in Networking BS –programmer –(+ various certifications) systems administrator / network administrator MS –developer / architect –mainly affects starting level PhD –research Typical Job Path testing and support programmer designer architect management

Internet Components local ISP company network regional ISP LAN –local-area network –home network, campus network WAN –wide-area network –connects multiple LANs over long distances

The Internet The Internet is a WAN which spans the entire planet –started as a US government project The word Internet comes from the term internetworking, which implies communication among networks Less than 600 computers were connected to the Internet in 1983; now there are many millions.

MCI (Verizon) Backbone

TCP/IP A protocol is a set of rules that determine how things communicate with each other Most of the software which manages Internet communication follows a suite of protocols called TCP/IP The Internet Protocol (IP) determines the format of the information as it is transferred The Transmission Control Protocol (TCP) handles lost information

Hi Do you have the time? Yes! It’s 2:00 TCP connection request Get Time Human protocols What time is it? Computer protocols What time is COMP 110? What is a Protocol? Example A specification for a set of message exchanges TCP connection reply

IP and Internet Addresses Each computer on the Internet has a unique IP address, such as: Most computers also have a unique Internet name, which is also referred to as an Internet address: bayou.unc.edu The first part often indicates a particular computer (bayou) The rest is the domain name, indicating the organization (unc.edu)

Domain Names The last section (the suffix) of each domain name usually indicates the type of organization: edu - educational institution com - commercial business org - non-profit organization Sometimes the suffix indicates the country: New suffix categories are being considered uk - United Kingdom au - Australia ca - Canada se - Sweden

Domain Names A domain name can have several parts –ex: unc.edu, cs.unc.edu, math.unc.edu Unique domain names mean that multiple sites can have individual computers with the same local name –ex: curie.cs.unc.edu, curie.duke.edu When used, an Internet address is translated to an IP address by software called the Domain Name System (DNS) There is no one-to-one correspondence between the sections of an IP address and the sections of an Internet address

Your Machine Your Friend's Machine SMTP Server (smtp.unc.edu) IMAP / POP Server (hotmail.com) Internet msg check msgs

The Web Base page size: 64 KB 33 embedded images –smallest: 43 B –largest: 20 KB

The Web HTTP request HTTP response Your Machine Web Server Web browser sends a separate request for each object (e.g., embedded image) on the web page Requests are usually much shorter than responses HyperText Transfer Protocol

The Web What Happens When You Click A Link? Browser examines the URL and determines the protocol and remote machine it must access –protocol = http –remote machine = (web server in the CS dept) Browser uses TCP/IP protocols to establish a connection with remote machine

The Web What Happens When You Click A Link? Once connection established, send HTTP message GET specifying page to access –GET ~stough/index.html Remote machine sends a copy of page to your browser using TCP/IP Your browser receives and displays its contents

Setting Up Your Web Page Choose "Subscribe to Services" Choose WWW –creates a public_html folder in your AFS space (H: drive) Anything you put in your public_html folder will be accessible at

index.html Use Notepad to create index.html –should be saved in your new public_html folder Sample: My Web Page My Web Page Welcome to my web page! I'm a student at the University of North Carolina at Chapel Hill.

index.html Another Sample My Web Page My Web Page Welcome to my web page! I'm a student at the University of North Carolina at Chapel Hill. In Fall 2007, I took COMP 110.

Interested in Web Programming? COMP 416 Taught in Fall Prerequisite: COMP 410

Medical Image Analysis