Itoo Software Forum

Author Topic: optimizing xfrog materials  (Read 1228 times)

Kai

  • Newbie
  • *
  • Posts: 35
optimizing xfrog materials
« on: June 04, 2015, 07:43:29 PM »
As you know, the xfrog models perform much better after being processed with the material optimizer. Do you have a way of performing a batch optimization of the entire xfrog model collection using the material optimizer as a stand alone application?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1396
Re: optimizing xfrog materials
« Reply #1 on: June 05, 2015, 10:16:21 AM »
Hi,

I'm afraid, there is no such a tool. Well, theoretically it would be possible to use a script searching through all defined folders & sub-folders for .max files and executing the Optimize Materials tool, but that would modify source files (or it would require making a full copy just for these purposes). Unfortunately, in case of Xfrog libraries there is no material library (.mat) which would make it much more easier.

Best regards,

Kai

  • Newbie
  • *
  • Posts: 35
Re: optimizing xfrog materials
« Reply #2 on: June 08, 2015, 06:35:40 PM »
could there be a function of the material optimizer, that once the imported xfrog plant material has been optimized and then possibly tweaked in the material editor, to save those changes back to the original model? I think this would be a good workflow for saving changes to plant materials.

Thanks

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1396
Re: optimizing xfrog materials
« Reply #3 on: June 10, 2015, 10:31:45 AM »
Hi,

Actually, in case of Xfrog plants, in original files there are several objects and during the import process these are attached together to form just one mesh object and a Multi/Sub-object material is created & applied. Therefore, applying this Multi/Sub-object over original meshes will not give correct results as Material IDs would not correspond.

Anyway, there are several possible ways how to save these newly "optimized" materials / objects. When importing those models into a Forest object a new Custom Object is linked to merged mesh (named _forest_library_*) placed in the "forest templates" layer (by default hidden & frozen). If you select the Modify Custom Objects materials option, the material change will be applied also on this object, which you can later select and use the Save As - Save Selected Max's function.

I personally would prefer not to replace original files and save those "optimized ones" under another name or to create a material library (.mat) for these purposes - as well explained in our recently released "Creating Libraries" tutorial (you can even create several .mat libraries / options and than any time needed, select the one you prefer for actual scene you are working on).

Hope that helps.

Best regards,