]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Dpmodel.md
rename files before conversion
[xonotic/xonotic.wiki.git] / Dpmodel.md
1 h1. Dpm models for Xonotic
2
3 1st you need dpm compiler, get it from http://icculus.org/twilight/darkplaces/files , search for dpmodel(blahblah).zip, try to get latest one 
4
5 2nd you need hl2 smd exporter for your modeling application:
6 > > > 3dsmax version 6-8 : http://www.chaosincarnate.net/cannonfodder/3dsmax.php
7
8 > > > Maya : check here http://developer.valvesoftware.com/wiki/Maya
9
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
16 >animation smd, that contain only animation data, each animation is in separate file 
17
18 if you are using same skeleton for many models you can share animation files
19
20 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]] file too, we will need this one, it will spit lots of other strange file but you wont need them
21
22 dpmodel need configuration file, its just simple text file
23
24 it looks like that: 
25
26 @# save the model as box.dpm@
27 @model box@
28 @# move the model this much before saving@
29 @origin 0 0 0@
30 @# rotate the model 0 degrees around vertical@
31 @rotate 0@
32 @# scale the model by this amount, 0.5 would be half size and 2.0 would be doule size@
33 @scale 1@
34 @# allows .framegroups file generation@
35 @framegroups@
36 @# load the mesh file, first reference then animation files@
37 @scene ref.smd@
38 @scene idle.smd fps 30@
39 @scene pain.smd fps 30 noloop@
40 @scene death.smd fps 10 noloop@
41
42 I think that comments explained it all quite well :)
43
44 you run dpmodel.exe configfile.txt
45
46 and that's all