Using Compute Shaders for World Texture Painting in my VR Game with Unity

preview_player
Показать описание
With this Unity compute-shader based 3d texture painting system, you can cover every inch of a scene with liquid filth, just to clean it all up again. I created this as an improvement to the preexisting decal system, which was featured in a previous video. Now the player can interact with the environment in much more detail than before, with the liquid map allowing for a range of possibilities, from massive corrosive acid spills to tiny drops of spilled soda.

Music:

#VR #Unity #Physics #GameDev #Texture
Рекомендации по теме
Комментарии
Автор

This is a really well put together video. The liquid looks great! It’s fun seeing this game develop.

mr.watermeal
Автор

reminds me of portal 2 speed and bouncy goo, but this looks a lot better... well done!

chanceslaughter
Автор

Interesting, I remember the first time i made a compute shader in opengl, it was to make the fluid simulation i made a bit faster
in one of the versions the simulation increased performance by 3 times (integrated gpu) against the multithreaded 4 core 3.5 ghz
the other version performed 10 times worse in the gpu
apparently gpus dont like branching that much

Theawesomeking
Автор

It would be really great If you could share the source because It's almost impossible for us to figure out the 'magic' from your narrative.

ahmay
Автор

Incredible work mate! well done!, im looking forward doing something similar with a proyect im working on and i really cant figure it out. i would really apreciate some tips

kchomontiei
Автор

I am asking this super late so might not ever get an answer, but how are you translating 3D positions from particles into the correct UV coordinates on only the GPU for your Compute Shader? Just curious since it seemed like in your video you stated you only needed to pass data between the GPU and CPU when you need to read data but not to write any data like uv coordinates. Do you still need to supply a uv coordinate in a buffer to the Compute Shader that you dispatch based on the position of a particle?

nicholasreynolds
Автор

is the game you are making going to have a story like boneworks or half life alyx

landenwah