Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukakostic/UnySplat
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling
https://github.com/lukakostic/UnySplat
Last synced: 2 months ago
JSON representation
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling
- Host: GitHub
- URL: https://github.com/lukakostic/UnySplat
- Owner: lukakostic
- Created: 2018-08-06T05:05:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T05:13:43.000Z (over 6 years ago)
- Last Synced: 2024-08-03T05:18:09.518Z (5 months ago)
- Language: C#
- Size: 159 KB
- Stars: 38
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - UnySplat - Splatoon-like painting in unity on any-shape mesh colliders (Script Utility)
README
# UnySplat
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling.Left click - raycast paint (center of screen)
Right click - throw tomato (paint blob)
It just boils down to:
1. Make a good UV map (no overlapping faces)
2. Raycast and get raycasthit.textureCoords
3. Extract x and y components and use SetPixel to paint
4. Add some paint randomization and spread, and some other stuff to make it look nicer![splatoon](https://user-images.githubusercontent.com/41348897/43697933-b0da8f92-9947-11e8-922f-66328f1fd49f.png)