Bug MS3D With Bone Animation

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
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Bug MS3D With Bone Animation

Post by Magnet »

I have model: http://www.webpolit.com/irr/fish2.rar

This model loaded in IrrLight incorrect!! :
Image

But in Milkshape loaded corect:
Image

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 »

It is bug or no?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

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 »

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 »

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 »

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 :(
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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 »

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
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply