zeitmeister wrote:Got it!
First three images ONLY ONE color texture. There are 8 different trees with 8 different alpha leaf blend materials; all accessing the main color changer material.
So this way I got to change/apply/setup the color variation shader ONE TIME, but get 8 different alpha leaf materials out of it.
Last picture using ONLY TWO textures, but color and gamma variation applied.
Code: Select all
def eval(vec3 pos) vec3 : let NUM_TEXTURES = 2 tex_index = floorToInt(gridNoise(real(objectId())) * NUM_TEXTURES) c = sample2DTextureVec3(tex_index, getTexCoords(0)) id = real(objectId()) gamma_var = paramGammaRandomAmount() shift_gamma = max(0.0, (1 - gamma_var) + gridNoise(id) * gamma_var * 2.0) colour_var = paramColorVariationAmount() colour_shift = (vec3(-0.5) + vec3(gridNoise(id), gridNoise(id + 34534), gridNoise(id + 9876465))) * (colour_var * 2.0) in vec3(pow(c.x, shift_gamma), pow(c.y, shift_gamma), pow(c.z, shift_gamma)) + colour_shift
[REQ] Indigo instance color variation shader
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
Amazing things things happens to whose who wait! xD
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
Can't you use the 'export' material?zeitmeister wrote:Thank you a lot!
The only knickknack is the fact that setting up the shader is not possible in the C4D exporter.
fused may have to invest work here, so that the C4D Indigo shader window offers the same possibilities as the Indigo standalone GUI shader window. Plus working and exporting things correctly.
BTW: Ono, does that shader "flicker" or sample everything new when rendering an animation?
And if yes, how can we interdict that?
Re: [REQ] Indigo instance color variation shader
The randomness is based on the object id which should stay the same frame to frame, so there shouldn't be flickering. Let me know if there is!zeitmeister wrote: BTW: Ono, does that shader "flicker" or sample everything new when rendering an animation?
And if yes, how can we interdict that?
- zeitmeister
- Posts: 2010
- Joined: Tue Apr 22, 2008 4:11 am
- Location: Limburg/Lahn, Germany
- Contact:
Re: [REQ] Indigo instance color variation shader
Very cool, thank you!OnoSendai wrote: The randomness is based on the object id which should stay the same frame to frame, so there shouldn't be flickering. Let me know if there is!
Cheers, zeiti
Cheers, David
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
- zeitmeister
- Posts: 2010
- Joined: Tue Apr 22, 2008 4:11 am
- Location: Limburg/Lahn, Germany
- Contact:
Re: [REQ] Indigo instance color variation shader
Of course, but then I can change everything, all textures and parameters, only in Indigo standalone GUI... and that's not what we want.pixie wrote:Can't you use the 'export' material?
We want full ISL-shader-access in the exporters.
Cheers, David
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
Why why why!!!!fused wrote:I once did color variation in instances for cindigo, but scrapped itzeitmeister wrote:Yikes... awesome!
Then please tell Yves how you did that!
This should be a feature implemented in every available exporter!
can be done, easily
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
As a mid-gap solution you can now have it as in 'external' type of material.zeitmeister wrote:Of course, but then I can change everything, all textures and parameters, only in Indigo standalone GUI... and that's not what we want.pixie wrote:Can't you use the 'export' material?
We want full ISL-shader-access in the exporters.
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
Sadly this shader doesn't work on GPU.zeitmeister wrote:Got it!
First three images ONLY ONE color texture. There are 8 different trees with 8 different alpha leaf blend materials; all accessing the main color changer material.
So this way I got to change/apply/setup the color variation shader ONE TIME, but get 8 different alpha leaf materials out of it.
Last picture using ONLY TWO textures, but color and gamma variation applied.
Code: Select all
A problem occurred with the scene:
Failed to find function 'l1l1llll1lll11l1111111l111ll1l1ll(FullHitInfo, vec4, vec4)'.
ShaderSpectrumMatParameter user shader code, line 7:
ll1llll1llllll1l11l1l1l11l111llll = ll1111ll11llll111l1l11111ll1l1l1l((gridNoise(lll1111ll11lll1111ll11l11l1l1ll11(l1
l1llll1lll11l1111111l111ll1l1ll(l111ll1lll11ll1lll1lllllll1l1ll11, l1l111l1l11lllll1111lll11l11l1ll1, l1ll11111l111l1111lllll111l11lll1))) * l1ll11l1ll11l1llll11lllll11l1l1ll))
Re: [REQ] Indigo instance color variation shader
Added to Bugtracker, thanks for the report!
polygonmanufaktur.de
- zeitmeister
- Posts: 2010
- Joined: Tue Apr 22, 2008 4:11 am
- Location: Limburg/Lahn, Germany
- Contact:
Re: [REQ] Indigo instance color variation shader
Yeah!
Cheers, David
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Re: [REQ] Indigo instance color variation shader
Is there a way to get variance in albedo channel as well as in the bump and roughness?
- zeitmeister
- Posts: 2010
- Joined: Tue Apr 22, 2008 4:11 am
- Location: Limburg/Lahn, Germany
- Contact:
Re: [REQ] Indigo instance color variation shader
Well we have to change the code into vec2... then it should work in these channels; blend also f.e.
I am too dumb for maths, but I can take a look..
I am too dumb for maths, but I can take a look..
Cheers, David
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64
Who is online
Users browsing this forum: No registered users and 30 guests