Changes between Version 3 and Version 4 of Basic3DImplementation
- Timestamp:
- Jun 17, 2012, 9:36:16 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Basic3DImplementation
v3 v4 1 ''' 0 A.D. basic 3D implementation guide''' [[BR]] In this guide we will be using [http://www.blender.org/ Blender] to create the 3D model, [http://www.gimp.org/ GIMP] for textures, and [http://notepad-plus-plus.org/ Notepad++] for basic coding. All three of these programs are free and opensource, although other programs may be used to achieve similar results. You must also have an Alpha release of 0 A.D. installed on your computer. (SVN versions can be used too) 1 2 == 0 A.D. basic 3D implementation guide == 3 4 [[BR]] In this guide we will be using [http://www.blender.org/ Blender] to create the 3D model, [http://www.gimp.org/ GIMP] for textures, and [http://notepad-plus-plus.org/ Notepad++] for basic coding. All three of these programs are free and opensource, although other programs may be used to achieve similar results. You must also have an Alpha release of 0 A.D. installed on your computer. (SVN versions can be used too) 2 5 3 6 To keep things simple, we are going to create a simple textured crate/box object. 4 7 5 8 6 [[BR]]'''Actor file setup''' 9 [[BR]] 10 == Actor file setup == 11 7 12 [[BR]]Lets begin by creating an 'actor' xml file that will link our 3D model with the texture file and crucially make them visible in Atlas (0 A.D.'s Map/Scenario Editor). 8 13 … … 17 22 * '''STEP 5 -''' Open the 'crate_test.xml' file in Notepad ++ (or any code editor). You will see this:[[BR]] 18 23 [[Image(http://i173.photobucket.com/albums/w73/purepics/0AD/actoropen.gif)]][[BR]] 24 (Ignore the colored highlighted areas in this screenshot, that happens by default in Notepad++)[[BR]] 19 25 20 26 * '''STEP 6 -''' We need to change the file locations for 'mesh' and 'texture' to these:[[BR]] … … 26 32 * '''STEP 7 -''' Save the file (as 'crate_test.xml') and close Notepad ++ 27 33 28 [[BR]][[BR]]'''Texture creation''' 34 [[BR]] 35 == Texture creation == 36 29 37 [[BR]]Here we will create a basic texture file so that we can skin it onto our model later. 30 38 … … 53 61 54 62 55 [[BR]][[BR]]'''3D modeling''' 63 [[BR]] 64 == 3D modeling == 65 56 66 [[BR]]Here we will go through the basic requirements of creating a textured (UV Mapped) model and exporting it as a Collada DAE format 3D file 57 67 … … 82 92 * '''STEP 7 -''' Move the DAE file to the following location: binaries\data\mods\public\art\meshes\props 83 93 84 [[BR]][[BR]]'''Viewing model in Atlas''' 94 [[BR]] 95 == Viewing model in Atlas == 96 85 97 [[BR]]After saving the actor file, creating the texture, and exporting the 3D model, we can now open 0 A.D.'s Atlas Editor to view the crate in-game 86 98