I find a bug in demo code "3dsplay.cpp"
in function
static void render_node(Lib3dsNode *node)
{
...
#ifdef USE_SDL
Player_texture *pt = NULL;
int tex_mode = 0;
#endif
if (mesh->faces[p].material > 0) {
mat = file->materials[mesh->faces[p].material];
}
...
}
I think "if (mesh->faces[p].material > 0) " should to "if
(mesh->faces[p].material >= 0) "
if use ">", it could not use first material in 3ds file.
Original issue reported on code.google.com by avens...@gmail.com on 10 May 2011 at 9:38
Original issue reported on code.google.com by
avens...@gmail.com
on 10 May 2011 at 9:38