3D Objects Subject:T0934 / Multimedia Programming Foundation Session:12 Tahun:2009 Versi:1/0.

Slides:



Advertisements
Similar presentations
Computer Graphics An Introduction. What’s this course all about? 05/10/2014 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
Advertisements

Java ThreadsGraphics Programming Graphics Programming: Windows, Viewports & Clipping.
Concept of Modeling Model -- The representation of an object or a system Modeling -- The creation and manipulation of an object or a system representation.
Graphics Pipeline.
3D Graphics Rendering and Terrain Modeling
CHAPTER 12 Height Maps, Hidden Surface Removal, Clipping and Level of Detail Algorithms © 2008 Cengage Learning EMEA.
INTRODUCTION. Painting with numbers! Aspects Modeling Rendering Animation.
HCI 530 : Seminar (HCI) Damian Schofield.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Sep 21, Fall 2005ITCS4010/ Computer Graphics Overview Color Displays Drawing Pipeline.
IN4151 Introduction 3D graphics 1 Introduction 3D Computer Graphics part 1 Projective display Viewing pipeline Graphics hardware Image-based rendering.
(conventional Cartesian reference system)
X86 and 3D graphics. Quick Intro to 3D Graphics Glossary: –Vertex – point in 3D space –Triangle – 3 connected vertices –Object – list of triangles that.
Sep 21, Fall 2006IAT 4101 Computer Graphics Overview Color Displays Drawing Pipeline.
IAT 3551 Computer Graphics Overview Color Displays Drawing Pipeline.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
3D Concepts Coordinate Systems Coordinates specify points in space 3D coords commonly use X, Y, & Z A vertex is a 'corner' of an object Different coordinate.
Getting started © juhanita2015.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Introduction to 3D Computer Graphics and Virtual Reality McConnell text.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
3D Programming Concepts How objects are described in 3D and Rendering Pipelines – A conceptual way of thinking of the steps involved of converting an abstract.
CSE 381 – Advanced Game Programming Basic 3D Graphics
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Week 2 - Wednesday CS361.
Image Synthesis Rabie A. Ramadan, PhD 2. 2 Java OpenGL Using JOGL: Using JOGL: Wiki: You can download JOGL from.
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Textures and shadows  Generation  Mipmap  Texture coordinates,
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS 1 Shading (Shading) & Smooth Shading Graphics.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 Going-through.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
1 Virtual Reality Modeling Language (VRML97) ©Anthony Steed
Image Synthesis Rabie A. Ramadan, PhD 1. 2 About my self Rabie A. Ramadan My website and publications
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Geometric Modeling. Volumetric o Collection device obtains regular grid of measurement values Examples: CT, MRI, PET, Ultrasound o Values are interpreted/visualized.
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Vector Graphics Digital Multimedia Chap 이병희
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Mark Nelson 3d projections Fall 2013
Image Synthesis Rabie A. Ramadan, PhD 4. 2 Review Questions Q1: What are the two principal tasks required to create an image of a three-dimensional scene?
Basic 3D Concepts. Overview 1.Coordinate systems 2.Transformations 3.Projection 4.Rasterization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
2009 GRAPHICS : PROJECT 1 BASED ON DX9 BASICS. Documented by Dongjoon Kim SNU CS Ph.D Course Student Contact : NOTE.
CS COMPUTER GRAPHICS LABORATORY. LIST OF EXPERIMENTS 1.Implementation of Bresenhams Algorithm – Line, Circle, Ellipse. 2.Implementation of Line,
What are shaders? In the field of computer graphics, a shader is a computer program that runs on the graphics processing unit(GPU) and is used to do shading.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
Computer Graphics One of the central components of three-dimensional graphics has been a basic system that renders objects represented by a set of polygons.
Revision Sheet Computer Graphics and Human Interaction By Dr. HANY ELSALAMONY1.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Applications and Rendering pipeline
Graphics Pipeline Bringing it all together. Implementation The goal of computer graphics is to take the data out of computer memory and put it up on the.
Computer Graphics Overview
3D Graphics Rendering PPT By Ricardo Veguilla.
The Graphics Rendering Pipeline
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Game Programming Algorithms and Techniques
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

