KeyShot Forum

Technical discussions => Materials => Topic started by: NDenekamp on June 20, 2013, 04:56:26 PM

Title: Ametrine gem material (4.1)
Post by: NDenekamp on June 20, 2013, 04:56:26 PM
Another experiment to create a bi-coloured gem variety called Ametrine. A naturally occurring quartz with a gradient between amethyst and citrine

When digging through the forums a while ago, I saw someone requested about the creation of these types of stones, and wether volumetric colour maps were supported.

It seems with the procedural colour mapping, you can achieve something very close to this gem type! and very easy to fine tune colours, gradient, evenness, etc!  The only thing is that the Gem material type doesn't currently support colour maps, so I've had to use a dielectric type.

I've hidden the diffuse centre ball in this one, to better show the two tone nature of the material.. unfortunately I don't have some nice gem geometry to test on, is someone willing to donate one if you're interested?

Am I right in concluding that the procedural colour map textures produce 'through body' colors?


N
Title: Re: Ametrine gem material (4.1)
Post by: TpwUK on June 21, 2013, 12:51:10 AM
http://grabcad.com/library?per_page=20&query=gem might give you one you could use for further testing
Title: Re: Ametrine gem material (4.1)
Post by: guest84672 on June 21, 2013, 05:54:59 AM
Oh wow - this is awesome! Can you share the material so I can see how this was done?

Not sure what you mean by "through body" colors. Do you mean colors that go through the entire body, rather than just stay on the surface?
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 21, 2013, 07:15:51 AM
TpwUk, cheers for the link! I'll see if I can use one of those models!

Thomas, I've attached the .bip file of the scene below.

I guess regarding through body colour, I was wondering if the procedural cloud data only shows when it intersects with geometry, or everywhere within the volume of the object / solid (does keyshot recognize this inside / outside of a volume?)

N
Title: Re: Ametrine gem material (4.1)
Post by: guest84672 on June 21, 2013, 07:30:30 AM
Thanks for the scene. You can take the mapping tool and manipulate this further. I also dialed down the 64 ray bounces. 12 are quite sufficient ;-)

I think it depends on the material - but the question is best answered by our Chief Scientist.
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 21, 2013, 04:56:53 PM
Testing on a gem stone from grabcad. Trying out the focussed caustics, but I think I need higher sample levels?

Title: Re: Ametrine gem material (4.1)
Post by: DriesV on June 22, 2013, 04:42:18 AM
Quote from: NDenekamp on June 21, 2013, 04:56:53 PM
Testing on a gem stone from grabcad. Trying out the focussed caustics, but I think I need higher sample levels?

Aha, caustics!
Exactly my cup of tea... ;)

Is that an 'advanced settings' render?
If so, the 'Caustics' slider is going to determine the quality (sharpness) of your caustics. Even though the slider only goes to 10, you can manually crank it up to 100. It doesn't have as big an impact on rendering speed as it sounds. ;) The 'pre-render calculation' (the phase before the prepass) is going to take a bit longer though.
Also, realtime rendering can give very good results with caustics...

Dries
Title: Re: Ametrine gem material (4.1)
Post by: Ed on June 23, 2013, 08:47:31 AM
Very nice NDenekamp -

Procedural color map - I'm anxious to try this.  I've been looking for a way to duplicated titanium anodized finishes where you see a color shift if you look at the material off axis - much like looking at the colors in a soap bubble, or the shifting colors in an oil slick on water.  See subtle color shift in reference photo below.



Ed
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 23, 2013, 09:53:53 AM
Hey Ed,


I have looked at this finish as an experiment, but it can transitions through quite a few colours (pretty much the entire rainbow!) whereas the current procedural colour maps support only a few colours per material.

Perhaps the finish you see sometimes that involves mainly yelowish to blue / purple can be approximated... I will add it to my list of materials to experiment with further, and let you know how I get on!

Niels
Title: Re: Ametrine gem material (4.1)
Post by: Ed on June 23, 2013, 10:47:57 AM
Niels -

Titanium body jewelry can shift through a wide range colors, but that is because sections have been anodized at various voltages, so it is purposely multi-color.

The effect I'm after is where the metal is anodized at a constant voltage in order to produce a single color.  However when the surface is viewed off-axis, there will be a subtle color shift at the edges of one octave (I hope octave is the proper term here).  So if the titanium is a round bar and anodized blue, you can see a purple tint at the edges.  If the titanium is a round bar and anodized magenta, you can see a yellow tint at the edges.

Ed

Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 23, 2013, 11:16:59 AM
I see what you mean.

Isn't such a look already achievable in with the 'Metallic Paint' material? I've had a quick go with the magenta > fall off to yellow one, see attached.

Is that what you were going for?


N



Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 23, 2013, 11:56:10 AM
Also, Dries, I've re-rendered the gem in both advanced render mode and by giving the realtime window a good while to clear up, with the results below.

For the advance render I set focussed caustics to 100, GI to 5, shadow to 3 and samples to somethings quite high - can't remember.. others as default.

