]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Dpmodel.md
Update Mapping packaging, also tell to save lightmaps
[xonotic/xonotic.wiki.git] / Dpmodel.md
1 Dpm models for Xonotic
2 ======================
3
4 1st you need dpm compiler, get it from http://icculus.org/twilight/darkplaces/files , search for dpmodel(blahblah).zip, try to get latest one
5
6 2nd you need hl2 smd exporter for your modeling application:
7
8 - 3dsmax version 6-8 : http://www.chaosincarnate.net/cannonfodder/3dsmax.php
9 - Maya : check here http://developer.valvesoftware.com/wiki/Maya
10 - Blender : there was working smd exporter fixed by div0 at Xonotic forums. This MAY be it I’m not sure: http://ai.kurotorobert.com/xonotic/files/Blender/Exporters/hl2_smd/hl2_smd_mesh_export_div0.7z
11
12 there are 2 types of smd files
13
14 - reference smd, that contain bones and mesh and uv coords
15 - animation smd, that contain only animation data, each animation is in separate file
16
17 if you are using same skeleton for many models you can share animation files
18
19 dpmodel converter takes these smd files and make single dpm file that contains all model info and animations inside, lately it started to generate [.framegroups](framegroups) file too, we will need this one, it will spit lots of other strange file but you wont need them
20
21 dpmodel need configuration file, its just simple text file
22
23 it looks like that:
24
25     # save the model as box.dpm
26     model box
27     # move the model this much before saving
28     origin 0 0 0
29     # rotate the model 0 degrees around vertical
30     rotate 0
31     # scale the model by this amount, 0.5 would be half size and 2.0 would be doule size
32     scale 1
33     # allows .framegroups file generation
34     framegroups
35     # load the mesh file, first reference then animation files
36     scene ref.smd
37     scene idle.smd fps 30
38     scene pain.smd fps 30 noloop
39     scene death.smd fps 10 noloop
40
41 I think that comments explained it all quite well :)
42
43 you run `dpmodel.exe configfile.txt`
44
45 and that’s all
46