Comments (2)
Did a little bit of researching. The previous topic helped a bit. I set the lightmap and diffuse map sizes manually to the window dimensions I have. Note: the window dimensions, not the ingame screen dimensions. This helped a lot. Now there is no pixel distortion and that annoying cut screen is gone. But now the issue that the lights are kinda cut on the left side and are off by some amount from the objects that they are following.
Will continue investigating further.
from penumbra.
Major edit (I got everything wrong the first time):
Note: I left all the PenumbraEngine code in tact, just changed the SamplerState to PointClamp so the image stays crisp (didn't change the sizes of the light and diffuse maps):
Okay, it turns out that the solution is to set the games viewport to the size of the window before creating and initializing a PenumbraComponent:
It is a horrible and an inconvenient thing to do but at least it works for now.
However, you absolutely must scale your transformation matrix:
Scale amount is determined by your in-game screen dimensions to the actual window dimensions.
That's about it. If you have any questions regarding this issue, I'll be happy to help.
from penumbra.
Related Issues (20)
- Support for MonoGame 3.7.1 HOT 5
- No lights drawn on WindowsDX HOT 3
- Tweak color of unlit areas
- How to use it within a tileengine?
- [Question]: Is there a way to detect which hulls are affected by light? HOT 3
- Visual artifact
- Stretching viewport to window bounds
- Not Updating on Hull removal. HOT 8
- [Question]: Is there a way I can change the layer depth at which individual shadows are cast? HOT 2
- Support MonoGame 3.8 HOT 5
- Occluded ShadowType working incorrectly? HOT 2
- Installing Penumbra HOT 5
- Normal map support HOT 1
- Transforming Penumbra with Camera? HOT 2
- FNA-XNA Support?
- Smaller Render Targets
- Support for MonoGame 3.8.1 HOT 3
- Limit the penumbra effect to a specific area? HOT 2
- Drawing non-affected Elements like in HelloPenumbra doesn't seem to work
- NOT AN ISSUE - Thanks to project owner.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penumbra.