74
A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

Embed Size (px)

Citation preview

Page 1: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

A Tour of CS+E:Distance Collaboration and

3D Modeling

Prabhaker Mateti

Page 2: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 2

Two Topics

• Distance collaboration• 3D modeling

Page 3: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 3

Distance Collaboration Software

Helps groups of people on computers attached to a local-area network organize and develop their activities.

Page 4: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 4

Chat

• Lets you conduct real-time conversations via text, with as many people as you like.

Page 5: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 5

Groupware

Typically supports the following operations:

• Shared development of “work.”• Scheduling meetings ...• E-mail, telephone utilities, electronic

newsletters.• Protection for documents.• File distribution.

Page 6: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 6

Net Meeting

A real-time multimedia communications tool that can create a collaborative environment for geographically distant people. 

Page 7: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 7

Video and Audio Conferencing 

• Talk and write with people at distant locations while viewing them

Page 8: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 8

Whiteboard

• Shared canvas• Canvas content: text, drawings in

color• Real time view of the canvas

Page 9: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 9

Program Sharing

• Not file sharing• Share a program that you are

running on your machine with your collaborators.

• Retain control over the way they're used.

Page 10: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 10

Remote Desktop Sharing

• Operate a computer from a remote location.

• Are you the person you claim to be?

• Confidentiality of data in transit.• Real time update of the view of

remote desktop.

Page 11: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 11

3D Modeling

• CSG modeling• Surface modeling 

Page 12: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 12

CSG Modeling

- =

Page 13: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 13

Surface Modeling

Page 14: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 14

Surface Modeling

• Object solid internals are not completely expressed like in CSG.

• Concerned with building the outside shell of an object.

Page 15: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 15

Ray Casting

Ray casting traces a ray from the eye through a point on the object being viewed, and find intersections with all the objects in the scene.  The intersection that has the smallest z value determines the color of the pixel on the screen. 

Page 16: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 16

Ray Tracing

• Ray tracing goes further by reflecting the ray off the object and tracing it further, which may get reflected, and so on until it exits the scene or reaches the light source.  If the surface were transparent, an additional refracted ray is traced. 

• Ray tracing is a rendering technique that calculates an image of a 3D real world scene by simulating the way rays of light travel. 

Page 17: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 17

POV-Ray

Page 18: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 18

VRML Browser Plugins

• Virtual reality modeling language• Plugins for IE and Netscape

Page 19: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 19

Running VRML Examples

Page 20: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 20

Ray Tracing and VRML

• Not installed in our lab.• Several free versions on the Web:

– POV-Ray www.povray.org  – VRML2C.EXE www.microsoft.com– Contact 4.2 www.blaxxun.com

• Try them on your home PC!

Page 21: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 21

sPatch

Page 22: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 22

Poser by Metacreations

Page 23: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 23

Lab for Next Week

• Use Program Sharing• Use Desktop Sharing• Collaborate• “Construct” F1

Page 24: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 24

Our F1

Page 25: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 25

F1 rendered

Page 26: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 26

Page 27: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 27

United States 129.00Japan 32.80Germany 21.10UK 18.25

France 15.35Canada 11.75Italy 10.55China 8.26Australia 7.68South Korea 6.65

PCs in Use, 1998(in millions)

Page 28: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 28

U.S. Households with Personal Computers, 1996–2000(in thousands)

1996 2000

Total 35,388 55,487

IBM-compatible Windows 20,906 55,487

IBM-compatible non-Win 6,962 7,207

Apple Macintoshes 4,947 3,837

Other PCs 2,525 3,396

Page 29: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 29

Prices of Computers

• PCs for < $500• Supercomputers for $n00 million

Page 30: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 30

Computer Literacy for Non-engineers

• E-mail• Web surfing and design• Word processing• Spread sheet• Database• PC card replacement

Page 31: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 31

Computer Literacy for Engineers

• Scientific numerical calculations.• Symbolic computation.• Simulation.• 3D modelers.• Programming.

Page 32: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 32

Several Subject Areas

• Operating Systems• Computer Languages• Networking• Computer Graphics• Computer Architecture• Software Engineering• …

Page 33: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 33

Software and Hardware Products

• Requirements• Specifications• Design• Construction• Testing• Verification

Page 34: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 34

Operating Systems

• Every key press, every movement by the mouse --even by a single pixel-- goes through an OS

• The screen is drawn through an OS• Files are saved, deleted through an

OS• Every piece of hardware is under

the control of an OS.

Page 35: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 35

Operating Systems: Examples

• Windows 9x,NT,2000• Linux, Unix, Solaris, FreeBSD, …• Mac X• BeOS• VMS• …

Page 36: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 36

Os Market Share

May 2000

Page 37: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 37

What is anOperating System

• Typically a very large piece of software

