Yes, seems like it is not related, I created an issue here: https://github.com/LuxCoreRender/LuxCore/issues/31
The pink elefant
Re: The pink elefant
Re: The pink elefant
I have implemented the solution discussed here (https://github.com/LuxCoreRender/BlendL ... 1bccefb530) for parameters.
Glass ".dispersion" property has been removed, Glass ".cauchyc" float texture parameter has been added with the support for IORs computed by Cauchy's equation (Cauchy's B is internally automatically computed from IOR). If not defined, dispersion is disabled. IORs texture are again used as float, not RGB:
Simon, as expected, you can ".cauchyc" parameter as "strength" value. You may have only to use a large value for the max. (to exaggerate the dispersion for artistic purpose). For people using measured material data.
It may be nice to have an additional "Advanced" flag to allow direct user inputs of Cauchy's equation B and C (instead of IOR and "Dispersion strength").
P.S. IOR = B + C / (589 / 1000)^2
Glass ".dispersion" property has been removed, Glass ".cauchyc" float texture parameter has been added with the support for IORs computed by Cauchy's equation (Cauchy's B is internally automatically computed from IOR). If not defined, dispersion is disabled. IORs texture are again used as float, not RGB:
Code: Select all
scene.materials.Cubo_Prism_01_MAT.type = glass
scene.materials.Cubo_Prism_01_MAT.kr = 1. 1. 1.
scene.materials.Cubo_Prism_01_MAT.kt = 0.8 0.8 0.8
scene.materials.Cubo_Prism_01_MAT.ioroutside = 1.0
scene.materials.Cubo_Prism_01_MAT.iorinside = 1.4
scene.materials.Cubo_Prism_01_MAT.cauchyc = 0.025
It may be nice to have an additional "Advanced" flag to allow direct user inputs of Cauchy's equation B and C (instead of IOR and "Dispersion strength").
P.S. IOR = B + C / (589 / 1000)^2
Re: The pink elefant
I'm sooooo tempted to post here: https://blenderartists.org/forum/showth ... on-effects
Re: The pink elefant
I implemented support for the new cauchyc parameter in BlendLuxCore.
Do you plan to also add this feature to roughglass?
(just asking because if not I'll deactivate the dispersion socket if the glass node is set to "rough")
Do you plan to also add this feature to roughglass?
(just asking because if not I'll deactivate the dispersion socket if the glass node is set to "rough")
Re: The pink elefant
It may sounds strange but it would be more complex than the implementation of glass (because glass is a pure specular material, no direct light sampling while roughglass is not and has to support direct light sampling)
In 10 years of LuxRender, I don't remember to have ever seen one rendering with roughglass dispersion ... so I would say no, it is not worth the time.
Re: The pink elefant
Ok, added a note about it to the tooltips of the glass node and deactivate the dispersion socket if rough or arch glass is chosen.