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

Started by
3 comments, last by segmentalfault 20 years, 11 months ago
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
Advertisement
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.
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)
Did you set them at rendering?

.lick
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 ..

This topic is closed to new replies.

Advertisement