[ISL Help] Concentric circles

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
Post Reply
12 posts • Page 1 of 1
User avatar
Originalplan®
Posts: 757
Joined: Sat Sep 26, 2015 8:58 pm
3D Software: Cinema 4D
Contact:

[ISL Help] Concentric circles

Post by Originalplan® » Thu Jan 19, 2017 4:04 am

Hey guys & girls.
What is the simplest *easiest way to create concentric circles via ISL on mat surface...dozens of them??

Thank you!
:oops: :oops:

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: [ISL Help] Concentric circles

Post by lycium » Fri Jan 20, 2017 2:14 am

I was getting a little rusty in ISL, so it was good to brush up again :) Even found a crashbug in the shader editor along the way!

Without further ado, your material, sir: http://www.indigorenderer.com/materials/materials/1656

Image

User avatar
Originalplan®
Posts: 757
Joined: Sat Sep 26, 2015 8:58 pm
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by Originalplan® » Fri Jan 20, 2017 2:26 am

@lycium THANK YOU!

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: [ISL Help] Concentric circles

Post by lycium » Fri Jan 20, 2017 2:30 am

No problem, and thanks Yves/fused for helping me out :)

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by pixie » Fri Jan 20, 2017 2:34 am

Do you want anisotropy? Because that's how'll get anisotropy! :P

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: [ISL Help] Concentric circles

Post by lycium » Fri Jan 20, 2017 2:38 am

Yeah it works off the UV map, so I guess it won't be circles unless the UV map is perfect / undistorted. It's possible to modify it to use the worldspace position or angles or something like that to get around this, but then your object also has to be perfectly aligned.

In any case, let me know if you need any changes.

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by pixie » Fri Jan 20, 2017 2:49 am

lycium wrote:Yeah it works off the UV map, so I guess it won't be circles unless the UV map is perfect / undistorted. It's possible to modify it to use the worldspace position or angles or something like that to get around this, but then your object also has to be perfectly aligned.

In any case, let me know if you need any changes.
I cannot get the shader to work on the bump channel, it goes haywire!
Attachments
aniso3.zip
(572 Bytes) Downloaded 252 times

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: [ISL Help] Concentric circles

Post by lycium » Fri Jan 20, 2017 3:13 am

Hmm, I'm not sure exactly what effect you're looking for now. As it is the shader is not really suited to bump mapping, because of that instantaneous change in colour / height; furthermore, the bump map shader expects a single value (real / scalar) and not a colour / vec3.

Try messing with this code in the bump shader:

Code: Select all

def eval() real :
	let
		c = getTexCoords(0)
	in
		#1 - pow(sin(length(c) * 64) * 0.5 + 0.5, 117)
		1 - pow(sin(length(c) * 14), 117)
You can tune the numbers as before in the shader editor, and you can try the other commented line to see if it's maybe more like what you want (put the # before the 2nd line and remove it in the first line after the "in").

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by pixie » Fri Jan 20, 2017 3:36 am

lycium wrote:Hmm, I'm not sure exactly what effect you're looking for now. As it is the shader is not really suited to bump mapping, because of that instantaneous change in colour / height; furthermore, the bump map shader expects a single value (real / scalar) and not a colour / vec3.

Try messing with this code in the bump shader:

Code: Select all

def eval() real :
	let
		c = getTexCoords(0)
	in
		#1 - pow(sin(length(c) * 64) * 0.5 + 0.5, 117)
		1 - pow(sin(length(c) * 14), 117)
You can tune the numbers as before in the shader editor, and you can try the other commented line to see if it's maybe more like what you want (put the # before the 2nd line and remove it in the first line after the "in").
:D Sadly it doesn't work on GPU

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: [ISL Help] Concentric circles

Post by lycium » Fri Jan 20, 2017 4:09 am

Yeah I noticed that the bump shaders aren't working on GPU at the moment. Pending investigation :)

User avatar
Originalplan®
Posts: 757
Joined: Sat Sep 26, 2015 8:58 pm
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by Originalplan® » Fri Jan 20, 2017 4:25 am

lycium wrote:No problem, and thanks Yves/fused for helping me out :)
8) !
lycium wrote:Pending investigation :)
: ))))))

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: [ISL Help] Concentric circles

Post by pixie » Sun Mar 17, 2019 1:04 am

It is working now on GPU :)
Attachments
anisotropy.jpg

Post Reply
12 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests