• Advertisement

Archived

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

My material won't showed ??

This topic is 5907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement