LuxCoreRender Standalone CPU?

Discussion related to the LuxCore functionality, implementations and API.
User avatar
matsbtegner
Posts: 8
Joined: Mon Feb 08, 2021 9:03 pm

LuxCoreRender Standalone CPU?

Post by matsbtegner »

Hello everyone. I am a new LuxCoreRender user. Is it possible to render scenes using the CPU on LuxCore Standalone like in Blender? I'm running it right now on a laptop with limited VRAM so I am not interested in using luxcoreui which seems to be GPU only, I also have a small render farm with 15 quad-core machines with 4GB RAM each. I am running Slackware Linux 64-bit.
Sincerely,
Mats
Last edited by matsbtegner on Sat Feb 13, 2021 6:10 pm, edited 1 time in total.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCoreRender Standalone CPU?

Post by Dade »

matsbtegner wrote: Sat Feb 13, 2021 2:58 pm Hello everyone. I am a new LuxCoreRender user. Is it possible to render scenes using the CPU on LuxCore Standalone like in Blender? I'm running it right now on a laptop with limited VRAM so I am not interested in using luxcoreui which seems to be GPU only, I also have a small render farm with 15 quad- core machines with 4GB RAM each. I am running Slackware Linux 64-bit.
LuxCoreUI can work with CPU too, you have just to set inside the render.cfg or from command line the usage of PATHCPU (i.e. the CPU-only render engine) instead of PATHOCL (i.e. CPU+GPU render engine).

The other option is to use pyluxcoretools "console" to do command line only rendering.
Support LuxCoreRender project with salts and bounties
User avatar
matsbtegner
Posts: 8
Joined: Mon Feb 08, 2021 9:03 pm

Re: LuxCoreRender Standalone CPU?

Post by matsbtegner »

Okay, thanks for your reply. I will test using the latest release from GitHub.
Cornell box scene fails to render:
bash-5.1$ ./luxcoreui
LuxCoreUI v2.5beta1 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][6.739] Configuration:
[LuxCore][6.739] film.width = "800"
[LuxCore][6.739] film.height = "800"
[LuxCore][6.739] scene.file = "scenes/cornell/cornell.scn"
[LuxCore][6.739] path.photongi.indirect.enabled = "0"
[LuxCore][6.739] path.photongi.caustic.enabled = "0"
[LuxCore][6.739] path.pathdepth.total = "5"
[LuxCore][6.739] film.imagepipelines.0.0.type = "TONEMAP_LINEAR"
[LuxCore][6.740] film.imagepipelines.0.0.scale = "1"
[LuxCore][6.740] film.imagepipelines.0.1.type = "GAMMA_CORRECTION"
[LuxCore][6.740] film.imagepipelines.0.1.value = "2.2"
[LuxCore][6.740] film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][6.740] film.outputs.0.index = "0"
[LuxCore][6.740] film.outputs.0.filename = "normal.png"
[LuxCore][6.740] film.outputs.1.type = "RGB_IMAGEPIPELINE"
[LuxCore][6.740] film.outputs.1.index = "1"
[LuxCore][6.740] film.outputs.1.filename = "denoised.png"
[LuxCore][6.740] film.outputs.2.type = "ALBEDO"
[LuxCore][6.740] film.outputs.2.filename = "cornell_ALBEDO.png"
[LuxCore][6.740] film.outputs.3.type = "AVG_SHADING_NORMAL"
[LuxCore][6.740] film.outputs.3.filename = "cornell_AVG_SHADING_NORMAL.exr"
[LuxCore][6.740] File Name Resolver Configuration:
[LuxCore][6.740] .
[LuxCore][6.740] /home/mats/LuxCore/scenes/cornell
[SDL][6.740] Reading scene: ./cornell.scn
[SDL][6.740] Define ImageMap: NamedObject
[SDL][6.740] Material definition: Khaki
[SDL][6.740] Material definition: HalveRed
[SDL][6.740] Material definition: DarkGreen
[SDL][6.741] Material definition: Light
[SDL][6.741] Camera type: perspective
[SDL][6.741] Camera position: Point[-2.78, -8, 2.73]
[SDL][6.741] Camera target: Point[-2.78, 2, 2.73]
[SDL][6.741] Camera clipping plane disabled
RPly: Error reading 'x' of 'vertex' number 0
RenderConfig loading error:
Unable to parse PLY file './Khaki.ply'
Done.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCoreRender Standalone CPU?

Post by Dade »

