• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

change hard coded color in mdl files?

Cees Donker

Administrator
Staff member
Hello guys,

I vaguely remember there was a utility that enabled the user to change hard coded color in mdl files. Does anyone remember this and know what I mean?

:isadizzy:

Cees
 
Milton,
Can you provide a bit of instruction on how to use MDLMat? I've wanted to use it to change some colors of untextured parts but I have no idea how to find the parts to change the colors, or how to find the colors if not the parts.
 
I have not used the program but it seems intuitively obvious.

See attached. Help is in bottom right quadrant.

Just browse to your model using the ? button, browse the lines for the color you want (check all to see what else is there or if there are multiples of the same one).

Once selected, the color shows top right.

Use color selector to change, then use the << arrows to load the new color into the Diffuse/Ambient/ect slot(s).

Then save.

Hope this helps.
 
There is no easy way to tie a particular material to a particular part of the mdl. The materials list is at the start of each LOD (along with the texture list) and the drawing code that follows will call up different materials and textures as appropriate but there is no way to tell by looking at the code which particular bit of the model is currently being drawn (just another block of triangle coordinates).
The same material will usually be applied to many different parts of the model so any changes to the material will affect every part that uses it. This is not usually a problem as it is only the one or two bits that aren`t covered by textures that you need to change for visual effect.

If you can`t work out which to change (say if they are all the same colour) then change one at a time to a bright green or something any fly the model to see if the exposed part has changed colour. Obviously use a copy of the mdl for this testing (or keep a copy of the original safe). Once identified go back to a fresh copy of the original mdl and just change that entry to the colour you really want.

Note that each LOD has its own materials list so you will have to make similar changes in each LOD if you don`t want the old colour to appear at distance.

Normally it is the Diffuse colour you will need to change to fix untextured parts.
 
Thank you Martin for that explanation. As a modeler, I guess I take these things for granted, but it helps to have the "inside" rest of the story. :)
 
I usually make a blank texture folder for the aircraft then change the color of suspect parts to bright primary colors. Kind of a PITA, but it's the best method that I have found so far. Sometimes;with luck, I find that offending external payloads,etc. can be rendered invisible without affecting other visible parts. You don't get the 'ghost effect' that you sometimes see when using alpha texture. I guess that I am just parroting Martin after re-reading his post.
 
Back
Top