Page 1 of 2

Introducing parametric ISL shaders

Posted: Fri Dec 30, 2011 7:08 am
by CTZn
Ever wondered what ISL was ? Got the idea but can't get the how ?

Here: Glare Tech heads have made possible to shaders writers to build a simple UI for every Indigo user.

As a result you can now interact with the ISL shader in predefined ways, using common controls.

You will find the milled_aluminium in the database ready for your practical session. edit: Clik the rightmost control of the bump parameter to show the shader UI.

Have fun !

NB: as of Indigo 3.2.5, editing the material will reset its nk reflectivity to full throttle.

Re: Introducing parametric ISL shaders

Posted: Fri Dec 30, 2011 7:16 am
by Voytech
THANK YOU! You read my mind! I took a stab at ISL and gave up quickly. No coding skills here haha. Thank you oh so much!

Re: Introducing parametric ISL shaders

Posted: Fri Dec 30, 2011 8:37 am
by ENSLAVER
Awesome :D

Re: Introducing parametric ISL shaders

Posted: Sat Dec 31, 2011 2:46 am
by haluperido
Wow! Thanks, so cool!

Re: Introducing parametric ISL shaders

Posted: Sat Dec 31, 2011 7:01 am
by CTZn
Thank you for your enthusiasm, thanks Glare for the tool !

I was to update the shader with an hammering effect but the two together don't cope with bump mapping, that's going to be a different material.

Re: Introducing parametric ISL shaders

Posted: Sat Dec 31, 2011 8:01 pm
by CTZn

Re: Introducing parametric ISL shaders

Posted: Sun Jan 01, 2012 1:21 am
by StompinTom
Very cool! Awesome work!

Next step would be to expose these shaders in host applications? :D I hope Blender gets custom nodes soon...

Re: Introducing parametric ISL shaders

Posted: Sun Jan 01, 2012 3:42 am
by CTZn
Thanks Tom !

Yes importing these parameters in the host application is an option wich makes sense with integrated rendering solutions. Perhaps Cindigo does such a thing already ?

Re: Introducing parametric ISL shaders

Posted: Sun Jan 01, 2012 8:01 am
by Headroom
Absolutely freaking (to not use another f-word) awesome !

Re: Introducing parametric ISL shaders

Posted: Tue Jan 03, 2012 6:27 am
by dcm
anistropy possible ? :shock:

Re: Introducing parametric ISL shaders

Posted: Tue Jan 03, 2012 7:45 am
by Headroom
I did not quite ask for it. But, YES, that would be awesome!

Re: Introducing parametric ISL shaders

Posted: Tue Jan 03, 2012 8:21 am
by CTZn
Anisotropy is a bump effect indeed, but that's nothing new in the other hand ! See this material from Schosch:

Image
http://www.indigorenderer.com/materials/materials/73

Didn't you know dcm ? Here's where it started all ;) A user reported that this material was broken and it still is, I then did a mere copy in a hurry then considered a procedural approach.

The notice is recent therefore, I should have told you by another mean, apologies. Would you happen to have the source file still ?

We can look into having per cell pseudo-random rotation for the anisotropy direction added to a global rotation, plus the usual UV scaling tools. In fact I've mostly been exploring Indigo's voronoi function in these last materials. Now to 2x2 matrices I guess.

Let me know your preferences, not that I can everything but I like the challenge.

Re: Introducing parametric ISL shaders

Posted: Sun Jan 08, 2012 4:26 am
by CTZn
dcm wrote:anistropy possible ? :shock:
I have thought about your question again, I figured that you were perhaps under the impression that anisotropy was not possible in Indigo because of the ray nudge feature.

Well, this limit would be a problem with displacement but bump mapping is somewhat special in this regard. Here's how I understood the issue (for opaque materials):
  • - Bump mapping is considered only when a ray has hit a geometric surface
    - If that surface is bumped the shading slope is then computed
    - Based on that slope, if the outgoing ray direction is negative to the geometric normal the ray would die (black shading spot).
    - Otherwise, it would be reflected, but since that would forcibly be away from the geometric surface (or it dies) there would be no further interaction with the bumped surface at the features scale. The ray origin nudge distance does then not apply.
Bump mapping is in no ways altering the geometric shape, only the shading surface orientation. It can not intercept a ray that does not hit the geometric surface in the first place, regardless of the bump features.

Hoping that I am making sense as I had troubles finding the right ways of saying :)

Re: Introducing parametric ISL shaders

Posted: Thu Jan 12, 2012 1:09 pm
by OnoSendai
Great work CTZn,
thanks for pushing and making use of this feature.

Re: Introducing parametric ISL shaders

Posted: Thu Jan 12, 2012 1:55 pm
by Headroom
+1

This is awesome stuff!
I've tried the "anisotropy"-texture above or from the matdb before but the problem in case of my model is that I still have to UV unwrap it. It's a very triangulated mesh from a CAD application and unfortunately getting a clean undistorted UV map seems to be very difficult at best.
I'd love to have a 3D texture, comparable for example to Blender internal procedural texture. That would eliminate the need having to UV map everything.

No free lunch so far :lol: :lol: :lol: