Page 1 of 1

dpm compiler and directories

Posted: Sun Aug 21, 2011 3:20 pm
by Nahuel
Hello !!!!!!! I am using some high poly Dpm and are great
:) :) , but i have a problem with the location of the textures. I need to locate the textures in the folder of the model, not in the folder of a mod :( for example I have the textures in

Code: Select all

quake/nahuel
and i want that the textures stay in the same folder of the models for example

Code: Select all

quake/nahuel/monsters
I use this file to compile my zombie (zombie.txt)

Code: Select all

# save the model as models/blah.dpm
model models/monsters/zombie.dpm
# move the model this much before saving origin 5 10 2
origin 0 0 25
# rotate the model -90 degrees around vertical
rotate -90
# scale the model by this amount, 0.5 would be half size and 2.0 would be doule size
scale 1.16
# load the mesh file, this is stored into the dpm as frame 0
scene zombim.smd
scene zombiab.smd
How can i specific the folder of the textures??? Thanks in advance and sorry for my english!!!!!!!!!

:) :) :) :) :)

Re: dpm compiler and directories

Posted: Wed Aug 24, 2011 5:28 am
by apolluwn
texturedir /path/to/dir

should work...

It should be a relative path.

I think it would be referenced in the smd as well?

Re: dpm compiler and directories

Posted: Wed Aug 24, 2011 2:53 pm
by Nahuel
apolluwn wrote:texturedir /path/to/dir

should work...

It should be a relative path.

I think it would be referenced in the smd as well?
THANK YOU!!!!!!!!!!!! :D :D the correct syntax is something like "texturedir path/to/dir/" Otherwise thanks for the request! :) :)

Re: dpm compiler and directories

Posted: Sat Jan 28, 2012 12:26 am
by Ace12GA
The path is relative to the root of your mod, and is limited to 32 characters, including the texture name, so you cannot use deep paths or long file names. I actually recompiled the exporter to allow 64 characters, and it caused DP to crash on model load.

I wanted:

MyMod\models\weapons\v_weapon\MyTexture.tga

I ended up with:

MyMod\models\tex\MyTexture.tga

Something to keep in mind.

EDIT: Wow, necro post... sorry.

Re: dpm compiler and directories

Posted: Sat Jan 28, 2012 9:43 pm
by toneddu2000
I think that a post is never old when someone writes something useful for the community! :)