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.
Magnet
Posts: 101 Joined: Wed Sep 27, 2006 7:32 pm
Post
by Magnet » Sat Jan 20, 2007 1:59 pm
I have model:
http://www.webpolit.com/irr/fish2.rar
This model loaded in IrrLight incorrect!! :
But in Milkshape loaded corect:
This model has bones, animation.
P.S. Pay no regard to texture.
Magnet
Posts: 101 Joined: Wed Sep 27, 2006 7:32 pm
Post
by Magnet » Mon Jan 22, 2007 7:10 pm
It is bug or no?
sio2
Competition winner
Posts: 1003 Joined: Thu Sep 21, 2006 5:33 pm
Location: UK
Post
by sio2 » Mon Jan 22, 2007 7:20 pm
Are those fins single polygons? If so, they will be backface culled when viewed from one side. Try disabling backface culling in your fish material. Alternatively, edit the mesh to make them two sided.
Edit: The first thing to try is switching off "draw backfaces" in the MilkShape 3D window. If the fins don't draw when rotating the model all the way round then you know what the issue is.
sio2
Competition winner
Posts: 1003 Joined: Thu Sep 21, 2006 5:33 pm
Location: UK
Post
by sio2 » Mon Jan 22, 2007 7:35 pm
No, it's not a bug. I just tried the model in MilkShape and those fins are single-sided.
If you're going to use stencil shadows I would edit the model.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Mon Jan 22, 2007 10:08 pm
Does MilkShape have a material flag for two-sided materials? In that case we could add support easily.
bitplane
Admin
Posts: 3204 Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:
Post
by bitplane » Tue Jan 23, 2007 11:41 pm
Code: Select all
//
// nNumMaterials * sizeof (ms3d_material_t)
//
typedef struct
{
char name[32]; //
float ambient[4]; //
float diffuse[4]; //
float specular[4]; //
float emissive[4]; //
float shininess; // 0.0f - 128.0f
float transparency; // 0.0f - 1.0f
char mode; // 0, 1, 2 is unused now
char texture[128]; // texture.bmp
char alphamap[128]; // alpha.bmp
} ms3d_material_t;
doesn't look like it
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Wed Jan 24, 2007 12:17 am
Hmm, the mode might help. But documentation is not available as it seems.
bitplane
Admin
Posts: 3204 Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:
Post
by bitplane » Wed Jan 24, 2007 12:52 pm
yes thats what I thought, but there's no mention of mode in the ascii version of the specs, so i think its reserved for future use