dpm compiler and directories

Discuss the creation of various model formats for Quake engines, and related matters to modeling.
Post Reply
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

dpm compiler and directories

Post 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!!!!!!!!!

:) :) :) :) :)
hi, I am nahuel, I love quake and qc.
apolluwn
Posts: 35
Joined: Tue Apr 26, 2011 11:57 pm

Re: dpm compiler and directories

Post 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?
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: dpm compiler and directories

Post 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! :) :)
hi, I am nahuel, I love quake and qc.
Ace12GA
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: dpm compiler and directories

Post 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.
toneddu2000
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: dpm compiler and directories

Post by toneddu2000 »

I think that a post is never old when someone writes something useful for the community! :)
Meadow Fun!! - my first commercial game, made with FTEQW game engine
Post Reply