3D Interactive Model of Carletons Campus - PowerPoint PPT Presentation

1 / 26
About This Presentation
Title:

3D Interactive Model of Carletons Campus

Description:

Specular. Position. Surface Properties. Diffuse. Ambient. Specular. Emission {Red, Green, Blue, Alpha (transparency) } Lighting Disabled ... – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 27
Provided by: Carl144
Category:

less

Transcript and Presenter's Notes

Title: 3D Interactive Model of Carletons Campus


1
3D Interactive Model of Carletons Campus
  • Paul Wilmes, Ed Williams, Henry Gross, Deborah
    Chasman
  • Advisor Professor Jack Goldfeather

2
The Campanile Movie UC-Berkeley
Source Paul Debevec and his research group.
http//www.debevec.org/Campanile/
3
Our Tasks
  • Compile a library of primitive objects
  • Design class hierarchy
  • Build editing software to assist in model
    creation
  • Create an interactive viewer
  • Make a model of Carleton!

4
Outline
  • The Model
  • The Viewer
  • Movement
  • Textures and Lighting
  • The Editor
  • Demonstrations
  • Future Plans

5
The Model Class
  • Contains sub-Models
  • Contains ComplexObjects
  • Allows interaction with model
  • File I/O
  • Drawing
  • Transformation
  • get/set commands

6
Primitive Objects
  • Collection of vertices
  • Instructions for connecting the vertices to form
    faces
  • Transformations from the unit version

7
Complex Objects
  • Any Complex or Primitive object or collection
    thereof
  • ComplexObject
  • Anything in the .co directory
  • PrimitiveObject
  • PrimitiveCube
  • PrimitivePyramid
  • PrimitiveCone
  • PrimitiveSphere
  • PrimitiveCylinder
  • PrimitiveHalfCube
  • PrimitiveRoof
  • PrimitiveHalfCylinderWall
  • PrimitiveThickHalfCylinderWall

8
Transformations
  • Transformation Class
  • Translation, Rotation, Scale
  • Matrix
  • Matrix4x4f Class

Transformation Matrix
Original Vertex
Transformed Vertex
9
Model Directory Structure
  • Main Folder
  • .co Complex Object directory
  • Special Model files read in as ComplexObjects
  • Model Files
  • Objects that are part of the model
  • (Other subdirectories)
  • (Model Files)

10
Viewer
  • Viewer
  • Overarching class
  • Contains non-GL specific data
  • GLViewer
  • Handles all GL activity

11
Viewer
  • Interaction
  • Takes all input and calls the appropriate
    functions
  • InteractionListener
  • Key/Mouse Listener for easy binding to
    Interaction
  • Holds all functions for dealing with key binding

12
Viewer
  • Console
  • Text-based way of sending commands directly to
    interaction
  • Options
  • GUI access to common interaction commands

13
Lighting
  • Light Properties
  • Diffuse
  • Ambient
  • Specular
  • Position
  • Surface Properties
  • Diffuse
  • Ambient
  • Specular
  • Emission

Red, Green, Blue, Alpha (transparency)
14
Yellow Sphere Surface Ambient and Diffuse 1 1
0 0 Default Ambient Light Setting .2 .2 .2 0
White Diffuse Light 1 1 1 0
Lighting Disabled
Red Diffuse Light 1 0 0 0
Green Diffuse Light 0 1 0 0
Blue Diffuse Light 0 0 1 0
15
Textures
  • Each face can have associated texture
  • Texture can by any standard image format
  • .bmp, .jpg, .gif
  • Image must be 2n x 2m

16
Textures
  • Map co-ordinates of the image onto each vertex of
    the face you are drawing the texture on

17
Carleton without textures Carleton with
textures
18
Editor
  • (Preditor)

19
Organization
  • Provides the graphical interface through which
    the user can interact with the underlying Model.
  • Ships the changed model off to the Viewer.

20
Software Goals
Create Objects and Models
Modify those creations -Apply transformations -Col
or -Texture -Intuitive/flexible/tactile
interface for transformation
Be Aware of Current State of Model -See
attributes of current selection -Tree for
selection -Visual feedback from viewer
21
Swing
  • GUI (graphical user interface) toolkit for Java
  • Listens for actions performed on the interface
  • Text entry, button presses, slider movement, tree
    selection

22
(No Transcript)
23
Demo Time!
24
Features for the Future
  • Collision Detection
  • More object types with more options
  • Support for splines (for terrain)
  • More transformations (such as skewing)
  • Network functionality
  • Performance improvements
  • Update the project to work for newer versions of
    Java
  • More detail

25
Acknowledgements
  • Professor Jack Goldfeather
  • Meg Gibbs
  • Mike Tie

26
Questions?
Write a Comment
User Comments (0)
About PowerShow.com