SDK 1.1 with X-reader bug? Material list end with ;;

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
centipede
Posts: 16
Joined: Sat Feb 18, 2006 6:35 pm

SDK 1.1 with X-reader bug? Material list end with ;;

Post by centipede »

Just got the new SDK this evening, and when reading my usual .X meshes, I start to get something like:
Unknown data object bla bla material list: ;;
Problem is easy to locate: CXFileReader.cpp. (Can't remember the line: Search for "material list")

It expects a material list to end with ; NOT ;;

My directx-mesh knowledge is limited, but SDK 1.0 seemed to agree with the Blender exporter that ;; is the correct thing.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Do you mean this code

Code: Select all

        // in version 03.02, the face indices end with two semicolons.
        if (MajorVersion == 3 && MinorVersion <= 2)
        {
                if (P[0] == ';')
                        ++P;
        }
This was not changed lately, so it's a different story. Could you please provide me an example file?
centipede
Posts: 16
Joined: Sat Feb 18, 2006 6:35 pm

Post by centipede »

Wait, no, it's not that code. It's the function parseDataObjectMeshMaterialList
On line 772-782 it says:

Code: Select all

		if (objectName == ";")
		{
			// ignore
		}
		else
		{
			os::Printer::log("Unknown data object in material list in x file", objectName.c_str());
			if (!parseUnknownDataObject())
				return false;
		}
I suspect the if-clause should check for ;;
Post Reply