0
Problem loading .3ds file with texture
This discussion was imported from CodePlex
bdeldri wrote at 2014-08-13 22:09:
Hi,
I am trying to load a simple .3ds file with a texture that I exported from Blender. It appears to read some garbage into the texture image name here (StudioReader.cs):
I'm not familiar enough with the .3ds format to know if this is a problem with the reader or with the model, but it does seem to load fine in the OpenSceneGraph viewer.
I have the file and texture available if that would help, but I'm not sure how to attach them to this discussion (if that is even possible).
Thanks!
I am trying to load a simple .3ds file with a texture that I exported from Blender. It appears to read some garbage into the texture image name here (StudioReader.cs):
case ChunkID.MAT_MAP:
texture = this.ReadMatMap(reader, size - 6);
break;
Then when it tries to load the image, it borks with "System.ArgumentException: Illegal characters in path".
I'm not familiar enough with the .3ds format to know if this is a problem with the reader or with the model, but it does seem to load fine in the OpenSceneGraph viewer.
I have the file and texture available if that would help, but I'm not sure how to attach them to this discussion (if that is even possible).
Thanks!
Customer support service by UserEcho
This is an error in their ReadMatMap.
The 3DS format has more capabilities than they import.. Change the function to this, and it will work:
private string ReadMatMap(BinaryReader reader, int size)