Download presentation
Presentation is loading. Please wait.
Published byJoella Jennings Modified over 8 years ago
1
B A T I C 3 S Structure of the visual model Stephane MALANDAIN and Pierrick ZOSS June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 1
2
2 Introduction ● 3D engine : overview of the visual model structure ● Approach of the 3D modelisation ● Proposal for the semantics and hierarchic representation of the visual model ● Case study : The Drink Vending Machine ● Problems, open questions : Discussion
3
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 3 3D engine ● Java & JOGL ● 3 packages : – batic3s – toolbox – toolbox.object3D Batic3s - Renderer Camera - Color - FpsCounter - SpriteDrawer TextureReader - TextureCollection - Vector3D Object3DStructure - Object3D Object3DDrawer - Object3DLoader Object3DLoaderFromDatabase Object3DMaterials - Object3DNode
4
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 4 3D engine ● package toolbox.Object3D – some fields of the class Object3DStructure : – some methods of the class Object3D : Vector3D[] points Face[] faces Vector3D[] normals setObject3DStructure (Object3DStructure myObject3DStructure) setScale (Vector3D scale) setRotation (Vector3D rotation) setTranslation (Vector3D translation) setVisible (boolean visible)
5
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 5 Modelisation ● Wings 3D – Modeling – Export to OBJ
6
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 6 Modelisation ● Structure of an OBJ file
7
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 7 Approach of the 3D representation (1) ● GOAL : describe the geometry of the system in order to represent it ● Using a database (MySQL 5.0) in a static way ● Store elementary object in it as instances or as 'classes' ● All the component are load in the 3D engine from the database ● Possibility to define one or more collection of object, for the same or not system ● Avoid to creat each time elementary object by instanciation of object 'classe'
8
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 8 Approach of the 3D representation (2) ● An object is composed with the following elements : – A basic description structure with a name, and eventually a texture. It can be seen as an object classe – Many faces, which are defined by the coordonnees of 3 points, 3 normales and 3 textures. – A set of possible transformation (rotation, translation and scale) ● According to that rule, we define and implement the following model in the database (will be augmented for set and collections) :
9
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 9 The 3D representation (3) Current relationnel model of the database.
10
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 10 The 3D representation (3) ● The database is populate by.obj files, but without hierarchical structure of the system. ● With such database it's easier to define collections, logical, physical (or else) set of objets. ● For the same object with differents positions, we only need to define one. ● Easy to work on it instead on.obj files. ● Hierarchical structure need to be represent. This explain the table at left of the model in the last slides. Call 'node', all its tuples represents the tree of the system ● We decide to define an xml-like language to populate this table and to give semantics informations for the model.
11
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 11 Semantics representation of the visual model (1) ● XML-Like Language ● All elementary object are define ● Hierarchy are define by id tags ● Transformation for an object are describe by... tags and will be store in the database
12
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 12 Semantics representation of the visual model (1) ● Must be augmented by operator tag. ● Operator tag will be use to define the place of one or a set of object. They can be include in, near, at the bottom, behind, and so on... ● Operator needs to be formalize and implements in the 3D Engine ● Easy to parse with SAX, the Simple Api for Xml (www.saxproject.org)
13
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 13 Case study ● The Drink Vending Machine
14
June 2, 2006 B A T I C 3 S Project – Stephane MALANDAIN et Pierrick ZOSS – Eig 14 Open questions : Let's discuss... ● Define and formalize operator, and implementation in the 3D engine ● How to include the logical and behaviour model ? ● How to build the Xml-file ? Need a graphics tools or a simply editor ? ● Navigation ● What set of objet must be show depending the type of the user ? ● 2D dialog in a stereoscopic way...
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.