230 likes | 408 Vues
Modeling 3D Objects for Second Life. http://primates.ximian.com/~miguel/pictures/secondlifelogo.jpg. 3D Meshes. http://www.codeproject.com/KB/openGL/wrl_viewer/wrl_viewer2.jpg. 3D Meshes. Vertices and Edges Each vertex defined by a 3D vector Edges link vertices
E N D
Modeling 3D Objects for Second Life http://primates.ximian.com/~miguel/pictures/secondlifelogo.jpg
3D Meshes http://www.codeproject.com/KB/openGL/wrl_viewer/wrl_viewer2.jpg
3D Meshes • Vertices and Edges • Each vertex defined by a 3D vector • Edges link vertices • Faces composed of cycles in the graph
3D Meshes • Can describe any arbitrary geometry • Ideal for simple or complex modeling
3D Meshes • Second Life uses meshes for: • Avatars • Terrain • Trees • But nothing else! • Linden Labs: “Support for meshes is coming soon!” (Aug. 2009)
3D Primitives http://www.codeproject.com/KB/openGL/wrl_viewer/wrl_viewer2.jpg
3D Primitives • Limited subset of “meshes” – VERY limited! • Simple 3D geometric shapes • Sphere • Cube • Torus
3D Primitives • User specifies parameters: • Size(H,W,D) • Mesh Density • Radius ratios
3D Primitives • Very efficient • Only supply a few parameters • More flexible than you’d think • Still very limiting!
Second Life: Prims Only! (sort of) http://businessbeyondreality.files.wordpress.com/2008/11/megaprim-createpatch.jpg
Second Life: Prims Only! (sort of) • To save on bandwidth, SL allows: • Prims • Distortions to prims • Certain deformations • “Hollowing out” • Skewing • Slicing • Twisting • Also allows “Sculpties”
Second Life: Prims Only! (sort of) • A “Sculptie” is an arbitrary deformation of the vertices in a prim. • In other words: Take a prim, and “sculpt” it. • Can deform it in any way as long as you do not add/delete any vertices/edges/faces
Topology definition • To model a sculptie, must start with a prim of the same “topology” • “Topology ... is a major area of mathematics concerned with spatial properties that are preserved under continuous deformations of objects, for example deformations that involve stretching, but no tearing or gluing”
Topology definition • “Lump of clay” model • Classic example is creating a coffee mug from a torus:
Topology definition • Another example: Dividing the alphabet into equivalence classes:
Modeling Sculpties for Second Life http://www.masterprim.com/images/blender/second-life/sculpty/export-sculpted-texture-from-blender_18.gif
Modeling Sculpties for Second Life • Can download prim models which are compatible with SL’s prims • Import those models into an external 3D editing application • Transform vertices of model • Export as a SL “sculptie”
Modeling Sculpties for Second Life • There are plenty of very powerful choices for modeling software, but most are overkill for what we need to do! • The application we will use is Wings 3D • Free • Easy learning curve • Not overwhelming
Modeling Sculpties for Second Life (a side note: Blender is awesome and free… … but it has a steep learning curve)
Modeling Sculpties for Second Life • with • Open downloaded prim in Wings 3D • Within Wings3D, transform the vertices (but don’t add or delete anything!) • Export via Second Life Sculptieplugin
Getting Your Sculptie into Second Life http://dominodesigns.info/images/mushrooms.jpg
Getting Your Sculptie into Second Life • Within Second Life, upload the sculptie file you exported from Wings3D • Create a prim, and set the followingBuilding Block Type = "Sculpted" • "Sculpt Texture" = sculptie file • "Stitching Type" = Sphere|Torus|etc… • Rotate/Scale/texture just like any other SL prim
Another Slideshow! http://dominodesigns.info/images/mushrooms.jpg