LuxCoreRender / LuxCore

LuxCore source repository
Apache License 2.0
1.15k stars 144 forks source link

`luxcoreui` unable to read `*-hdr.cfg` sample scenes. #526

Open bartoszek opened 3 years ago

bartoszek commented 3 years ago

There's small bug in luxcoreui preventing it from reading *-hdr.cfg files. As you change CWD to .cfg scene file location: https://github.com/LuxCoreRender/LuxCore/blob/7143d8d18b97edfffa5f136879e84552a78cba99/samples/luxcoreui/luxcoreapp.cpp#L246-L250 Your relative path to the sky map in the .scn file becomes invalid. https://github.com/LuxCoreRender/LuxCore/blob/7143d8d18b97edfffa5f136879e84552a78cba99/scenes/kitchen/kitchen-hdr.scn#L131 This results in an error on the Linux machine unable to find file sky.exr (The rest of .scn files will be located by sub dir search routine. )

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/98199004-luxcoreui-unable-to-read-hdr-cfg-sample-scenes?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79505306&utm_medium=issues&utm_source=github).
bartoszek commented 3 years ago

running luxcoreui scenes/kitchen/kitchen-hdr.cfg works as it bypass LoadRenderConfig() strace log form luxcoreui srcene/kitche/kitchen-hdr.cfg followed by luxcoreui:>Rendering:>Load(kitchen-hdr.cfg)