A downloadable Library

Download NowName your own price

UVPixelMap

This is a library for monogame which is used to make UV maps.

Why should i get this?

Because you can edit your character at runtime without creating more and more different sprites for each situation. For example: Your character will be wet from water. Normally you would need to add completly new spritesheet with new colors, but thanks to this library you need to just change the UV map and it will change all of the sprites

How does it work?

It is hard to explain but i will try my best. So you will create UV map that will be the same size as your player, each pixel needs its unique color. After that you will create new sprite sheet you want to use, and set the colors to the responding color in the UV map. Then you will use my library to generate new sprite sheet with colors that will have R and G as position on the UV map. Finally you can use any new or updated UV map and it will change the full sprite sheet.

Look at this video for more explanation: https://www.youtube.com/watch?v=HsOKwUwL1bE


Tutorial

  1. In this time https://youtu.be/HsOKwUwL1bE?t=263 you can see how the process is made
  2. Open your project
  3. In the top type using UVPixelMap
  4. Create new Source variable
  5. In load content create new 2 variables UVMap and Overlay and immediately asign them to new for example:UVMap example = new UVMap(Content.Load("name"), 32);
  6. There asign source using Fuctions.CreateSource(UVMap you just created, Overlay you just created, graphics device)
  7. each time you want to change tme uvmap just say yourSource.ChangeUVMap()
  8. Bonus: If you have sprite sheet of uv maps you can use different function called decrypt which turns sprite sheet into smaller uv maps.



github: https://github.com/F1shS0up/UVPixelMap

Download

Download NowName your own price

Click download now to get access to the following files:

UVPixelMap.zip

Comments

Log in with itch.io to leave a comment.

This seems *really* cool, but having a bit of trouble understanding some of the specifics.  It would be really helpful if you could include some example image files and maybe an example program that shows how to set it up

yeah i know

Do you think it is enough to put the docs on github?

yeah, GitHub seems like the right place