Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

HTC Vive User here: nice hand models, gameplay is nice. How did you do the drawing on the clay?

5 star rating sent, because it was sure a lot work! Thanks for your submission!

While you are here I've played yours, so please check my game out in the button below. I wonder if you can play it with your headset.

(1 edit)

Ok, i'll do it when i have time, though not today, i'm still chilling after that hard week, i'll try tomorrow.

And sculpting related stuff works using same principle as deforming snow in modern games. Basically, i have camera that renders depth from below the table, and using that depth information i can detect shape of things above mask.

For this implementation i use 4 256x256 depth buffers (though it could be done more efficiently, i didn't have time for optimizations) and 3 mask buffers - actual depth buffer (1 channel, never shown), postprocessed depth buffer (1 channel, used for mask height) and color buffer (4 channels, used for mask paint).

  • deformation - Everything drawn here will lower mask height, if rendered pixel height is lower than mask height. Stick renders here when held straight.
  • smooth - Everything drawn here will blur mask in that region. Stick renders here when held sideways
  • paint - Everything drawn here will fill color buffer with specific pixel color. Stick renders here when coated in paint. 
  • postprocess - Renders whole visible scene above mask (including hands and other stuff, if there were other stuff) and additively applies this to existing deformation, then blurs whole image and lerps postprocessed buffer with this result for smooth height change during deformation.

Everything is done on GPU side, so it should be very fast.

Well, thanks for the quick explanation. Got some good sources for this? Maybe a tutorial? I just wanna use it from time to time. To understand how it works is important, but i dont think I can do it myself with this explanation :)

No, i didn't used tutorials, but i believe you can find this algoritm by searching "Snow deformation shader"

And for example, here is messy code from this game, though i suggest you to search for tutorials first, since this is not exactly plug & play:

https://gist.github.com/3DI70R/7ce7fa8b10ac02cc430d7db7dfe7d692

https://gist.github.com/3DI70R/52be1a8e917d476c0a953ed1a577876e