Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: AnimatedSyn on October 13, 2014, 07:57:36 am

Title: A Quick Question From A New Modder/Importer.
Post by: AnimatedSyn on October 13, 2014, 07:57:36 am
Ok...I am loving this engine and the FBX importer.  Here is my problem.  My models seem to have a SHINE/GLOSS
to them.  I've looked over some other users imports and noted that this was not present on theirs... Well.. Some of
them.

Question is...What am I doing wrong?  I am using Sketchup 2014... And I know there's about to be a bunch of, "there's your problem...Don't use sketchup" comments.  So lets try not to do that.  My modeld comes out looking great, but there
is that damn shine.... Any ideas?

Title: Re: A Quick Question From A New Modder/Importer.
Post by: angrypig on October 13, 2014, 10:53:27 am
The problem is usually in the export tool it's not embedding SHINE/GLOSS map infomation into FBX. But I will check it once more time until this is resolved you can edit matlib and add thise textures manually.
Title: Re: A Quick Question From A New Modder/Importer.
Post by: AnimatedSyn on October 13, 2014, 02:14:48 pm
Editing the .MTL file was something I was experimenting with.  As I said.  I am a noob to 3d Modeling and Importing
though I am a very quick study.

Here is a portion of the MTL of a model I am getting ready to use.  Just the first 45
Lines.  There is of course a lot more to it.

Any idea from looking at this portion of the .mtl as to what I am doing wrong or could
be trying to rectify this problem?

{
   "version" : 512,
   "mats" : [
   {
      "name" : "ID1259",
      "color" : "1.0,1.0,1.0,1.0",
      "f0" : ".027",
      "roughness" : ".498",
      "no_light" : false,
      "alpha_masked" : false,
      "tex_albedo" : "",
      "tex_normal" : "",
      "tex_roughness" : "",
      "tex_opacity" : "",
      "tex_reflectance" : "",
      "tex_environment" : ""
   },
   {
      "name" : "ID198",
      "color" : ".725,.725,.725,1.0",
      "f0" : ".027",
      "roughness" : ".498",
      "no_light" : false,
      "alpha_masked" : false,
      "tex_albedo" : "eastEntrance.dds",
      "tex_normal" : "",
      "tex_roughness" : "",
      "tex_opacity" : "",
      "tex_reflectance" : "",
      "tex_environment" : ""
   },
   {
      "name" : "ID540",
      "color" : ".725,.725,.725,1.0",
      "f0" : ".027",
      "roughness" : ".498",
      "no_light" : false,
      "alpha_masked" : false,
      "tex_albedo" : "GEcapitol_4.dds",
      "tex_normal" : "",
      "tex_roughness" : "",
      "tex_opacity" : "",
      "tex_reflectance" : "",
      "tex_environment" : ""
   },
Title: Re: A Quick Question From A New Modder/Importer.
Post by: theshanergy on October 13, 2014, 03:19:34 pm
I have found this quite helpful: http://xtrac.outerraworld.com/wiki/material

From my own experimentation, the lower your roughness (closer to 0), the more reflected environment you get. The higher the f0, the more reflected light/glare you get.

To use an example from a model I'm currently working on, try the following for a shiny metal look:

Code: [Select]
    "f0" : "0.03",
    "roughness" : "0.15",

Also to note, the "color" value is some sort of odd interpretation of RGBA values. This took me a little while to figure out, but it's actually a percentage of the current color value in the range of 0-255, with the final value being opacity. I didn't see the wiki at first so I came to these conclusions through trial and error! :)


*edit*
just to give you an idea of what can be achieved by playing with the f0 and roughness values, here is an example of the same model after initial import, and then after playing with the mtl file. This model was built in Sketchup as well.

before:
(http://i.imgur.com/vnxiSzR.jpg)

after:
(http://i.imgur.com/BkKsNLh.jpg)
(http://i.imgur.com/scIrKne.jpg)
Title: Re: A Quick Question From A New Modder/Importer.
Post by: ZeosPantera on October 13, 2014, 05:54:58 pm
(http://i.imgur.com/scIrKne.jpg)

You.. Yeah you gimme that model. I needs it.
Title: Re: A Quick Question From A New Modder/Importer.
Post by: theshanergy on October 14, 2014, 11:48:29 pm
You.. Yeah you gimme that model. I needs it.

Ask and you shall receive: http://forum.outerra.com/index.php?topic=2980.msg31698#msg31698
Title: Re: A Quick Question From A New Modder/Importer.
Post by: Jagerbomber on October 15, 2014, 10:57:41 am
There was no asking...  ;)