Hi Judy,
On 11/09/09 4:28 PM, Judy Hartley wrote:
As I said, this error happens no matter which of the many .x files I use. It's
not
just a warning because it does not draw the object or objects. It also happens
no
matter how many materials are listed. If there are 10 materials listed in the
.x file,
the message would say:
DirectX Loader: Error reading material list; 10 instead of 0
I thought it might mean the list should not be zero based, but changing the
numbers to
start at 1 rather than 0 doesn't help. The message still says:
DirectX Loader: Error reading material list; 1 instead of 0
I'm attaching one of the .x files that I've tried. I had to change the
extension to
".txt" in order to attach it here.
I had a look at the file you attached. The file contains references to global materials
that are referenced like '{ material-name }'.
The parser however expects materials to be without the curly braces around them (meaning
if you remove the braces around the material name it works.)
The support for global materials was added later and I don't know which is the proper
format. Unfortunately the parser is not very flexible and AFAICS is not easily modified
to handle this.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org