Constructive Solid Geometry Ray Tracing CSG Models

Slides:



Advertisements
Similar presentations
CSG and Raytracing CPSC 407.
Advertisements

Constructive Solid Geometry
Constructive Solid Geometry Mel Slater
3D modeling. Modeling and visualization Reality model Picture modeling Visualization.
1 of 25 Assignment Orthographic Wireframe Elevation Orthographic Wireframe Plan Orthographic Wireframe End-Elevation Perspective View.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
Chapter 11: Advanced Rendering Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Ray Tracing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
Representing Geometry in Computer Graphics Rick Skarbez, Instructor COMP 575 September 18, 2007.
12/06/00 Dinesh Manocha, COMP258 Solid Modeling CSG (Constructive Solid Geometry) Representations: A set theoretic Boolean expression of primitive solid.
CSE 681 Object Intersection. CSE 681 Object Representation Implicit forms F(x,y,z) = 0 Explicit forms Analytic form x = F(y,z) testing generating Parametric.
Ray Tracing 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009.
CSE 681 Ray Tracing Implicit Surfaces. CSE 681 Overview Similar to CSG –Combine primitive objects to form complex object Primitives are “density fields”
9-4 Geometry in Three Dimensions  Simple Closed Surfaces  Regular Polyhedra  Cylinders and Cones.
Surface Area and Volume
Geometric Solids A three dimensional figure that has three dimensions: length, width, and height. cylinder Rectangular prism cube pyramid cone.
Week 13 - Wednesday CS361.
CS 431/636 Advanced Rendering Techniques Dr. David Breen University Crossings 149 Tuesday 6PM  8:50PM Presentation 2 4/7/09.
Teaching descriptive and constructive geometry at the Department of Geometry Budapest University of Technology and Economics M. Szilvasi-Nagy Web-site.
SDC PUBLICATIONS © 2012 Chapter 8 Constructive Solid Geometry Concepts Learning Objectives:  Understand Constructive Solid Geometry Concepts  Create.
Graphics Graphics Korea University cgvr.korea.ac.kr Solid Modeling 고려대학교 컴퓨터 그래픽스 연구실.
PRESENTED BY – GAURANGI TILAK SHASHANK AGARWAL Collision Detection.
Copyright © Curt Hill Visualization of 3D Worlds How are these images described?
Representation and modeling of 3D objects (basic concepts) FMFI UK Katedra počítačovej grafiky a spracovania obrazu Marek.
3D Object Representations
Ray Tracing. 2 Introduction OpenGL is based on a pipeline model in which primitives are rendered one at time ­No shadows (except by tricks or multiple.
Chapter Area, Pythagorean Theorem, and Volume 14 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Procedural Models How to easily generate complex data?
FORM:  Uses a shape and adds “substance”-All forms are made up of one or more of the basic shapes in various combinations. (Three-Dimensional) A. Pyramid-
CS 480/680 Computer Graphics Compositing and Blending Dr. Frederick C Harris, Jr.
Solid Figures Vocabulary.
Geometrically Bounded Wireframe AIC (Part 510) Grouping of curves relevant for 3-dimensional wireframe modeling without topological constructs Elementary.
Volume and Solid Modeling
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
IT / API 1 CERN 1-Feb-16 GBLIB: classes to deal with geometrical data Evgueni Tcherniaev IT / API CLHEP workshop, January.
Kaleigh Cook. Acute Triangle A triangle for which all interior angles are acute.
Solid Modeling Prof. Lizhuang Ma Shanghai Jiao Tong University.
Solid Modeling Dr. Scott Schaefer.
CSE 681 Object Intersection. CSE 681 Object Representation Implicit forms F(x,y,z) = 0 Explicit forms Analytic form x = F(y,z) testing generating Parametric.
Surface Area of a Cylinder Geometry. Overview Find the area of a circle Find the circumference of a circle Find the area of rectangle Find the surface.
Volumize3d Volumize3d Training Lesson 2 - Assembly.
Lesson Plan: Drafting and Design J6-2. What is 3D solid modeling? How do 3D solid modeling programs work?
Anupam Saxena Associate Professor Indian Institute of Technology KANPUR
TECH 104 – Technical Graphics Communication Week 12: 3D Modeling Basics.
CS552: Computer Graphics Lecture 28: Solid Modeling.
Constructive Solid Geometry CSG (Geometri Padat Konstruktif)
Polyhedra and Prisms.
Unit 11: 3-Dimensional Geometry
3D Object Representations
3D Modeling in AutoCAD.
Licensed Electrical & Mechanical Engineer
Introduction to Implicit Modelling
11.4 Three Dimensional Figures
Unit 11: 3-Dimensional Geometry
Geometry in our world Name:.
Object Intersection CSE 681.
Object Intersection CSE 681.
Geometric Solids All bounded three-dimensional geometric figures. Examples: Sphere, Cylinders, Cubes, Cones, Pyramids, and Prisms.
Chapter 3 Constructive Solid Geometry Concepts
Vertical Angles Vertical angles are across from each other and are created by intersecting lines.
11.5 Explore Solids Mrs. vazquez Geometry.
MATH THS – Standard Geometry
Geometry Chapter : Exploring Solids.
14 Chapter Area, Pythagorean Theorem, and Volume
22. Surface area and volume
bell ringer What shape is the base of a cube? Sides?
Three-Dimensional Figures
Prof. Lizhuang Ma Shanghai Jiao Tong University
Presentation transcript:

Constructive Solid Geometry Ray Tracing CSG Models CSE 681

CSG Form object as booleans of primitive objects Primitives: sphere, cube, cylinder, cone Boolean operators: union, intersection, difference Tree structure used to manage operations Leaf nodes are primitive objects Intermediate nodes specify combination operator CSE 681

Union B C + C B Ray intersects union: at first intersection Min (tCmin, tBmin ) CSE 681

Possible ways for 2 spans to overlap CSE 681

Intersection B C ++ C B First time in B and in C If ((tCmin< tBmin ) and (tCmax> tBmin ) ): tBmin Else If ((tBmin< tCmin ) and (tBmax> tCmin ) ): tCmin Else: none CSE 681

Difference B C -+ C B If ((tBmin< tCmin ): tBmin Else if (tCmax< tBmax ): tCmax Else: none First time in B not in C CSE 681

Difference B +- C C B First time in C not in B If ((tCmin< tBmin): tCmin Else if (tBmax< tCmax ): tBmax Else: none CSE 681

Primitives Anything that can be intersected (easily) with a ray Conics: solve analytically using R(t) Convex polyhedra A plane (a cutting plane is useful) can be used as a modeling tool (boolean operations) surface model (e.g., polyhedron) computed from CGS or Can be used as a model representation keep tree structure and ray trace directly CSE 681

Controlling the Combinations + - + ? CSE 681

Tree Structure - - + T5 + + T4 + T3 T2 T1 rectangle rectangle circle CSE 681

Tree Structure #1 CSE 681

Tree Structure + - + T5 + + T4 - T3 T2 T1 rectangle rectangle circle CSE 681

Tree Structure #2 CSE 681

Tree Structure Intersect ray with leaf nodes (primitive objects) Combine intersection spans according to intermediate nodes union intersection difference Might create multiple spans CSE 681

Union of Spans CSE 681

Intersection of Spans CSE 681

Difference of Spans CSE 681

Normals of CSG intersections Normal of some surface (or its negation) Union or intersection: positive normal of intersected surface CSE 681

Difference normals Intersection is one of: tmin of positive object – normal of surface tmax of negative object – negated normal CSE 681

Add transformations to tree http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/model/csg.html CSE 681

Bounding Volumes - Construction Use bounding volumes at leaf nodes Union bounding volumes at interior nodes circle rectangle + - T1 T2 T3 T4 T5 Traversal Top-down Test bounding volume at interior CSE 681

Examples CSE 681

Examples CSE 681

Examples CSE 681