modeling csci 440 computer graphics based on chapter 9
TRANSCRIPT
![Page 1: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/1.jpg)
ModelingCSCI 440 Computer Graphics
based on Chapter 9
http://i0.wp.com/makezineblog.files.wordpress.com/2014/03/m83-video-game-plushies-3d-model.jpg
![Page 2: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/2.jpg)
The Modeling Problem
![Page 3: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/3.jpg)
Data Points
How can we create a model with 1000s of data points?
What information needs to be stored in these data files?1. coordinates2. organization of points: triangles, triangle fan, lines, …
3. normals4. texture coordinates
![Page 4: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/4.jpg)
Data Structure for Simple Scenes
Angel figures 9.2 and 9.3
![Page 5: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/5.jpg)
Complex Objects
![Page 6: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/6.jpg)
function render(){ gl.clear(…);
modelMatrix = rotate (angle[base], 0,1,0 ); drawBase(); modelMatrix = mult (modelMatrix, translate ( 0, baseHeight, 0)); modelMatrix = mult (modelMatrix, rotate ( angle[lowerArm], 0,0,1 ); drawLowerArm();
modelMatrix = mult (modelMatrix, translate ( 0, lowerArmLength, 0)); modelMatrix = mult (modelMatrix, rotate ( angle[upperArm], 0,0,1 ); drawUpperArm();
![Page 7: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/7.jpg)
Really Complex Objects
Angel figures 9.12 and 9.13
![Page 8: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/8.jpg)
Tree Traversal
Traversal Order? pre-order in-order post-order
Coding Method? manual traversal recursive traversal
Node Content?
![Page 9: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/9.jpg)
Scene Modeling
Angel figures 9.18
![Page 10: Modeling CSCI 440 Computer Graphics based on Chapter 9](https://reader036.vdocuments.net/reader036/viewer/2022062315/5697bfd11a28abf838cab514/html5/thumbnails/10.jpg)
Moral of Today's Story
• To model a complex scene you will need to either build a complex data management and rendering system, or learn a complex API that sits on top of WebGL.