In your experience - other than the 'focussed caustics' slider set to 100 in advance render settings - what influences focussed caustics? does the # of bounces matter, shadow quality, material glossy samples, the ground plane material used, type of HDRI, etc?


N
Title: Re: Ametrine gem material (4.1)
Post by: Ed on June 23, 2013, 12:26:23 PM
Thanks Niels -  I had not considered using metallic paint for an anodized metal  (I rarely go outside the Metals tab :)

I made a quick test on this titanium ambigram ring below.  The off-axis color shift is subtle and realistic for this metal treatment.  Every little bit of added realism helps.

Thanks for the tip and sorry to hijack your gemstone thread - it's all interesting stuff.

Ed
Title: Re: Ametrine gem material (4.1)
Post by: DriesV on June 23, 2013, 12:38:43 PM
Quote from: NDenekamp on June 23, 2013, 11:56:10 AM
Also, Dries, I've re-rendered the gem in both advanced render mode and by giving the realtime window a good while to clear up, with the results below.

For the advance render I set focussed caustics to 100, GI to 5, shadow to 3 and samples to somethings quite high - can't remember.. others as default.

In your experience - other than the 'focussed caustics' slider set to 100 in advance render settings - what influences focussed caustics? does the # of bounces matter, shadow quality, material glossy samples, the ground plane material used, type of HDRI, etc?


N

1) The quality (shapness, unblurriness) of the caustics is solely determined -this is at least my experience- by:
*the caustic slider (advanced rendering)
*render time/sampling level (realtime rendering)
For advanced rendering, the other quality sliders have no direct influence on the caustics' quality.

2) The appearance of the caustics can be determined by several things:
*# of ray bounces (this is especially apparent in more intricate caustic setups, where focussed photons are bounced around a lot)
*material glossiness (roughness): the more 'perfectly finished' an object is, the sharper its generated caustics will be (e.g. a matte lens cannot converge light into a point, a finely polished lens can)
*caustic catch surface material: e.g. dark surfaces absorb light energy (aka caustics hardly visible); e.g. polished surfaces reflect caustics (no caustics visible on these either); a diffuse (or matte) surface with a light diffuse color catches caustics well. You need a surface that can scatter the incident flocussed light (caustics) to make them visible.
*lighting: e.g. a strong pin light (aka sunny day) generates sharper caustics than an overcast high falloff sky

Dries
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 23, 2013, 12:59:12 PM
Ed, no worries! As you say it's all interesting stuff. I'm actually considering opening just a general (focussed on the new procedural possibilities) materials thread, so I can just post whatever material I'd like to share and open the floor for questions, share tips, etc. Also so I won't clutter the forum too much with random new threads.

As for the ring render. If you copy the parameters I posted along with my test render, but bring down the 'metal coverage' value, you can somewhat influence where the fall off from magenta to yellow occurs, should you wish to exaggerate the effect or bring it out a bit more in specific views.


Dries, thanks for the tips! at the moment I just added a ground plane, but left the material as the 'ground' type. I'll try it with a white diffuse plastic. Does the sample level for the material receiving the caustics matter much?

Too bad the license for KeyShot that I have doesn't allow me to modify HDRI's.

I'll give it another go later on.


Niels
Title: Re: Ametrine gem material (4.1)
Post by: DriesV on June 23, 2013, 01:42:20 PM
Quote from: NDenekamp on June 23, 2013, 12:59:12 PM
...
I just added a ground plane, but left the material as the 'ground' type. I'll try it with a white diffuse plastic. Does the sample level for the material receiving the caustics matter much?
...
Niels
The ground material as-is is great at catching caustics. ;)
The sample level of the catch material doesn't influence the caustics much.

Dries
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 23, 2013, 04:20:42 PM
Cant seems to find a good angle on this one to make pretty caustics show up.. This is like a step backward from my last try  ???
Title: Re: Ametrine gem material (4.1)
Post by: DriesV on June 23, 2013, 11:46:26 PM
Can you share the scene/KeyShot package?

Dries
Title: Re: Ametrine gem material (4.1)
Post by: NDenekamp on June 24, 2013, 12:07:23 AM
Dries, sure! This is an older version.. didn't hit save after the last render attempt as it wasn't really an improvement  ;)

N
Title: Re: Ametrine gem material (4.1)
Post by: DriesV on June 24, 2013, 02:31:52 PM
Okay, I took your scene for a spin.
The attached images are what I came up with.

For the fist image I put very strong pin lights in an HDRI. The base HDRI was taken from the KeyShot library (outdoor). I put a tiny pin light over the sun and placed two more at various angles. You'd need KeyShot Pro for this though...

The second image demonstrates a very efficient approach to caustics. It involves putting one or more point lights in your scene to generate the caustics. The HDRI is only used for the general shading of the gem body at moderate brightness (0.6) and contrast. Using this method, caustics are rendered very, very fast. Another advantage is that you can don't need Pro to be able to do this.

Dries
Title: Re: Ametrine gem material (4.1)
Post by: malayutou on July 08, 2013, 08:19:37 PM
wow,so cool.thanks for sharing your experience.