Jump to content
The Dark Mod Forums

Wiki Update - Skins


Destined

Recommended Posts

This provides ease-of-use for mappers and (possibly) reduced memory usage as the model only needs to be loaded once.

 

Convenience, yes, memory savings, not so much. LWOs are dozens, hudreds of kbytes at best, even with more complex ASEs you get like 2-3 megs per model. While textures can be anything from 1,5 mb to 16 megs each.

 

[material path of texture to be replaced] [complete path of replacement texture]

 

I see this quite often on the forums, and I wonder why so many members still confuse textures with materials? Times when you used diffuse textures without any material definitions are long gone. Everything you see in game engines is a surface. Its behavior is dictated by materials, and those consist of textures and instructions for the engine how to use them. Material names and paths often mimic folder structure and placement of textures, but materials are not textures. In skins you replace material paths, not texture paths, as textures don't work by themselves.

 

About skins not working, some 3d modelling software, like 3dsmax, exports .ase models as .ASE. You have to rename that to lowercase and use lowercase extention in skin file as well, otherwise it won't work.

Edited by Judith
Link to comment
Share on other sites

[material path of texture to be replaced] [complete path of replacement texture]

 

Judith covered the difference between a texture and a material, but it's also not accurate to refer to it as a "material path". A material has a name, not a path (although some names duplicate the path of the textures referenced in the material shader, that is not a requirement).

 

I would suggest:

 

[name of material definition to be replaced] [name of replacement material definition]

 

Also, this part is confusing:

 

The title has the format

 

What do you mean by title?

 

 

You may also want to make it clear that the file type (.lwo or .ase) must be specified in the model line. (actually, now that I say that, I'm not 100% sure that's still true...it used to be, but we added something a while back so that the engine looks for the other format if it can't find the first one...don't know if that works for skins or not).

 

It might also be worth mentioning that you can replace more than one material in a skin. And the model line is not actually necessary for the skin to work, it's just necessary for it to show up in the model selection window in DR.

  • Like 1
Link to comment
Share on other sites

Thanks for the quick reply! You are both correct regarding the material vs texture. I will be careful not to mix them up in the future and correct it in the entry.

 

Convenience, yes, memory savings, not so much. LWOs are dozens, hudreds of kbytes at best, even with more complex ASEs you get like 2-3 megs per model. While textures can be anything from 1,5 mb to 16 megs each.

The first sentence was taken from the current entry. I myself don't know much about this topic. I will leave it out, if you say that it is not correct.

Regarding the upper and lower case, I will add it to the sentence of not using hyphens. I did not know that this actually matters.

 

What do you mean by title?

With title I meant the first line outside the bracketts. Maybe I should call it "header"? If it is more confusing than helpful, I will just leave it out.

 

You may also want to make it clear that the file type (.lwo or .ase) must be specified in the model line. (actually, now that I say that, I'm not 100% sure that's still true...it used to be, but we added something a while back so that the engine looks for the other format if it can't find the first one...don't know if that works for skins or not).

I have just tested this and you are right, the file extension needs to be included. If the method of copy/pasting from the model path is followed, the extension will automatically be there, but I will make sure to add this as a note.

 

It might also be worth mentioning that you can replace more than one material in a skin. And the model line is not actually necessary for the skin to work, it's just necessary for it to show up in the model selection window in DR.

I thought I made both of these points clear. I had added an example that was more confusing than helping, which I deleted for this reason. It might be that I had this information in there somewhere. I will check again and add the information / make it clearer.

  • Like 1
Link to comment
Share on other sites

Thanks for doing this. The wiki needs a little bit of work in some places.

 

The easiest way to do this (and to avoid any spelling errors) is by inserting the model into DR and copying the "path" spawnarg to your skin file.

I suppose you mean the "model" spawnarg?

 

EDIT: or the "Model Name" in the Choose Model window? (That's an even quicker way, I guess.)

Edited by Skaruts

My FMs: By The Cookbook

Link to comment
Share on other sites

if you want them grouped in the skin directory then its

 

skin skins/<skin name>

 

eg

skin skins/ghostie_wench_head
{
model models/md5/chars/townsfolk/wench/tdm_ai_wench_head.md5mesh

tail textures/darkmod/ghosties/barmaid_ghostie
tdm_pageboy_light textures/darkmod/ghosties/barmaid_ghostie
models/md5/chars/townsfolk/wench/wench_skin textures/darkmod/ghosties/barmaid_ghostie
textures/common/shadow textures/common/nodraw
tdm_ponytail textures/darkmod/ghosties/barmaid_ghostie
tdm_teeth textures/common/nodraw
tdm_character_tongue textures/common/nodraw
}

Edited by stumpy
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 1 reply
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...