Hi Aric,
On 20/3/09 9:02 AM, Aric Aumann wrote:
I ran into some issues with the directX loader plugin, here's some minor tweaks
that
helped.
...
In directx.cpp:
Changed a call from "parseFrame" to "parseSection". The call to the parseFrame
function
was breaking the recursive brace-tracking mechanism in parseSection, so it was
kicking
out of nested braces too early.
In ReaderWriterDirectX.cpp:
Changed behaviour of convertFromDX from "return null if no texture coords" to
"don't
copy texture coords if no texture coords".
The tweaks are fine with my collection of .x models (all contain texcoords).
I still am unable to load about half of Microsoft's .x files from the DirectX
SDK, but
some do load. The ones that don't are either binary or they use some non-simple
geometry descriptions.
Does the loader handle this robustly? I.e. not crash but report
FILE_NOT_HANDLED or whatever?
Cheers,
/ulrich
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org