150 likes | 256 Views
3D Virtual Campus. Michael Morris. Introduction. Graphics were my first interest This topic was an obvious choice. Project Description. 3D environment using C++ and OpenGL Using arrow keys, user can walk around and view the external features of the buildings on Westminster’s campus.
E N D
3D Virtual Campus Michael Morris
Introduction • Graphics were my first interest • This topic was an obvious choice
Project Description • 3D environment using C++ and OpenGL • Using arrow keys, user can walk around and view the external features of the buildings on Westminster’s campus Look-at position Eye position
Main Goal: Expandability • No realistic chance for complete product • Want others to be able to: • Add new buildings (campus center) • Simply add/modify properties • Add functionality
Separates building data from code Simpler to understand Problems No standard Errors abound Unnecessary info Scene Description Language (SDL) • Were some nice things (transformation matrices) • In retrospect, better to create own rather than modify existing SDL
Useful features • Perspective view • Plane class (for use in drawing grass) • Shading/Color • Overhead View
Three Main Features • Motion • Building Class • Preventing view from going into buildings
Motion • Forward/Backward • Left/Right Turns • Left/Right Strafe • Math involved • Standard methods • Trig and unit vectors Look-at position Eye position
Building Class • Started with cube • Added way to display roof • Fenestration • How to display it • How to represent it
q2 q1 z p2 eye position 1 x -1 1 p1 -1 Containing the View: Initial Idea
z 1 eye position x -1 1 -1 new eye position Containing the View: New Idea
Future Plans • Identify individual buildings • Richer building description process • Add textures • Transporter (Beam me up, Scotty)!