karasusan / OpenVDBForUnity

Unity plugins for OpenVDB
MIT License
261 stars 41 forks source link

[Suggestion] ability to reading Fire/Smoke channels and changing their colors ... #7

Open davoodkharmanzar opened 6 years ago

davoodkharmanzar commented 6 years ago

it would be great if be able to reading Fire/Smoke channels of vdb and changing their colors , something like this:

rendering-realistic-explosion-and-smoke-in-v-ray-for-3ds-max-1

karasusan commented 6 years ago

Thank you for your nice suggestions! I plan to add 3 channels(temperature, heat, velocity).

karasusan commented 6 years ago

This shader is interesting!

screen shot 2018-09-17 at 10 41 17 pm

It is difficult for me to find any documentation of HDRP... I want to add the functions that cast shadows to other object, but I can't. The reason is that it is so hard to understand HDRP shading!

Maybe you know this doc. This doc is Unity's official.

And I read the shader programs in keijiro's repo. https://github.com/keijiro/TestbedHDRP

karasusan commented 6 years ago

SRP shader has to have a "RenderPipeline" tag. It's explained in details below. https://forum.unity.com/threads/hdrp-no-custom-shaders.546433/#post-3605688

karasusan commented 6 years ago

Oh, I'm sorry, I misunderstood. I took the screenshot that I used legacy render pipeline. I will check it on HDRP in this week. I'll need a little more time to check about this.

karasusan commented 6 years ago

I checked your shader on HDRP and did not work correctly too. 😭 This is probably a mistake how to use multi-pass on HDRP. You might want to rewrite the shader code to the for-statement.

davoodkharmanzar commented 6 years ago

I checked your shader on HDRP and did not work correctly too. 😭 This is probably a mistake how to use multi-pass on HDRP. You might want to rewrite the shader code to the for-statement.

thanks for your response 👍