How does one get GTKradiant 1.5 to use a custom .mtr (Material file)?
By default 1.5 seems to properly understand the materials for retail Q4, but this does not seem to work for new material files.
This is all the more strange, since Q4edit loads the new materials automatically and shows the textures.
Under Q3A we had to edit the scripts/shaderlist.txt file...
BTW: Loaded AEdm7 into Q4Edit, saved the .map file and then loaded it into GTKradiant 1.5, and all textures where missing?!
Q4 - GTKradiant and Custom .mtr files?
Finally found out what the problem with the eX material file is.
Captital Letters in texture names are the "Bad Thing to Do (tm)" !
Possibly it was GTKradiant 1.2.13 that did not use the file names capitalized the way the texture files are. In the .map file all the textures names were in lower case. Trouble is in the textures/ folder they contained upper case letters, and also in the .mtr file there were upper case letters.
When loading the map into GTKradiant 1.5, none of the textures would show.
Fix:
Why bother use GTKradiant 1.5?
Because the public editor has many functions that are *way* superior to the sub-functional Q4 editor. E.g. Axial (automatic) texture alignment is a total pain in Q4's editor. No freelook in 3D view. etc.
Tip: I will texture my map (alignment) in GTKradiant 1.5 and only when it comes to lighting and compiles use Q4's editor.
Captital Letters in texture names are the "Bad Thing to Do (tm)" !
Possibly it was GTKradiant 1.2.13 that did not use the file names capitalized the way the texture files are. In the .map file all the textures names were in lower case. Trouble is in the textures/ folder they contained upper case letters, and also in the .mtr file there were upper case letters.
When loading the map into GTKradiant 1.5, none of the textures would show.
Fix:
- Open the .map in a programmers editor (text editor), and ensure that all texture names and paths are lower case. Then save any changes you need to make.
- Go to your q4base\textures\<my ex textures>\ folder and lower case *all* the file names. (Good file browsers like Directory Opus or Total Commander let you do that).
- Open your material file q4base\materials\<my mtr file>.mtr in a text editor and ensure that all the shader names/paths are lower case as well, e.g.
Code: Select all
textures/aetri/eX_lightpanel_01 { ... } change to textures/aetri/ex_lightpanel_01 { ... }
- Now when you load your .map file into GTKradiant 1.5 you should see the textures.
Why bother use GTKradiant 1.5?
Because the public editor has many functions that are *way* superior to the sub-functional Q4 editor. E.g. Axial (automatic) texture alignment is a total pain in Q4's editor. No freelook in 3D view. etc.
Tip: I will texture my map (alignment) in GTKradiant 1.5 and only when it comes to lighting and compiles use Q4's editor.