Hi guys!
I had a quite annoying debate on diamonds and overall approach today here on the forum with a gentleman (EDIT: I think it’s a lady) and I got frustrated, just tried him to help, but… I’m not going to tell his name, if you want, you can look for the topic No, it was not @simon we are already friends, I hope so
However I decided to create my own diamonds, only with reflections, no refractions. Just wanted to try how fast and far can I get alone with the help of the BJS Documentation (he/she was complaining, that the BJS docs are poorly written) , YouTube and Google.
If you are going to work with the NME, you must watch @PatrickRyan’s cool videos on PBR nodes! Thanks Patrick! That’s what I did and created a very basic diamond shader. Actually the first part was enough to watch.
Please note, that I started to work with NME only a few days ago, so I am in the learning phase.
NME:
and a PG to show the results:
EDIT: updated PG:
I believe, this is the most basic setup to achieve very fast diamondly looking objects
No refractions here, no lights, … They are coming in the next part.
Hi @Necips!
The first thing you need is a diamond model, obviously. Grab one from the hundreds of available for free
The most important part is to generate a caustics texture. There are free generators available or just download one. You need to shift the R, G, B channels of the texture (actually only R & B, G stays at offset 0,0). Let me know, if you are not a Photoshop geek and I’ll explain how to do it). 3 to 5 pixels offset gave me the best results. So R layer is at (-x, -x) and B is at (x, x). Use the resulting image as the reflection texture. Maybe there are caustic generators with the channels already shifted available. In your code just assign the node material to the model and That’s all.
Hey @musk!
You must have been peeking me the last night, because I was preparing something similar😂 however I don’t 'want to use inner structures, everything is handled by the shader itself, so you can apply it to any mesh. However I will definitely check this model after finishing the shader. Thanks a lot!
I will post a demo shortly. If you are interested and because you handed me this information, I think you definitely are, I can send you a preview of what is already done in private. Wanna see now?