3D ModelingVirtual enviroments can be populated with "models" as well as regular geometries (glut shapes, glu quadrics, gl primitives).Models are:collections of primitives – often in a display list or filehave colors, materials, or texturescan have transforms ("bones")Hand (artist) generated models made with 3D software (Maya, 3D Studio, Lightwave, Blender, AC3D, Goggle sketchUp, ...)+ wysiswug? easy to use, but openGL needs a loader utility- time intensive, needs artistic skillProcedurally generated (TerraGen, ...)+ parameterized, extendable- know grammars, programming3D Modeling1When using a "hand" 3D modeler you need to know how the OpenGL model loader works before drawing your model.AC3D 6.1 installed in JD 1618 and GMC LabModel surfaces not vertices :flat shadingsurface color materialSet surface triangulation3 orthographic views1 3D viewUse colors not textures for the assignment model.Using 3D Modelers3D Modeling2AC3D 3D ModelerPlacing your mouse over items presents a tooltip –help.[1] shows the selection modes: group (many objects), object, surface, pixel. You probably want to [2] deselect select through.[3] shows where the mouse position and selected objects dimension are shown123There is a good tutorial off the AC3D site:http://www.inivis.com/ac3d/tutorials/3D Modeling3Before exporting triangulate your surfaces (Menu | Surface | triangulate). Select all objects and optimize (Menu | Object | Optimize vertices and Optimize surfaces).SurfaceModels for 465 project should have the origin at their center and fit within the boundaries of geometrical spaceship ( ± 100 on X, Y, Z)Spaceship should be facing towards -Z3D Modeling4triModel465.hppExport ac3d model as trianglefile. *.tri (cube.tri)9 vertices and hex color value(no texture)loadTriModel(...) method will reada *.tri file and create vertex[],color[], and normal[] arrays.See the example project TriModelVierwer for an example on how to load a *.tri model and display it in OpenGL. Uses cube-1-1-1.triIf some of the surfaces appear black (and shouldn't be black) you have a normal going in the wrong direction. Return to AC3D (the *.ac) file, select the surface and correct the normal's direction (Menu | Surface | Flip normal). Export to *.tri and re-examine.3D
View Full Document