matsbtegner wrote: Sat Feb 13, 2021 5:40 pm Okay, thanks for your reply. I will test using the latest release from GitHub.
Cornell box scene fails to render:
You have probably a misconfigured Git checkout replacing Unix line termination with MS-DOS line termination (or viceversa) in .ply files. If you download the .zip, available from GithHub, with all the sources, it should work fine.
Support LuxCoreRender project with salts and bounties
User avatar
matsbtegner
Posts: 8
Joined: Mon Feb 08, 2021 9:03 pm

Re: LuxCoreRender Standalone CPU?

Post by matsbtegner »

Nope. I downloaded the LuxCore-master.zip and the Cornell Box scene still fails to load. The Example scene OrangeJuice renders fine after modifying the render.cfg.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCoreRender Standalone CPU?

Post by Dade »

matsbtegner wrote: Sat Feb 13, 2021 10:11 pm Nope. I downloaded the LuxCore-master.zip and the Cornell Box scene still fails to load. The Example scene OrangeJuice renders fine after modifying the render.cfg.
Can you post your "Khaki.ply" file ?
Support LuxCoreRender project with salts and bounties
User avatar
matsbtegner
Posts: 8
Joined: Mon Feb 08, 2021 9:03 pm

Re: LuxCoreRender Standalone CPU?

Post by matsbtegner »

These ply-files fails:
bash-5.1$ ./luxcoreui
LuxCoreUI v2.5beta1 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][38.528] Configuration:
[LuxCore][38.533] film.width = "640"
[LuxCore][38.533] film.height = "480"
[LuxCore][38.533] batch.halttime = "0"
[LuxCore][38.533] scene.file = "scenes/classroom/classroom-hdr.scn"
[LuxCore][38.533] sampler.type = "METROPOLIS"
[LuxCore][38.534] opencl.cpu.use = "1"
[LuxCore][38.534] opencl.gpu.use = "1"
[LuxCore][38.534] opencl.gpu.workgroup.size = "64"
[LuxCore][38.534] screen.refresh.interval = "100"
[LuxCore][38.534] path.maxdepth = "8"
[LuxCore][38.534] path.russianroulette.depth = "4"
[LuxCore][38.534] File Name Resolver Configuration:
[LuxCore][38.534] .
[LuxCore][38.534] /home/mats/Programming/LuxCore/scenes/classroom
[SDL][38.534] Reading scene: ./classroom-hdr.scn
[SDL][38.553] Define ImageMap: NamedObject
[SDL][38.572] Material definition: chrome
[SDL][38.596] Material definition: mirror
[SDL][38.596] Material definition: lampshades_mat1
[SDL][38.596] Material definition: lampshades_mat2
[SDL][38.596] Material definition: lampshades
[SDL][38.596] Material definition: lights_mat1
[SDL][38.597] Material definition: lights_mat2
[SDL][38.597] Material definition: lights
[SDL][38.597] Material definition: desktop
[SDL][38.597] Material definition: floor
[SDL][38.597] Material definition: chair
[SDL][38.597] Material definition: chalkboard
[SDL][38.597] Material definition: rubber
[SDL][38.597] Material definition: walls
[SDL][38.597] Material definition: white_paint
[SDL][38.597] Material definition: white_plastic
[SDL][38.597] WARNING: deprecated property scene.camera.lookat
[SDL][38.597] Camera type: perspective
[SDL][38.597] Camera position: Point[-6.07891, 0.763888, -0.244332]
[SDL][38.597] Camera target: Point[3.86243, -0.287569, -0.49751]
[SDL][38.597] Camera clipping plane disabled
RPly: Error reading 'x' of 'vertex' number 0
RenderConfig loading error:
Unable to parse PLY file './chair.ply'
Attachments
Khaki.ply.gz
(601 Bytes) Downloaded 130 times
chair.ply.gz
(272.36 KiB) Downloaded 129 times
Last edited by matsbtegner on Sun Feb 14, 2021 10:28 am, edited 2 times in total.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCoreRender Standalone CPU?

Post by Dade »

You must post the file as attachment so I can compare the md5sum with the original file. Anyway, it is probably your "unzip" to try to replace Unix line termination with MS-DOS line termination.
Support LuxCoreRender project with salts and bounties
User avatar
matsbtegner
Posts: 8
Joined: Mon Feb 08, 2021 9:03 pm

Re: LuxCoreRender Standalone CPU?

Post by matsbtegner »

I have attached the ply-files now. The classroom and the Cornell box scenes fail to load.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCoreRender Standalone CPU?

Post by Dade »

Try to set your locale to US, your system seems to expect a "," instead of "." as decimal separator (and ignore luxcoreui request for a "C" locale). Have you compiled luxcoreui on your own or are you using a daily build ?
Support LuxCoreRender project with salts and bounties
Post Reply