• Controls all hardware elements:– CPU, RAM, HD, KBD, Mouse,…

• Device drivers, IO system, Virtual memory, Process management

Page 38: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 38

Computer Languages

• Grammatically strict languages• Java, C++, Pascal, FORTRAN• Compilers• Interpreters

Page 39: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 39

A Model in sPatchsPatchesversion 2visibility FALSEselection FALSEnum_points 898

1.000000 -0.750000 -1.5000007021 17 0

Page 40: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 40

Our F1

Page 41: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 41

F1 rendered

Page 42: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 42

Virtual Reality Modeling Language

#VRML V1.0 asciiSeparator { Material { diffuseColor 0.8 0 0 # r=.8 g=0 b=0 }

WWWAnchor { name

"http://www.cs.wright.edu/~pmateti/" Sphere { radius 1.0 }

} ...}

Page 43: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 43

A Model in POV

Page 44: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 44

Networking

• Ethernet• Local area network (LAN)• 100 Megabits/sec

Page 45: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 45

TCP/IP

• Internet protocol• UDP, ... • Example programs:

– Web browsers– Telnet, FTP, ...

Page 46: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 46

An IP Address

• Uniquely identifies a machine.• Four byte number.• 192.168.*.* are private.• Controlled assignment.

Page 47: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 47

Packets

• Message split into packets.• Each packet has source and

destination addresses.• Packets may arrive out of order at

the destination.

Page 48: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 48

Routers

• Routing = Discovering a path from source to destination.

• Changes because– Machines are down– Traffic congestion

• Highly specialized computers.

Page 49: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 49

Distributed Computing

• A class of parallel computers.• Use idle machines.• Individual computers reaching

limits on how fast they can be.

Page 50: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 50

Attacks, Break-ins

• Denial of service• Loss of money• Leakage of confidential data• Deliberate corruption of data• Firewalls, …

Page 51: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 51

Computer Graphics

• Production of pictures of the physical world on a computer screen

• Raster graphics• Vector graphics

Page 52: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 52

Ray Tracing

Page 53: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 53

Virtual Reality

• Immersive environments• Visualization + audio• Touch-based input and feed back• Smells … soon• Taste?

Page 54: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 54

Raster Graphics

• Even the drawing of a straight line is no longer simple.

• Old math of curves, planes, surfaces does not compute well.

• Screen = M x N rectangle of pixels.• Each pixel, RGB I, 32-bits or more.

Page 55: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 55

Bezier Curves

Page 56: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 56

Bezier Patches

Page 57: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 57

Computer Architecture

• Boolean logic: AND, OR, NAND gates

• Simple operations: + - * /• Skip over instructions• Binary numbers

Page 58: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 58

Design of ..

• CPU• Bus• RAM• IO devices

Page 59: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 59

Supercomputers

• Parallel Computers with shared memory

• Networks of workstations

Page 60: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 60

Moore’s Law

Page 61: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE

Moore’s Law • Price/performance• 1,000,000X boost in

last 20 years• 1,000,000X more in

the next 20 years• Likely to continue

for at least 40 years

Page 62: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 62

Software Engineering

• Software: Most complex artifact in human history

• Expensive• Labor intensive• Team management

Page 63: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 63

Lines of Code?

• How do we measure the quantity and quality of software?

• Lines of Code: Not a good measure

• No other widely accepted measures

Page 64: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 64

Page 65: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 65

Page 66: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 66

Lines of Code(in millions)

Windows 3.1 1992 3

Windows 95 1996 15

Windows 98 1998 18

Windows NT 3.x 1992 4

Windows NT 4.0 1996 16.5

Windows NT 5.0 1998 20

Windows 2000 2000 35

Solaris 1990+ 7

Linux ++ 2000 5

Page 67: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 67

Bugs

• Errors in … design, coding• Fact of life• No bug-free large program exists

Page 68: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 68

New, Revised, Better

• Creeping size• Need more RAM, faster CPU• Unclear if they are more bug-free• Features added• Looks better

Page 69: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 69

Nathan’s 3rd Law of Software

• That’s why people buy new hardware - economic motivator

• Will continue as long as there is opportunity for new software

• That’s why chips get faster at same price, instead of cheaper

Page 70: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 70

Programming Methodology

• Bug prevention• Designing correctly• Correctness verification• Generation of programs

Page 71: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 71

Object Oriented Programming

• A style of design• Java• C++

Page 72: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 72

Open Source

• Many eyes examining and improving the code.

• Learn by watching.• Cost

Page 73: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 73

Page 74: A Tour of CS+E: Distance Collaboration and 3D Modeling Prabhaker Mateti

January 19, 2001 Mateti, EGR191/CSE 74

Conclusion

• High Salaries!• Computer Science and Engineering

is an exciting field!