]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Dpmodel.md
textile to gh-markdown (pandoc conversion)
[xonotic/xonotic.wiki.git] / Dpmodel.md
index 478af32d33ac8ac12e4df352565dc295571d9a7e..95e7cb126e3a5b7ad0165400d47586735324aa07 100644 (file)
@@ -1,19 +1,20 @@
-h1. Dpm models for Xonotic
+Dpm models for Xonotic
+======================
 
-1st you need dpm compiler, get it from http://icculus.org/twilight/darkplaces/files , search for dpmodel(blahblah).zip, try to get latest one 
+1st you need dpm compiler, get it from http://icculus.org/twilight/darkplaces/files , search for dpmodel(blahblah).zip, try to get latest one
 
 2nd you need hl2 smd exporter for your modeling application:
-> > > 3dsmax version 6-8 : http://www.chaosincarnate.net/cannonfodder/3dsmax.php
+\> \> \> 3dsmax version 6-8 : http://www.chaosincarnate.net/cannonfodder/3dsmax.php
 
-> > > Maya : check here http://developer.valvesoftware.com/wiki/Maya
+\> \> \> Maya : check here http://developer.valvesoftware.com/wiki/Maya
 
-> > > 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
+\> \> \> 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
 
 there are 2 types of smd files
 
->reference smd, that contain bones and mesh and uv coords
+\>reference smd, that contain bones and mesh and uv coords
 
->animation smd, that contain only animation data, each animation is in separate file 
+\>animation smd, that contain only animation data, each animation is in separate file
 
 if you are using same skeleton for many models you can share animation files
 
@@ -21,26 +22,27 @@ dpmodel converter takes these smd files and make single dpm file that contains a
 
 dpmodel need configuration file, its just simple text file
 
-it looks like that: 
-
-@# save the model as box.dpm@
-@model box@
-@# move the model this much before saving@
-@origin 0 0 0@
-@# rotate the model 0 degrees around vertical@
-@rotate 0@
-@# scale the model by this amount, 0.5 would be half size and 2.0 would be doule size@
-@scale 1@
-@# allows .framegroups file generation@
-@framegroups@
-@# load the mesh file, first reference then animation files@
-@scene ref.smd@
-@scene idle.smd fps 30@
-@scene pain.smd fps 30 noloop@
-@scene death.smd fps 10 noloop@
+it looks like that:
+
+`# save the model as box.dpm`
+`model box`
+`# move the model this much before saving`
+`origin 0 0 0`
+`# rotate the model 0 degrees around vertical`
+`rotate 0`
+`# scale the model by this amount, 0.5 would be half size and 2.0 would be doule size`
+`scale 1`
+`# allows .framegroups file generation`
+`framegroups`
+`# load the mesh file, first reference then animation files`
+`scene ref.smd`
+`scene idle.smd fps 30`
+`scene pain.smd fps 30 noloop`
+`scene death.smd fps 10 noloop`
 
 I think that comments explained it all quite well :)
 
 you run dpmodel.exe configfile.txt
 
-and that's all
+and that’s all
+