Re: Network rendering support
Posted: Sun Jan 28, 2018 1:22 pm
Thanks for the summary. Then I'll look into wxPython.
Show your work, get help, participate in development
http://forums.luxcorerender.org/
fall on this on the web : https://www.josephrex.me/getting-starte ... in-python/Dade wrote: ↑Sun Jan 28, 2018 1:06 pmThe problem is the network rendering code is now written in Python so we would have C++ GUI calling Python network code (something still to explore) and than Python network code calling C++ pyluxcore, it looks like a recipe for troubles.
As far as I have seen at the moment:
- https://www.wxpython.org/ looks like a good option;
- I really like Qt but I have been able to understand the dual license mess of https://www.riverbankcomputing.com/soft ... /download5 and if we can use it;
- https://wiki.qt.io/PySide is another Qt, the license is ok but it looks like it is not actively developed anymore.
- Tk: I was using Tcl/Tk 30 years ago, the GUI looks prehistoric but Tk is included in Python, this is a major selling point.
Wx looks like the best option at the moment for developing all PyLuxCoreTools GUIs but I'm quite confused.
Conclusion:
Building GUI programs may be a challenge but as the world evolves, it is very necessary. You should also not directly use generated code from pyuic because you may want to make changes to the UI at any point. Each compilation with pyuic will make you lose your changes you’ve made on the generated code. I’ve chosen Qt as my best module for building GUI. You may choose something else that works for you but from what I hear, Tkinter has a lot of downsides so it’s not recommended.
edit2: Something else: https://gist.github.com/takluyver/f7d95b0354a01bae2428http://hselab.org/pyqt5-getting-started.html wrote:Since hillmaker is Apache 2.0 licensed, should be no problem to use PyQt but then the combined package might have to be GPL licensed (not that that's a deal breaker).
__ Well done and great flexibility for a render engine in Alpha stage- it is now possible to rendering nodes with OpenCL support and nodes without (i.e. mix PATHOCL and PATHCPU for instance).
Code: Select all
yaddayadda
Traceback (most recent call last):
File "samples/pyluxcorenetconsole/pyluxcorenetconsole.py", line 38, in <module>
cmd.main(sys.argv)
File "./lib/pyluxcoretools.zip/pyluxcoretools/pyluxcorenetconsole/cmd.py", line 148, in main
File "./lib/pyluxcoretools.zip/pyluxcoretools/pyluxcorenetconsole/cmd.py", line 95, in Exec
self.cmdqueue = []
TypeError: 'NoneType' object is not iterable
yaddayadda
Code: Select all
parser.add_argument("-n", "--nodes", metavar="IPADDRESS", nargs="+",
default="",
help="rendering nodes ip addresses")
Code: Select all
...
[MainThread][2018-01-28 19:05:19,524] [LuxCore][1468.316] [PathOCLBaseRenderThread::2] Kernels compilation time: 8ms
[MainThread][2018-01-28 19:05:19,551] Received command: GET_STATS
[MainThread][2018-01-28 19:05:19,576] [Elapsed time: 1sec][Samples 0][Avg. samples/sec 0.00M on 0.0K tris]
[MainThread][2018-01-28 19:05:29,577] Received command: GET_STATS
[MainThread][2018-01-28 19:05:29,631] [Elapsed time: 11sec][Samples 0][Avg. samples/sec 0.00M on 0.0K tris]
...
Going now to recompile osx too and check later cpu ocl ( i normally don't use it along with way faster gpu's )[MainThread][2018-01-28 21:05:01,538] [LuxCore][19.120] [PathOCLBaseRenderThread::2] Kernels compilation time: 8ms
[MainThread][2018-01-28 21:05:01,565] Received command: GET_STATS
[MainThread][2018-01-28 21:05:01,591] [Elapsed time: 1sec][Samples 0][Avg. samples/sec 0.00M on 0.0K tris]
[MainThread][2018-01-28 21:05:11,591] Received command: GET_STATS
[MainThread][2018-01-28 21:05:11,615] [Elapsed time: 11sec][Samples 330][Avg. samples/sec 62.15M on 0.0K tris]
[MainThread][2018-01-28 21:05:21,615] Received command: GET_STATS
[MainThread][2018-01-28 21:05:21,660] [Elapsed time: 21sec][Samples 657][Avg. samples/sec 64.67M on 0.0K tris]