Archived

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

treething

D3DXCreateEffectFromResource

Recommended Posts

Hi. Has anyone here successfully used the D3DXCreateEffectFromResource function? I cant seem to get it to work! I have no trouble loading meshes or textures from resources, and my effect files load fine from files. Is there some kind of trick to getting this to work, such as importing the files in a certain way? thanks, Chris

Share this post


Link to post
Share on other sites
D3DXERR_INVALIDDATA, which is why I thought maybe I''m importing it wrong? Using D3DXCreateEffectFromFile on the original file works fine.

Does the resource type have to have a certain name for example? I''ve tried a few variations ("FX", "Effects", etc).

Share this post


Link to post
Share on other sites