White meshes

Started by
3 comments, last by johndunne 21 years, 5 months ago
Hello directx programmers, I''ve got a problem, sa simple one i guess. Some of my meshes, when displayed, are only a white silhoutte of the object. I think its something to do with the materials settings but havent got a clue how to solve it. An examle of the problem is the bigship1.x that comes with directx, it is displayed as a white silhoutte but with the direct mesh viewer it looks fine! Thanks in advnace
I'm all dunne now
Advertisement
hey, when you load the mesh, you used the SdK code right?
somewhrere is a line of code:

g_pMesh->ambient = g_pMesh->diffuse;

maybe something to do wth that?
Can''t try that as i''m not at my computer at moment, but i''ll give it a try this afternoon when i get home. What should each attribute be set at? Would this be in the .x file itself?
I'm all dunne now
You can either make the material have his own ambient in a modelling program, or something else, but Im no pro ..
Cheers lads, i''ll try thoose later when i''m back at my computer! At the inlaws now, dinners ready!
I'm all dunne now

This topic is closed to new replies.

Advertisement