Skip to main content
GameDev.net gamedev.net
🔒 Locked

D3DXCreateEffectFromResource

Started by treething May 6, 2003 at 9:24 AM 1 replies 1.5k views
Original Post
treething
treething
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
herbm
herbm
What''s the error code returned?


Development Lead
Windows Graphics & Gaming Technology
Development Lead, DirectXWindows Graphics & Gaming Technology
treething
treething
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).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.