White meshes
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
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?
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?
You can either make the material have his own ambient in a modelling program, or something else, but Im no pro ..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement