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.
Kr parameter list
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: Kr parameter list
The LuxRender scenes need full new material setup with new exporter.
Re: Kr parameter list
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
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
Dade wrote: ↑Fri Dec 28, 2018 11:09 pmIt 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
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
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
- Attachments
-
- testSceneZip.zip
- (5.61 KiB) Downloaded 132 times
Re: Kr parameter list
I added the support for (constant) fresnelcolor textures and the scene seems to work fine:
A new binary build should be ready in a couple of hours at viewtopic.php?f=9&t=736
A new binary build should be ready in a couple of hours at viewtopic.php?f=9&t=736
Re: Kr parameter list
Much appreciated. I look forward to running more scenes through LuxCore and marvel at the results.