Hi,
I've just added fresnel versions of the band, bilerp, mix and multimix textures. Those are hardly physical but should enable some interesting creative usage.
Jeanphi
Moderators: jromang, tomb, zcott, coordinators



#You can have as many offsets as you want in the band texture
Texture "myband" "fresnel" "band" "float offsets" [0.1 0.5 0.8] "texture amount" ["myamount"] "texture tex1" ["fresnel01"] "texture tex2" ["fresnel05"] "texture tex3" ["fresnel08"]
#The bilerp texture accepts a "string mapping" parameter with values "uv", "spherical", "cylindrical" and "planar", each one having subsequent tuning knobs
Texture "mybilerp" "fresnel" "bilerp" "texture v00" ["fresnel00"] "texture v01" ["fresnel01"] "texture v10" ["fresnel10"] "texture v11" ["fresnel11"]
Texture "mymix" "fresnel" "mix" "texture amount" ["myamount"] "texture tex1" ["fresnel0"] "texture tex2" ["fresnel1"]
Texture "mymulti" "fresnel" "multimix" "float weights" [0.1 0.5 0.4] "texture tex1" ["fresnel1"] "texture tex2" ["fresnel2"] "texture tex3" ["fresnel3"]

# Materials File
Texture "Tex" "fresnel" "band"
"float amount" [0.186000004410744]
"float tex1" [1.560321807861328]
"float tex2" [20.000000000000000]
"float offsets" [0.000000000000000 1.000000000000000]
MakeNamedVolume "glass" "clear"
"texture fresnel" ["Tex"]
"color absorption" [0.00000000 0.00000000 0.00000000]
MakeNamedMaterial "Material"
"bool architectural" ["false"]
"bool dispersion" ["false"]
"string type" ["glass2"]

J the Ninja wrote:Jeanphi, something seems wrong with the fresnel band. Bilerp works fine, but this gives "[Lux 2011-Sep-08 17:53:27 ERROR : 14] Static loading of fresnel texture 'band' failed."
- Code: Select all
# Materials File
Texture "Tex" "fresnel" "band"
"float amount" [0.186000004410744]
"float tex1" [1.560321807861328]
"float tex2" [20.000000000000000]
"float offsets" [0.000000000000000 1.000000000000000]
MakeNamedVolume "glass" "clear"
"texture fresnel" ["Tex"]
"color absorption" [0.00000000 0.00000000 0.00000000]
MakeNamedMaterial "Material"
"bool architectural" ["false"]
"bool dispersion" ["false"]
"string type" ["glass2"]

neo2068 wrote:J the Ninja wrote:Jeanphi, something seems wrong with the fresnel band. Bilerp works fine, but this gives "[Lux 2011-Sep-08 17:53:27 ERROR : 14] Static loading of fresnel texture 'band' failed."
- Code: Select all
# Materials File
Texture "Tex" "fresnel" "band"
"float amount" [0.186000004410744]
"float tex1" [1.560321807861328]
"float tex2" [20.000000000000000]
"float offsets" [0.000000000000000 1.000000000000000]
MakeNamedVolume "glass" "clear"
"texture fresnel" ["Tex"]
"color absorption" [0.00000000 0.00000000 0.00000000]
MakeNamedMaterial "Material"
"bool architectural" ["false"]
"bool dispersion" ["false"]
"string type" ["glass2"]
There was a typo in band.cpp. Should be fixed now.

J the Ninja wrote:At the least they'll allow the fake-birefringence trick with glass2.

Return to Architecture & Design
Users browsing this forum: No registered users and 0 guests