Jovial opened this issue on Jul 30, 2005 ยท 4 posts
Jovial posted Sat, 30 July 2005 at 8:06 AM
Hi,
When I use Export from Poser 5 to Wavefront OBJ format
(in order to use PoseRay - because my latest scene will not render in P5!), there is a partner scene .mtl file created that seems to be written incorrectly.
If a scene had (for example) two victoria 3 figures and these had two different sets of textures applied, then the .mtl file is written with all of the material reference names for both figures as those for the last figure added.
This is probably best explained with a little example of the .mtl file:
Figure 1 uses Lovely_Body_Tex.jpg
Figure 2 uses Some_Other_Body_Tex.jpg
but the .mtl file is written with
newmtl SkinTorso:1
Ns 19
Ka 0 0 0
Kd 1 1 1
Ks 0.066667 0.066667 0.066667
map_Kd Some_Other_Body_Tex.jpg
newmtl SkinTorso:2
Ns 19
Ka 0 0 0
Kd 1 1 1
Ks 0.066667 0.066667 0.066667
map_Kd Some_Other_Body_Tex.jpg
and the same problem for all the other material zones.
So the first figure has now lost all of its texture references.
I was wondering if anyone had written a Python name mangler so that each internal material group name has (for example) the figure name or other unique id added into the name so that the export would work correctly.
I guess that this would be similar concept to the crosstalk killer but for material zone names.
Any help or suggestions greatly appreciated.
Regards,
Jovial.