The First Pixel: Dev Vlog #8 - Half Pixel Offset (MonoGame) render artifact

The First Pixel: Dev Vlog #8 - Half Pixel Offset (MonoGame) render artifact

Subscribers:
826
Published on ● Video Link: https://www.youtube.com/watch?v=PS41RMshgGA



Category:
Vlog
Duration: 0:47
207 views
1


Jan 17, 2021. Showcases:
- half pixel offset issue with XNA migration to MonoGame
- artifact causes tile layer shimmering: varying distance layers move erratically relative to one another.
- manual correction of 1/2 pixel is required.
- MonoGame website is slightly inaccurate:
https://docs.monogame.net/articles/migrate_xna.html
"XNA uses the DirectX9 graphics API. MonoGame uses the newer DX11 API for DirectX platforms. DirectX9 interprets UV coordinates differently from other graphics API's. This is typically referred to as the half-pixel offset.
...
SpriteBatch rendering is not affected by the flag. Regardless of what value the flag has, SpriteBatch will render things exactly the same as in XNA."
- all rendering is via SpriteBatch using default shader
- half pixel offset correction is implemented CPU side

My playlists:
--------------------
- Voxel: https://youtu.be/watch?v=XCVWEuhCCDM&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Road: https://youtu.be/watch?v=ck5ALX11YU4&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Ray Casting 3D: https://youtu.be/watch?v=zjswXUTMP2o&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Side-Scroll Shmup: https://youtu.be/watch?v=fF4X8zN-Raw&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- MonoGame Tutorial: https://youtube.com/watch?v=WW1dJnfXWb0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU

My websites:
---------------------
- my GitHub: https://github.com/JDoucette
- my company: http://xona.com
- my Blog: http://thefirstpixel.com




Other Videos By Jason Doucette


2021-02-15Serious Sam 4 - render glitch #1
2021-02-15Serious Sam 4 - render glitch #2
2021-02-12Voxel Engine #6 - Inception View
2021-02-07Voxel Engine #5 - Distance Fog Color
2021-02-05Voxel Engine #4 - New Color / Height Map
2021-02-05Voxel Engine #3 - Military Color / Height Map
2021-01-31Voxel Engine Software Tech #2 - Depth Sorted Objects
2021-01-31Voxel Engine Software Tech #1 - Custom Renderer
2021-01-24The First Pixel: Dev Vlog #10 - Player Fighter Animation
2021-01-23The First Pixel: Dev Vlog #9 - Enemies, Animations, Multi-direction Parallax, Pause & Frame Step
2021-01-17The First Pixel: Dev Vlog #8 - Half Pixel Offset (MonoGame) render artifact
2021-01-15The First Pixel: Dev Vlog #7 - 3x3 & 4x4 Pixel Fonts
2021-01-13The First Pixel: Dev Vlog #6 - Hand Drawn Pixel Fonts
2021-01-13The First Pixel: Dev Vlog #5 - Proportional Font, Particles & Terrain, 4th Parallax, Slow FPS mode
2021-01-09The First Pixel: Dev Vlog #4 - Collision, Particles, 3rd Parallax layer
2021-01-07The First Pixel: Dev Vlog #3 - Weapons, Console logs, Proper parallax, Slowdown
2021-01-04The First Pixel: Dev Vlog #2 - Parallax Levels, Player moves camera, World coordinates
2021-01-03The First Pixel: Dev Vlog #1 - Low res screen, Player & Bullet motion, Tile Layer & graphics
2020-04-05Seattle clouds time lapse (April 1, 2020)
2020-03-28Seattle Fire March 28, 2020: Hwy 99 (Our House is on Fire) view from Mercer & Dexter Ave N
2019-08-012008 Viper, Autocross (1 of 2), PCA Driver Skills, 2019.07.27