bpc: art and computation – fall 2006 a brief technical review (with an update) erik brisson...
Post on 19-Dec-2015
217 views
TRANSCRIPT
BPC: Art and Computation – Fall 2006BPC: Art and Computation – Fall 2006
A Brief Technical Review (with an A Brief Technical Review (with an update)update)
Erik Brisson
BPC: Art and Computation – Fall 2006 2
Designing a Virtual EnvironmentDesigning a Virtual Environment
Tools introduced so far– Definition of geometry
• Rectangles, cylinders, cones
– Texture mapping– Sound mapping – Animation
BPC: Art and Computation – Fall 2006 3
Defining geometryDefining geometry
hquad, 2, 2, 4, 2, 4, 4, 2, 4, 0hquad, 2, 2, 4, 2, 4, 4, 2, 4, 0vrect, 2, 5, 4, 5, 2vrect, 2, 5, 4, 5, 2vrect, 4, 5, 4, 7, 2vrect, 4, 5, 4, 7, 2vrect, 4, 7, 2, 7, 2vrect, 4, 7, 2, 7, 2vrect, 2, 7, 2, 5, 2vrect, 2, 7, 2, 5, 2vcyl, 0, 2, 0.5, 3vcyl, 0, 2, 0.5, 3vcone, 2, -5, 1, 2vcone, 2, -5, 1, 2vrect, -1.5, -3, 0, -3, 2vrect, -1.5, -3, 0, -3, 2vrect, 0, -3, 2, -1, 2vrect, 0, -3, 2, -1, 2vrect, 2, -1, 0.5, -1, 2vrect, 2, -1, 0.5, -1, 2vrect, 0.5, -1, -1.5, -3, 2vrect, 0.5, -1, -1.5, -3, 2hquad, 2, -5, 4, -3, 2, -1, 0, -3, 2hquad, 2, -5, 4, -3, 2, -1, 0, -3, 2
BPC: Art and Computation – Fall 2006 7
Geometry – objects need namesGeometry – objects need names
““hq1”, hquad, 2, 2, 4, 2, 4, 4, 2, 4, 0hq1”, hquad, 2, 2, 4, 2, 4, 4, 2, 4, 0““r1”, vrect, 2, 5, 4, 5, 2r1”, vrect, 2, 5, 4, 5, 2““r2”, vrect, 4, 5, 4, 7, 2r2”, vrect, 4, 5, 4, 7, 2““my_favorite”, vrect, 4, 7, 2, 7, 2my_favorite”, vrect, 4, 7, 2, 7, 2““another_rect”, vrect, 2, 7, 2, 5, 2another_rect”, vrect, 2, 7, 2, 5, 2““cilly_cyl”, vcyl, 0, 2, 0.5, 3cilly_cyl”, vcyl, 0, 2, 0.5, 3““cone1”, vcone, 2, -5, 1, 2cone1”, vcone, 2, -5, 1, 2““r5”, vrect, -1.5, -3, 0, -3, 2r5”, vrect, -1.5, -3, 0, -3, 2““r6”, vrect, 0, -3, 2, -1, 2r6”, vrect, 0, -3, 2, -1, 2““r7”, vrect, 2, -1, 0.5, -1, 2r7”, vrect, 2, -1, 0.5, -1, 2““r8”, vrect, 0.5, -1, -1.5, -3, 2r8”, vrect, 0.5, -1, -1.5, -3, 2““hq2”, hquad, 2, -5, 4, -3, 2, -1, 0, -3, 2hq2”, hquad, 2, -5, 4, -3, 2, -1, 0, -3, 2