Jovial opened this issue on Jul 30, 2005 ยท 2 posts
Jovial posted Sat, 30 July 2005 at 12:58 PM
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. I had a bash at changing the crosstalk killer .py script to be able to rename actors and materials but I am not familiar enough with Python to get the thing to work. It just hangs Poser.
Any help or suggestions greatly appreciated.
Regards,
Jovial.
nruddock posted Sat, 30 July 2005 at 2:29 PM
The problem is not the Group names (you can make these different by setting extra options on export), but the material names, which can't be altered by Python internally.
AFAIK the only way to change material names is to use a text editor (or a program) on the OBJ file and the CR2/PP2/PZ3.
This is a non-starter, as all your MAT poses would stop working for the items with renamed materials.
Your only hope might be to see if exporting the OBJ from DAZ Studio is any better.