I was trying to use the viewer PLib example program to read an obj/mtl file in which the mtl file
does not have a map_Kd line present for any material group that does not use a texture map.
However I found via step thru debugging that ssgLoadOBJ::add_mesh() method caused a memory
access error, apparently related to an invalid parameter load for the no-texture material group. I
don't believe that the mtl format allows the use of map_Kd token if there is no texture defined for a
material, so the ssgLoadOBJ class should be able to handle mtl files that have no textures at all,
files that have only some of the material groups with textures, as well as files that have every
material group with a defined texture. Once I added a texture map_Kd line to the material that did
not originally use a texture, the ssgLoadOBJ loaded the file without crashing - however this is not a
desirable fix since the particular material was not supposed to have a texture in the first place. I
was not able to figure out exactly where the error in handling the no-texture material is located in
the ssgLoadOBJ code.
Logged In: YES
user_id=70811
Originator: NO
Well, I've looked at the code and don't see any "smoking pistols," and SSG is not my forte. Without a more definite lead I don't know what to fix. Anybody else?