Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

How do I load FX files?

$
0
0

@kosmonautgames wrote:

Hi guys,

I've been working out of 3.6.187 for a while and I once tried upgrading to a newer build, but I had countless problems.

I am using MonoGame for Windows/Desktop (DirectX)

Now, I finally have time for some game development again and I thought it might be a good idea to upgrade to a newer Monogame build. But I quickly remembered my problem: I think loading fx files has changed.

LightingEffect = content.Load<Effect>("FX/LightShader");

this is the way i usually load the file. I processed it in the content pipeline and it compiled without error.

I now get the SharpDX exception

An unhandled exception of type 'SharpDX.SharpDXException' occurred in SharpDX.dll

Additional information: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

What am i doing wrong?

(Note: SharpDX exceptions were absolutely standard for me since the start of monogame, for example the one above will also be thrown every time a 3d model is drawn for the first time. A bit annoying, I have no idea why. If I ignore it, the program will run and it won't show up again, unless I draw a new model. But this one with the fx files cannot be ignored, it won't let the program run)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles