need help with Cinema4D fresnel
need help with Cinema4D fresnel
How do I mix the materials through a Fresnel map?
- zeitmeister
- Posts: 2010
- Joined: Tue Apr 22, 2008 4:11 am
- Location: Limburg/Lahn, Germany
- Contact:
need help with Cinema4D fresnel
The C4D fresnel shader isn't supported.
Perhaps you can search this forum about fresnel; there is an effect with ISL you can use.
Perhaps you can search this forum about fresnel; there is an effect with ISL you can use.
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
- wlf_alex
- Posts: 99
- Joined: Tue Aug 28, 2012 9:26 pm
- Location: Russia-Moscow, Spain-Alicante
- Contact:
Re: need help with Cinema4D fresnel
Who can show an example of how to use this effect in 4D?
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D
Re: need help with Cinema4D fresnel
Code: Select all
def eval(vec3 pos) vec3 :
lerp(
vec3(0, 0, 0),
vec3(1.0, 1.0, 1.0),
maxCosTheta()
)
the both vec3() are the fresnel colors as rgb (1.0=255)
you can now blend your ISL Shader via "ISL Blend Shader" with the desired map or shader of your choice
best regards
C4D R20 Studio
mad-imagery.com
mad-imagery.com
- wlf_alex
- Posts: 99
- Joined: Tue Aug 28, 2012 9:26 pm
- Location: Russia-Moscow, Spain-Alicante
- Contact:
Re: need help with Cinema4D fresnel
Many thanks, Mor4us! This topic really has been confirmed and you will do it again. It's really simple But now another question. Is it possible to just mix the textures?
regards..
regards..
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D
Re: need help with Cinema4D fresnel
How to fix error?
Re: need help with Cinema4D fresnel
why so difficult?
Re: need help with Cinema4D fresnel
Hi NG,
I think minCosTheta and maxCosTheta cannot be used in a blend shader for physical reasons (it's then easy to break energy conservation). Also, you are using a color shader (returning a RGB vec3) in a blend shader slot (which must return a single number). Both are triggering errors.
So you should not use a blend material for this. Just use a diffuse or phong material, and use the shader in the diffuse channel.
For red/blue just use:
Also, you could use minCosTheta instead of maxCosTheta, the effect will be slightly different.
I personally use 1.0 - pow(1.0 - (2.0/(1.0/maxCosTheta() + 1.0/minCosTheta())), 5.0) as the lerp function
Etienne
I think minCosTheta and maxCosTheta cannot be used in a blend shader for physical reasons (it's then easy to break energy conservation). Also, you are using a color shader (returning a RGB vec3) in a blend shader slot (which must return a single number). Both are triggering errors.
So you should not use a blend material for this. Just use a diffuse or phong material, and use the shader in the diffuse channel.
For red/blue just use:
Code: Select all
def eval(vec3 pos) vec3 :
lerp(
vec3(1.0, 0, 0),
vec3(0, 0, 1.0),
maxCosTheta() )
I personally use 1.0 - pow(1.0 - (2.0/(1.0/maxCosTheta() + 1.0/minCosTheta())), 5.0) as the lerp function
Etienne
Eclat-Digital Research
http://www.eclat-digital.com
http://www.eclat-digital.com
Re: need help with Cinema4D fresnel
how can I mix the two textures then? I'm confused.galinette wrote:Hi NG,
I think minCosTheta and maxCosTheta cannot be used in a blend shader for physical reasons (it's then easy to break energy conservation). Also, you are using a color shader (returning a RGB vec3) in a blend shader slot (which must return a single number). Both are triggering errors.
So you should not use a blend material for this. Just use a diffuse or phong material, and use the shader in the diffuse channel.
For red/blue just use:Also, you could use minCosTheta instead of maxCosTheta, the effect will be slightly different.Code: Select all
def eval(vec3 pos) vec3 : lerp( vec3(1.0, 0, 0), vec3(0, 0, 1.0), maxCosTheta() )
I personally use 1.0 - pow(1.0 - (2.0/(1.0/maxCosTheta() + 1.0/minCosTheta())), 5.0) as the lerp function
Etienne
Re: need help with Cinema4D fresnel
remains impossible to blend the two textures through Fresnel falloff, or error, or the effect is not the same.
Re: need help with Cinema4D fresnel
exactly!N.G. wrote:remains impossible to blend the two textures through Fresnel falloff, or error, or the effect is not the same.
polygonmanufaktur.de
Re: need help with Cinema4D fresnel
It's possible, just requires some ISL.
Re: need help with Cinema4D fresnel
Can you give an example? very needOnoSendai wrote:It's possible, just requires some ISL.
- wlf_alex
- Posts: 99
- Joined: Tue Aug 28, 2012 9:26 pm
- Location: Russia-Moscow, Spain-Alicante
- Contact:
Re: need help with Cinema4D fresnel
+10N.G. wrote:Can you give an example? very needOnoSendai wrote:It's possible, just requires some ISL.
pls-pls-pls !!!
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D
Who is online
Users browsing this forum: No registered users and 38 guests