Archived

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

yanuart

My material won't showed ??

Recommended Posts

I''ve load an x files using the instruction that SDK gave in the sample code, but my materials didn''t show up ?? it was pitch black.. and then i''ve try loading the texture (still using the sampe code from SDK), but everytime i''ve try to pass the SetTexture function, it coz an illegal operation ?? Why ??? Any reason or things to look up ? coz i''ve really tried to use the sample as my code but things still the same

Share this post


Link to post
Share on other sites
If the SetTexture function causes an illegal operation, that means that you''re passing an invalid pointer. Are you sure that the texture is being loaded? Do you have any checking code. I prefer that you check the return value of every function call you make to D3D, at least the initialization function calls.

Share this post


Link to post
Share on other sites