Page 1 of 1

Kr parameter list

Posted: Fri Dec 28, 2018 5:38 pm
by sjanke
Goofing with feeding the output of the Daz Reality plugin into LuxCore. The product is designed to create LuxRender output files. I've succeeded but only after getting around this error:

Exception during parsing (file 'test.lxs', line: 1619): Wrong number of values in property: Kr


This is the offending line (starting at 1617):


Texture "dh_mbf_lmp_41780-28864:lamp_1_metal_fresnel" "fresnel" "fresnelcolor" "texture Kr" ["dh_mbf_lmp_41780-28864:lamp_1_metal:Default.diffuse"]
# Mat: dh_mbf_lmp_41780-28864:lamp_1_metal
MakeNamedMaterial "dh_mbf_lmp_41780-28864:lamp_1_metal" "string type" ["metal2"] "texture fresnel" ["dh_mbf_lmp_41780-28864:lamp_1_metal_fresnel"] "float uroughness" [0.08] "float vroughness" [0.08]


Moving back to 1617 from 1619 and removing the Kr element entirely, the render proceeds:


Texture "dh_mbf_lmp_41780-28864:lamp_1_metal_fresnel" "fresnel" "fresnelcolor"
# Mat: dh_mbf_lmp_41780-28864:lamp_1_metal
MakeNamedMaterial "dh_mbf_lmp_41780-28864:lamp_1_metal" "string type" ["metal2"] "texture fresnel" ["dh_mbf_lmp_41780-28864:lamp_1_metal_fresnel"] "float uroughness" [0.08] "float vroughness" [0.08]

But I'm curious as to what is wrong with that Kr component of the Texture line. What is the correct number of values for the Kr parameter? I'm wondering if I can come up with an easy search-and-replace operation to fix all the Kr bits instead of the deleting them outright.

Re: Kr parameter list

Posted: Fri Dec 28, 2018 10:55 pm
by Fox
The LuxRender scenes need full new material setup with new exporter.

Re: Kr parameter list

Posted: Fri Dec 28, 2018 11:07 pm
by Dade
sjanke wrote: Fri Dec 28, 2018 5:38 pm Texture "dh_mbf_lmp_41780-28864:lamp_1_metal_fresnel" "fresnel" "fresnelcolor" "texture Kr" ["dh_mbf_lmp_41780-28864:lamp_1_metal:Default.diffuse"]
I think the (quite limited) LuxCore LXS parser supports only predefined metal2 materials (like gold, silver, etc.): https://github.com/LuxCoreRender/LuxCor ... arse.y#L57

If you post a simple test scene, I can check if the support can be extended in a reasonable time.

Re: Kr parameter list

Posted: Fri Dec 28, 2018 11:09 pm
by Dade
Fox wrote: Fri Dec 28, 2018 10:55 pm The LuxRender scenes need full new material setup with new exporter.
It is a bit unknown but LuxCore has a (very limited) capability to parse old LuxRender XLS files: https://github.com/LuxCoreRender/LuxCor ... /luxparser

Re: Kr parameter list

Posted: Sat Dec 29, 2018 12:15 am
by sjanke
Dade wrote: Fri Dec 28, 2018 11:09 pm
Fox wrote: Fri Dec 28, 2018 10:55 pm The LuxRender scenes need full new material setup with new exporter.
It is a bit unknown but LuxCore has a (very limited) capability to parse old LuxRender XLS files: https://github.com/LuxCoreRender/LuxCor ... /luxparser

Quite right about being able to render, I've managed a couple just to see what it could do. Other than an IES issue which was fixed in a recent beta, the Kr problem seems to be the only thing in the way of the simple scenes I've attempted. But I'll put together a scene file to try.

Re: Kr parameter list

Posted: Sat Dec 29, 2018 1:06 am
by sjanke
Here's a minimal test scene that throws the Kr error for me. There's a reference to a file on my drive for creating the meshlight, so I've added that file to the zip. It's a simple square.

The Kr error is thrown with this error message:

LuxCoreUI v2.1beta4 (LuxCore demo: http://www.luxcorerender.org)
Parsing LuxRender SDL file...
RenderConfig loading error:
Exception during parsing (file 'E:\Personal\projects\renders\test_scene.lxs', line: 93): Wrong number of values in property: Kr

Re: Kr parameter list

Posted: Sat Dec 29, 2018 5:31 pm
by Dade
I added the support for (constant) fresnelcolor textures and the scene seems to work fine:

kr.jpg

A new binary build should be ready in a couple of hours at viewtopic.php?f=9&t=736

Re: Kr parameter list

Posted: Sat Dec 29, 2018 6:45 pm
by sjanke
Much appreciated. I look forward to running more scenes through LuxCore and marvel at the results.