question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support MonoGame 3.8

See original GitHub issue

As the title says, currently using penumbra with monogame 3.8 throws exception: System.Exception: 'This MGFX effect is for an older release of MonoGame and needs to be rebuilt.'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spierceycommented, Nov 6, 2020

Just a note, looks like there have been some changes to the GraphicsDevice setup in 3.8 which results in the RenderTarget2Ds in Penumbra Component getting the default 480x360 resolution if you set up Penumba in the Game constructor as in the docs. (Even if you set your backbuffer and viewports on Graphics and GraphicsDevice correctly).

I’ve had to switch all of my resolution setup and penumbra creation to the Game.Initialize() method (after base.Initialize();).

It also seem like you now need to call graphics.ApplyChanges(); manually after setting up the GraphicsDeviceManager.

Everything seems to work fine after moving the GraphicsDeviceManager and Penumbra setup out of the constructor though.

1reaction
discosultancommented, Nov 6, 2020

@spiercey Thanks for sharing the fork! I haven’t had time to upgrade to MonoGame 3.8 yet but am planning to sometime this month. Your work definitely helps me speed things up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MonoGame 3.8 - Releases
MonoGame 3.8 is now available for all! ... Thanks again for supporting MonoGame! 63 Likes. Tom pinned globally August 10, 2020, 5:18pm #2....
Read more >
MonoGame 3.8.1 - Releases
1. The most notable change for existing users is that MonoGame will only support .NET 6 and Visual Studio 2022 moving forward. Prior...
Read more >
Downloads
Everything now works through NuGet packages and simple project templates. Getting started with MonoGame 3.8.1.303. Released July 26th, 2022. Release notes. You ...
Read more >
MonoGame 3.8.1 - Releases
Uninstalling Monogame from the host machine and re-installing it completely at the newest version doesn't help. Restarting Visual Studio doesn't ...
Read more >
What's New | MonoGame Documentation
NET 6 isn't supported by Visual Studio 2019, starting with MonoGame 3.8.1 it will no more be possible to build games with it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found