Archived

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

segmentalfault

Why won't DX9 render my .x file materials?

Recommended Posts

Besides the obvious answers: ''that the materials aren''t being loaded in correctly during the load of the x file'' or ''the materials aren''t being enumerated properly''.... What is a reason why my materials won''t render properly? All I get is the Mesh, but everything on it is WHITE... pure white. Is there something I have to do during the initialization of the 3DDevice? Thanks, Segmental fault

Share this post


Link to post
Share on other sites
well, first load your mesh in the d3d sdk example to see if the problem isnt with the mesh itself. maybe its not even a skinned mesh.

Share this post


Link to post
Share on other sites
A number of things:

* Ambient lighting is set to full
* Normals are wrong (not normalized)
* Lighting is not enabled (lighting MUST be on).
* Render states are set wrong (set to render diffuse color)

Share this post


Link to post
Share on other sites
quote:
Original post by Jim Adams
A number of things:

* Ambient lighting is set to full
* Normals are wrong (not normalized)
* Lighting is not enabled (lighting MUST be on).
* Render states are set wrong (set to render diffuse color)



Jim,

Thanks very much for your reply. I figured the problem out just before I saw the reply. It was the lighting. I was not aware that lighting _MUST_ be on in order for a mesh to display properly.

Cheers

Segmental fault

PS - I can''t wait for your new book ..

Share this post


Link to post
Share on other sites