Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Changing the material of an entity
SuspecM Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2019
Reputation: 0
#3
RE: Changing the material of an entity

(09-14-2019, 03:40 PM)Mudbill Wrote: I'm not sure how you went ahead with this but there are some pitfalls that could affect the results. Personally I haven't used this particular feature much so I can't speak on its reliability, but I know that having multiple sets of files with the same names can cause the engine to load the wrong set which would make your edits not apply.

What I normally do when I want to change the material of a model file is that I open the .dae file (the model itself) with a text editor and search up "library_images" which is the section where external files are referenced. There should be an "init_from" pointing to the texture file that the model uses, for example "servant_grunt.dds". If you change this name to something else, the model will use another material, because the material it uses is based on the texture file name, for example "servant_grunt.mat".

May I ask what kind of text editor did you use? I tried it with Notepad++ but all I got was gibberish on any .dds file I tried.
09-14-2019, 07:33 PM
Find


Messages In This Thread
Changing the material of an entity - by SuspecM - 09-12-2019, 04:30 PM
RE: Changing the material of an entity - by SuspecM - 09-14-2019, 07:33 PM



Users browsing this thread: 1 Guest(s)