I am having trouble with one aspect of Importing an OBJ object with an MTL material definition file (Image Alpha). I can successfully import an OBJ object with 4 materials, but the two materials that have an Alpha map require an extra step to connect the Alpha map to the Shader. What I am wondering is if Terragen 2 is capable of reading Alpha Map information in a MTL file and automatically assigning the correct map to the Opacity Map slot in the appropriate Defualt Shader. Otherwise I just manually browse for the alpha map after the import has been done.
I don't mind doing manual editing of the MTL file, I just need to knwo what Terragen 2 is looking for when it comes to Alpha Maps. Below is an example of the MTL file I am using right now:
newmtl Material_001
Ns 10
Ka 0.5882353 0.5882353 0.5882353
Kd 0.5882353 0.5882353 0.5882353
Ks 0 0 0
map_Kd Texture-Diff-01.tif
d 1
newmtl Material_002
Ns 10
Ka 0.5882353 0.5882353 0.5882353
Kd 0.5882353 0.5882353 0.5882353
Ks 0 0 0
map_Kd Texture-Diff-02.tif
d 1
newmtl Material_003
map_d Alpha01.tif
Ns 10
Ka 0.5882353 0.5882353 0.5882353
Kd 0.5882353 0.5882353 0.5882353
Ks 0 0 0
map_Kd Texture-Diff-01.tif
d 1
newmtl Material_004
map_d Alpha02.tif
Ns 10
Ka 0.5882353 0.5882353 0.5882353
Kd 0.5882353 0.5882353 0.5882353
Ks 0 0 0
map_Kd Texture-Diff-02.tif
d 1
I am using the map_d to specify the Alpha/Opacity Map, but it doesn't seem to be recognized by the TG2 OBJ importer.