I've converted the core of the Krypton Lighting Engine so that it's compatible with Windows 8.
The trouble I'm having when actually using it is that it can't load the KryptonEffect.xnb
file. I'm aware that MonoGame doesn't have XNA content processors, so I'm compiling the KryptonEffect.fx file in an XNA Content project.
When I try to load the Effect
, I get an exception saying The MGFX file is corrupt
in the ReadEffect
method in MonoGame. The header should be MGFX
but it's a seemingly random byte array.
I then came across this page that says to use a tool named 2MGFX
. I tried this, but the tool reports: The effect must contain at least one technique and pass
. From what I can see from KryptonEffect.fx the file, it does.
Has anyone got the Krypton Lighting Engine working on MonoGame for Windows 8? Or has anyone been able to load any kind of Effect file under Windows 8?