BPC: Art and Computation – Fall 2006 A Brief Technical Review (with an update) Erik Brisson...

Preview:

Citation preview

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

ebrisson@bu.edu

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 4

Texture mappingTexture mapping

++

BPC: Art and Computation – Fall 2006 5

Sound mappingSound mapping

++

BPC: Art and Computation – Fall 2006 6

AnimationAnimation

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