Page 1 of 1

luxcoreui error sensetivity

Posted: Thu Apr 11, 2019 12:19 pm
by nigec
Is it possible to have error reporting in different categories?
Sketchup is a very lazy way of modeling and if you use models from sources like the Warehouse there's going to be all sorts of unwanted cr** that you can't see but will inevitably stop luxcoreui and probably not part of the scene

Re: luxcoreui error sensetivity

Posted: Thu Apr 11, 2019 12:25 pm
by B.Y.O.B.
It is the responsiblity of exporter plugins to ensure that a scene does not cause a runtime error in LuxCore.
For example, in the Blender addon I detect missing images during export and replace them with a warning color: https://github.com/LuxCoreRender/BlendL ... ap.py#L176

Re: luxcoreui error sensetivity

Posted: Thu Apr 11, 2019 2:03 pm
by nigec
I would of thought it would justify a warning rather than the ui failing to run without warning, it just seems overly sensitive
Anyway i see the problem and its something I can avoid when I do my preview

Re: luxcoreui error sensetivity

Posted: Thu Apr 11, 2019 2:18 pm
by B.Y.O.B.
It makes development of LuxCore easier because LuxCore devs don't have to think about how to continue with a missing image, how to recover from this error.
And if the error is handled in the exporter plugin, the plugin author can implement additional stuff that is helpful for the user - like the error log in BlendLuxCore. Also, different 3D programs have different conventions for handling errors. For example, in Blender missing images are signalled with a violet color. Other 3D packages might use black or grey or a warning pattern or something else.

Re: luxcoreui error sensetivity

Posted: Thu Apr 11, 2019 6:17 pm
by nigec
I'll bare it in mind.
I've isolated the problem, it looks like a hack for a 3rd party plugin