Modcraft - The community dedicated to quality WoW modding!

Content creation => Texturing and 2D Art => Topic started by: Moonlightshadow on July 23, 2014, 02:22:26 pm

Title: gender-specific textures
Post by: Moonlightshadow on July 23, 2014, 02:22:26 pm
hi

as you might know there are some items that are using gender-specific (ie, different textures for males and females), while the others are using the same for both genders

my question here now is, where (i assume in some dbc?) exactly is it defined which item is using gender-specific and which don't?
Title: Re: gender-specific textures
Post by: Alastor on July 23, 2014, 07:06:55 pm
Just seek in files of those textures

(http://i.imgur.com/rHQEaYp.png)
Title: Re: gender-specific textures
Post by: Gurluas on July 24, 2014, 11:08:13 am
_F = Female
_M = Male
_U = Unisex
Title: Re: gender-specific textures
Post by: Moonlightshadow on July 24, 2014, 12:03:39 pm
no, that's not what i'm looking for.

see, i know alright about the blp textures, which ones are the gender specific ones and which are not, as well as their denotation.
i am looking for the location of the flag that actually sets a set of textures to gender specific, or not.
so i could set items that by default are not gender specific to gender specific, and vice versa
Title: Re: gender-specific textures
Post by: Ascathos on July 24, 2014, 12:48:29 pm
Do you mean gender-specific items ?
Else, like, the _F/_M/_U is the only thing making sense to me about your case
Title: Re: gender-specific textures
Post by: Alastor on July 24, 2014, 02:08:28 pm
i think thats automaticla WoW just look into MPQs and search BLPs

for example when loading "Chest" WoW will automaticaly add _M / _F
Search for Chest_M
 if find then load Chest_M on Male model
Search for Chest _F
 if find load Chest_F on Female model
Title: Re: gender-specific textures
Post by: Moonlightshadow on July 24, 2014, 04:32:01 pm
thats not the case.

there are sets where there are _u, _m and _f textures present, sometimes the _u is loaded, sometimes the _m/_f.

there must be some .dbc or whatever setting these bitflags.
Title: Re: gender-specific textures
Post by: schlumpf on July 24, 2014, 04:58:40 pm
Have you checked the values of ItemDisplayInfoRec.m_modelTexture[]?
Title: Re: gender-specific textures
Post by: Moonlightshadow on July 24, 2014, 05:41:41 pm
i'm sorry?
can you please tell me more (where to find it, etc), is it a .dbc entry somewhere?
i've just got a rough general idea about wow modding. the documentation about the .dbcs that i could find was poor.
Title: Re: gender-specific textures
Post by: schlumpf on July 24, 2014, 08:06:48 pm
Which documentation do you consult?
Title: Re: gender-specific textures
Post by: Moonlightshadow on July 25, 2014, 05:16:57 am
the wowdev wiki
is there any better documentation?
Title: Re: gender-specific textures
Post by: schlumpf on July 25, 2014, 01:44:53 pm
If you are looking at pxr.dk/wowdev/wiki, no there is no better one. I wonder how you can say that it would be poor, though, as it has complete information for that dbc, including official code from Blizzard as well as additional comments.
Title: Re: gender-specific textures
Post by: Moonlightshadow on July 29, 2014, 06:15:40 am
don't get me wrong, the wowdev wiki is helpful, however, pretty much all the .dbcs have incomplete descriptions (many data fields are unknown)

anyways, back to topic, where can i find ItemDisplayInfoRec.m_modelTexture[]?
Title: Re: gender-specific textures
Post by: schlumpf on July 29, 2014, 08:16:23 am
Quote from: "Moonlightshadow"
don't get me wrong, the wowdev wiki is helpful, however, pretty much all the .dbcs have incomplete descriptions (many data fields are unknown)

anyways, back to topic, where can i find ItemDisplayInfoRec.m_modelTexture[]?
It still is the most complete documentation available. If you find out stuff, just add it. If you don't manage to reverse it yourself, just ask on the forums. For dbcs like ItemDisplayInfo, documentation is 100% complete and correct thought.

In ItemDisplayInfo.dbc. I don't know the column by heart, just look in the wiki.
Title: Re: gender-specific textures
Post by: Moonlightshadow on August 13, 2014, 10:55:51 am
so, i had a look into itemdisplayinfo.dbc, and didn't seem to find anything setting the gender-specificness flag.

i'm really noob at modding, so does any one else have a clue? (where else to look, etc, or better, just tell me where the flag is set)
Title: Re: gender-specific textures
Post by: kojak488 on August 13, 2014, 12:39:08 pm
Why don't you give an example of a set?  My understanding is that it loads the M/F version if present, else it loads the U version.  Is there a set where this isn't the case (IE: it loads the U version even when there's a M/F version present)?  If so, then name it and we can have a look at it.
Title: Re: gender-specific textures
Post by: Ascathos on August 13, 2014, 12:55:20 pm
Quote from: "kojak488"
Why don't you give an example of a set?  My understanding is that it loads the M/F version if present, else it loads the U version.  Is there a set where this isn't the case (IE: it loads the U version even when there's a M/F version present)?  If so, then name it and we can have a look at it.
It is, and it was what I was referring to.
Title: Re: gender-specific textures
Post by: Moonlightshadow on August 24, 2014, 10:08:54 am
the opposite is true, actually (first, the unisex textures are loaded, then, should these not exist, the gender specific ones)
Title: Re: gender-specific textures
Post by: Amaroth on August 31, 2014, 07:16:00 pm
Females can use unly _f and _u textures, males only _m and _u. So there can be up to 2 BLPs which are possible to be used for item. WoW uses that one which is found in MPQs and if there are both of them, it just uses one of these 2 which is preffered. I am not entirely sure which one is preffered, but I think it will be _u. its not set in any DBC or flag.
Title: Re: gender-specific textures
Post by: kojak488 on August 31, 2014, 09:28:49 pm
Quote from: "Moonlightshadow"
the opposite is true, actually (first, the unisex textures are loaded, then, should these not exist, the gender specific ones)

You're really side-stepping the points here that would let us help you.
Title: Re: gender-specific textures
Post by: Moonlightshadow on September 05, 2014, 11:18:16 pm
hm?

i'm pretty certain (from some observation) that its working like i said (loading unisex first, then genderspecific), if there is no extra boolean to toggle this setting. i should go do some more tests.
i thought, there might be some flag setting the behaviour, but apparently i am mistaken.
Title: Re: gender-specific textures
Post by: Moonlightshadow on October 04, 2014, 12:52:24 am
ok

after some testing i can say that wow is stupid, its using a brute force mechanism
first, always the unisex (_U) textures are loaded
should this fail, and only then will it try to load the gender specific ones (_M or _F, depending on the character's gender)
Title: Re: gender-specific textures
Post by: Amaroth on October 04, 2014, 10:00:38 am
Told you :D.
Title: Re: gender-specific textures
Post by: Moonlightshadow on October 04, 2014, 01:42:10 pm
ok

while we are at it, another question
is it possible to change (somewhere in the model files?) which version of the gender specific texture a character will load?

lets say, make a female tauren model load the male textures?