3D Objects Subject:T0934 / Multimedia Programming Foundation Session:12 Tahun:2009 Versi:1/0

Bina Nusantara Learning Outcomes In the end of this session, students must be able to: –Understand the basic principal of 3D objects

Outline 3D Coordinates systems 3D Models 3D Transformation 3D Rendering Java 3D API Bina Nusantara

Coordinate Systems Use x,y,z coordinates to represent a 3D object width, height, and length Left-handed coordinate system  x positive to the right Right-handed coordinate system (default for Java)  x positive to the left or z positive toward the viewer Bina Nusantara Y X Z Y X Z Y X Z

Object Coordinates Geometric center  the point in object where x,y, and z are all zero in values, usually located inside the object. Object coordinates start from its geometric center Bina Nusantara Y X Z

World Coordinates Coordinates that shows how the objects are located in relation to the 3D world they are in Bina Nusantara X Z Y

3D Model Vertices (Vertex for singular)  corner points of an object Edges  lines which connect the vertices Bina Nusantara Vertex Edge Hidden line Surface/face Hidden surface

3D Polygon A closed figure created by three or more vertices connected with edges Simplest polygon  triangle Complex 3D shapes can be decomposed into a collection of triangles, commonly called a mesh Bina Nusantara

Displaying 3D Model 2D Rendering 3D Rendering Transformation Modeling Create 3D model in object space Convert to world space coordinates Convert to view coordinates Convert to screen coordinates Bina Nusantara commonly called "eye space" or "camera space”. Objects are converted to view space to know what is visible on the screen. project the view coordinates into 2D coordinates that map directly to viewport (window or rectangle which limits the visibility of 3D world).

3D Transformation Position (translation) Size (scaling) Orientation (rotation) Shapes (shear) Bina Nusantara x’ y’ z’ tx ty tz xyz1xyz1 = * X Z t

Rendering Process of converting the 3D model into an on-screen 2D image Bina Nusantara Calculate the appearance of object’s different faces Convert faces into a 2D form Send the result to the video card

3D Rendering Techniques Flat shading Lambert shading Gouraud shading Phong shading Texture mapping Bump mapping Cel shading Raytracing Radiosity And so on … Bina Nusantara

Scene Graph Maintains information about all entities in the 3D world in structures called nodes Group nodes contain information about themselves and point to other nodes (descendants) Leaf nodes contain only information about themselves and have no children Bina Nusantara

Scene Graph Bina Nusantara Scene Terrain Player1 Land LightingGeometryTransform Sea LightingTransform Sky LightingTransform Player2 Man LightingGeometryTransformAudio Man LightingGeometryTransformAudio

Java 3D API Enables the creation of three-dimensional graphics applications and Internet-based 3D applets. Provides high-level constructs for creating and manipulation 3D geometry and building the structures used in rendering that geometry. Bina Nusantara

Sample Code Bina Nusantara Create 3D canvas Create The 3D World

Sample Code Bina Nusantara Create Background The 3D World

Sample Code Bina Nusantara Prepare color for the ball Prepare The Texture for the ball

Sample Code Bina Nusantara Prepare appearance for the ball by including The color and Texture Create The ball

Sample Code Bina Nusantara Prepare PointLight for lightning effect

Sample Code Bina Nusantara Adding component to The Universe

Sample Code Bina Nusantara Setting action for application

Sample Code Bina Nusantara Rotate The Ball Result

References Java 3D API Tutorial D Game Programming All in One. Finney, Kenneth C Ch 3. 3D Basic Graphics Pipeline Digital_VIZ/VideoLectures/PptLecturePdfs/GraphicsPipelineAlgorith mic_12sep08.pdfhttp:// Digital_VIZ/VideoLectures/PptLecturePdfs/GraphicsPipelineAlgorith mic_12sep08.pdf Java 3D Tutorial Combining Rotation and Translation in Java 3d Creating a 3D Universe with Java3D Bina Nusantara