Archived

This topic is now archived and is closed to further replies.

Black model loading....

This topic is 5147 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all. I have written a md2 loader and confirmed it works. It loads a test model fine, but another model is loaded pure black. The model is skinned. I tried changing the color of the model its self to see if it''d chagne the black but it didn''t. So I think that it may be a skinning problem. I repeat that I have succssfully tested this on a skinned model, so I think that this may be something model related and not code. The model that isn''t working write was created in 3ds max and exported to md2 from MilkShape (v1.4.0). Thanks all Frag

Share this post


Link to post
Share on other sites
Of course you should first just check what it loads in you loader.. if something is missing.. if some data is absurd.. I can''t do but just throw a wild geuss so I let it be for now..

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
IF it''s a md2 model try loading it in QuakeII or the QuakeII loading that is available at milkshape''s site. If it''s messed up in them too you''ll know it''s not your code that''s at fault.

Share this post


Link to post
Share on other sites
Generally a black model is one of 3 reasons:

1) the normals are 0,0,0
2) Back face culling is OFF and two sided lighting is OFF.
3) the material properties have 0,0,0 as the color for diffuse and ambient


BTW milkshape is up to version 1.6 something now, might want to upgrade (actually 1.7 is in beta) Though I doubt that is the problem, but it could be.

I have imported 3ds files into milkshape 1.6.6 and they came out all black, and imported the same model into milkshape 1.7 and it looked fine.

Share this post


Link to post
Share on other sites