project-navigation
Personal tools

Author Topic: extracting surface parameters from .map files  (Read 14082 times)

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: extracting surface parameters from .map files
« Reply #15 on: March 12, 2014, 07:26:41 am »
ufo2map seems to have a material file generation feature. Have you tried that ?

I did. But, using this for the tiles of an RMA it generates a file for each tile, e.g. iterating over +mansion gives 29 new .mat files. For some reason it always only adds exactly one entry to the file. Therefore, it uses some hardcoded values that are not the best imo.
Also, it doesn´t check whether an entry already existst or not, so it is not usable for maintenance.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: extracting surface parameters from .map files
« Reply #16 on: March 12, 2014, 09:42:16 am »
Set aside the 'only one entry per file' and '1 file per tile' problems (that could be fixed/changed):

Can the values in the mat file *only* be entered there or can they be entered elsewhere (eg. radiant) ?
I.o.w.: does ufo2map at least have a chance to extract the wanted values from the map file ?

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: extracting surface parameters from .map files
« Reply #17 on: March 12, 2014, 02:53:29 pm »
The material settings for the textures are not stored in the map. Afaik the only chance to set material parameters for textures is the material file.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: extracting surface parameters from .map files
« Reply #18 on: March 12, 2014, 03:35:08 pm »
There is also something in the UI called 'material_editor'. Not sure if that is just unfinished business. Do you know anything about that ?
(ui_push material_editor at the game console shows the window at least)

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: extracting surface parameters from .map files
« Reply #19 on: March 12, 2014, 08:28:54 pm »
There is also something in the UI called 'material_editor'. Not sure if that is just unfinished business. Do you know anything about that ?
(ui_push material_editor at the game console shows the window at least)

It is possible to open an editor and edit the material file out of radiant.