Hello guys,
I had a question regarding how to approach a problem I have.
Lets say I have a map and I want to track where player already has been. So the ground underneath the player would change color/texture. I will also need to check what percentage of that ground player already covered.
Im quite new to Unity. I had an idea to have vertex shader material on high topo terrain and then changing vertices closest to the player. I am not sure if then I can count vertices player already repainted.
Not really sure how to approach it so any advice or suggestions for better approach would be greatly appreciated!
Thank you.
It mostly comes down to how tightly you want to show it, ranging from individual pixels (or footsteps) where the player has been (which could add up to a LOT of data), to dividing the world into larger chunks and just flagging them (much less data).
The representation of this data depends utterly on the answer to the above, and then your visualization can take whatever form is appropriate for whatever current visualization you are using.
1 Like
Thank you for answering.
The best case scenario is showing exact path of a player. The vertex paint one is not ideal for this but it was the only one I managed to figure out.
I did a quick sketch for better understanding of what I am trying to achieve.