Forum

dpm compiler and directories

Discuss the creation of various model formats for Quake engines, and related matters to modeling.

Moderator: InsideQC Admins

dpm compiler and directories

Postby Nahuel » Sun Aug 21, 2011 3:20 pm

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

Re: dpm compiler and directories

Postby apolluwn » Wed Aug 24, 2011 5:28 am

texturedir /path/to/dir

should work...

It should be a relative path.

I think it would be referenced in the smd as well?
apolluwn
 
Posts: 35
Joined: Tue Apr 26, 2011 11:57 pm

Re: dpm compiler and directories

Postby Nahuel » Wed Aug 24, 2011 2:53 pm

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

Re: dpm compiler and directories

Postby Ace12GA » Sat Jan 28, 2012 12:26 am

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.
Ace12GA
 
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: dpm compiler and directories

Postby toneddu2000 » Sat Jan 28, 2012 9:43 pm

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


Return to Modeling

Who is online

Users browsing this forum: No registered users and 1 guest