Page 2 of 5

Re: Moving from classic LuxRender

Posted: Tue Apr 10, 2018 2:51 pm
by Dade
klayman wrote: Tue Apr 10, 2018 2:42 pm Thanks again! Unfortunately, I'm not good at coding. I need a wrapper for the pyluxcoreconsole.cmd as I'm trying to render on a remote machine (not within my local network). I tried to create the luxcoreconsole.py file:
My solution was for netnode, with netconsole (note: "netconsole" not "console", they are 2 different tools now) you have to pass as argument the file to render.

But there is more, do you want to run all nodes and the console on a remote network ? Or they are on different networks ? Auto-discovery works only on local network (where broadcast service is available).

Re: Moving from classic LuxRender

Posted: Tue Apr 10, 2018 3:09 pm
by klayman
Actually, I don't need any networking between working nodes at all. It would be fine if I could ssh to some remote host and just submit a batch of files to render from command line.

Re: Moving from classic LuxRender

Posted: Tue Apr 10, 2018 3:39 pm
by Dade
klayman wrote: Tue Apr 10, 2018 3:09 pm Actually, I don't need any networking between working nodes at all. It would be fine if I could ssh to some remote host and just submit a batch of files to render from command line.
So you are you going to use a single rendering node ? That is a different problem and it is very easy to solve:

1) export in binary format from BlendLuxCore (i.e. .bcf file);

2) transfer the file on the remote machine;

3) download LuxCoreRender (OpenCL-less version I guess) on the remote machine and unpack the archive;

4) run something like:

Code: Select all

./luxcoreconsole -D batch.haltspp 2000 scene.bcf

Re: Moving from classic LuxRender

Posted: Wed Apr 11, 2018 1:02 am
by klayman
Dade wrote: Tue Apr 10, 2018 3:39 pm 4) run something like:

Code: Select all

./luxcoreconsole -D batch.haltspp 2000 scene.bcf
The problem was that there is no luxcoreconsole binary in the LuxCoreRender standalone archives (I asked about this in the first post here). But it's included with the SDK and works fine, thank you! There is a glibc version mismatch on the remote host though, but it's unrelated to this discussion and I hope I'll be able to workaround this.

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 6:27 am
by lighting_freak
Hi all,

I`m running into some issues while testing the "network rendering".
My operating system in Windwos 7.
First I was trying to open LuxCore network render from Blender.
After pressing the button an GUI appears that allows me select betwenn NetNode or NetConsole.
OK that seems to work like described in the wiki, but after selecting one of these options nothing else happens.

My next attempt was running the pyluxcorettols.exe from Desktop, but that leads to identical result.
Last test I did was running the *.exe from command prompt and at least I'm receiving this error message after selection of NetConsole:

Code: Select all

C:\>C:\Users\Martin\Downloads\luxcorerender-v2.1alpha4-win64-opencl\pyluxcoretoo
l.exe
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.umath failed to import
ImportError: numpy.core.umath failed to import

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pyluxcoretool.py", line 74, in <module>
  File "C:\Users\Martin\AppData\Local\Temp\_MEI52322\pyluxcoretools.zip\pyluxcor
etools\pyluxcoremenu\cmd.py", line 59, in main
  File "C:\Users\Martin\AppData\Local\Temp\_MEI52322\pyluxcoretools.zip\pyluxcor
etools\pyluxcorenetconsole\ui.py", line 442, in ui
SystemError: <Boost.Python.function object at 0x0000000002BD1580> returned a res
ult with an error set
[1724] Failed to execute script pyluxcoretool
Slightly different message while selecting NetNode option:

Code: Select all

C:\>C:\Users\Martin\Downloads\luxcorerender-v2.1alpha4-win64-opencl\pyluxcoretoo
l.exe
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.umath failed to import
ImportError: numpy.core.umath failed to import

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pyluxcoretool.py", line 74, in <module>
  File "C:\Users\Martin\AppData\Local\Temp\_MEI56362\pyluxcoretools.zip\pyluxcor
etools\pyluxcoremenu\cmd.py", line 57, in main
  File "C:\Users\Martin\AppData\Local\Temp\_MEI56362\pyluxcoretools.zip\pyluxcor
etools\pyluxcorenetnode\ui.py", line 125, in ui
SystemError: <Boost.Python.function object at 0x0000000002BD5530> returned a res
ult with an error set
[324] Failed to execute script pyluxcoretool
Does anyone know what`s wrong?
Thanks for helping me.

BR

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 7:20 am
by acasta69
Pyinstaller was not including numpy within the modules packed in pyluxcoretool.exe
This should now be fixed.

If you need a working version immediately, let me know: the file is too large to attach it here, so I have to send it in other way.

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 10:07 am
by lighting_freak
Hi acasta69,

well, I woudn*t die if I dont have this option available, but I would like to continue my experiments.
Do you see a simple way to tranfer the fixed data to me?
Thanks in advance.

BR

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 11:30 am
by acasta69

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 2:56 pm
by lighting_freak
Hi,

thank you for the quick update.
The NetConsole is running now...

Now we came up with some new problems.
I`ve exported a blender render setup using the binary option (as described).
After opening the Job in NetConsole this message appears:

Code: Select all

LuxCore 2.1alpha4
NetBeaconReceiver thread started.
Creating single image render farm job: C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001.bcf
New render farm job: C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001.bcf
Job file md5: 23f64fdf2ce68b66378e255ec7176e5f
Previous scene MD5: 23f64fdf2ce68b66378e255ec7176e5f
Current scene MD5:  23f64fdf2ce68b66378e255ec7176e5f
C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001-netrendering exists and is valid. Continue the rendering
[Errno 2] No such file or directory: 'C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001-netrendering/render.seed'
Traceback (most recent call last):
  File "C:\Users\Martin\AppData\Local\Temp\_MEI63842\pyluxcoretools.zip\pyluxcoretools\renderfarm\renderfarmjobsingleimage.py", line 148, in __CheckWorkDirectoryMD5AndSeed
    oldSeed = fsutils.ReadFileLine(self.seedFileName)
  File "C:\Users\Martin\AppData\Local\Temp\_MEI63842\pyluxcoretools.zip\pyluxcoretools\utils\filesystem.py", line 21, in ReadFileLine
    with open(fileName, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001-netrendering/render.seed'
Deleting all films and MD5s in: C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001-netrendering
-------------------------------------------------------
Job started: C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001.bcf
-------------------------------------------------------
Film merge thread started
Sorry for causing that much trouble.

BR

Re: Moving from classic LuxRender

Posted: Thu Oct 04, 2018 3:35 pm
by Dade
You seem to have some incomplete file (may be created from a previous run), can you try to delete "C:/Users/Martin/Desktop/Job/Subsurface_Scattering_LuxCore/00001-netrendering"directory and re-run the rendering ?

P.S. Network rendering is highly un-test.