Kr parameter list

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
sjanke
Posts: 4
Joined: Fri Dec 28, 2018 5:29 pm

Kr parameter list

Post 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.
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Kr parameter list

Post by Fox »

The LuxRender scenes need full new material setup with new exporter.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Kr parameter list

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Kr parameter list

Post 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
Support LuxCoreRender project with salts and bounties
sjanke
Posts: 4
Joined: Fri Dec 28, 2018 5:29 pm

Re: Kr parameter list

Post 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.
sjanke
Posts: 4
Joined: Fri Dec 28, 2018 5:29 pm

Re: Kr parameter list

Post 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
Attachments
testSceneZip.zip
(5.61 KiB) Downloaded 132 times
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Kr parameter list

Post 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
Support LuxCoreRender project with salts and bounties
sjanke
Posts: 4
Joined: Fri Dec 28, 2018 5:29 pm

Re: Kr parameter list

Post by sjanke »

Much appreciated. I look forward to running more scenes through LuxCore and marvel at the results.
Post Reply