LuxCore for Maya

Discussion related to the LuxCore functionality, implementations and API.
User avatar
motaman
Posts: 34
Joined: Tue Mar 12, 2019 4:03 pm
Location: Mexico
Contact:

Re: LuxCore for Maya

Post by motaman »

Acasta69 is the hero we need :!: :!: :!: :!: :!: :!:
instagram: motaman.art
User avatar
motaman
Posts: 34
Joined: Tue Mar 12, 2019 4:03 pm
Location: Mexico
Contact:

Re: LuxCore for Maya

Post by motaman »

Dade wrote: Tue Mar 12, 2019 5:28 pm BTW, interesting initiative: https://www.vfxplatform.com (from the linked AutoDesk thread).
It is! I just found out about it's existance :o :shock:
instagram: motaman.art
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: LuxCore for Maya

Post by acasta69 »

Dade wrote: Tue Mar 12, 2019 5:29 pm
motaman wrote: Tue Mar 12, 2019 5:26 pm yeahh! you even have pymel , everything can be accessed using python in maya
So it sounds like it will a lot easier and faster to work with Python. Let's see if Acasta69 can help us :?:
Ok, I'll try in next days
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
motaman
Posts: 34
Joined: Tue Mar 12, 2019 4:03 pm
Location: Mexico
Contact:

Re: LuxCore for Maya

Post by motaman »

acasta69 wrote: Tue Mar 12, 2019 6:01 pm
Dade wrote: Tue Mar 12, 2019 5:29 pm
motaman wrote: Tue Mar 12, 2019 5:26 pm yeahh! you even have pymel , everything can be accessed using python in maya
So it sounds like it will a lot easier and faster to work with Python. Let's see if Acasta69 can help us :?:
Ok, I'll try in next days
:o :shock: :o ok i will try too ! :D hello Acasta69
instagram: motaman.art
User avatar
motaman
Posts: 34
Joined: Tue Mar 12, 2019 4:03 pm
Location: Mexico
Contact:

Re: LuxCore for Maya

Post by motaman »

instagram: motaman.art
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: LuxCore for Maya

Post by Sharlybg »

motaman wrote: Wed Mar 13, 2019 12:22 am i will be posting here.

https://github.com/motamano/MayaLuxCore

:) :geek:
Look like a fresh juice on a sunny day :D
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: LuxCore for Maya

Post by acasta69 »

Here you can find binaries for Python 2.7:
https://www.dropbox.com/s/2dl2xobx926qx ... 27.7z?dl=0

Note that there is no pyluxcoretool.exe included.
Also note that numpy is required for pyluxcore to work.

I have tried to run the script that B.Y.O.B. linked here:
viewtopic.php?f=4&t=371&p=4098&hilit=Co ... put#p4116

Even if it gives an error at the end, overall it seems to work and produces correct output, so...
I hope these binaries work for you! :D

I report the error here as reference:

Code: Select all

[LuxCore][5.554] Outputting film: pipeline_contour_lines.png type: 2
[LuxCore][5.741] Outputting film: IRRADIANCE.exr type: 23
[LuxCore][5.819] Outputting film: RAYCOUNT.exr type: 21
[LuxCore][5.866] Outputting film: RGB.exr type: 0
Traceback (most recent call last):
  File "pyluxcore_demo.py", line 154, in <module> main()
  File "pyluxcore_demo.py", line 141, in main
    session.GetFilm().GetOutputFloat(pyluxcore.FilmOutputType.IRRADIANCE, buffer, 0)
RuntimeError: Unsupported data type in Film.GetOutputFloat(): array
[LuxCore][6.022] [Intel(R) HD Graphics 530 Intersect] Memory used for OpenCL image pipeline: 17477Kbytes
This does not happen when run from python 3.5.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: LuxCore for Maya

Post by Dade »

acasta69 wrote: Wed Mar 13, 2019 2:13 pm This does not happen when run from python 3.5.
The data type used by the python demo code has been introduced in Python v3.x, you just need to use another data type for v2.7 (https://github.com/LuxCoreRender/LuxCor ... mo.py#L210). pyluxcore.pyd should be fine.
Support LuxCoreRender project with salts and bounties
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: LuxCore for Maya

Post by acasta69 »

Dade wrote: Wed Mar 13, 2019 2:49 pm The data type used by the python demo code has been introduced in Python v3.x, you just need to use another data type for v2.7 (https://github.com/LuxCoreRender/LuxCor ... mo.py#L210). pyluxcore.pyd should be fine.
Thanks for explaining Dade :)
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
motaman
Posts: 34
Joined: Tue Mar 12, 2019 4:03 pm
Location: Mexico
Contact:

Re: LuxCore for Maya

Post by motaman »

acasta69 wrote: Wed Mar 13, 2019 2:13 pm Here you can find binaries for Python 2.7:
https://www.dropbox.com/s/2dl2xobx926qx ... 27.7z?dl=0

Note that there is no pyluxcoretool.exe included.
Also note that numpy is required for pyluxcore to work.

I have tried to run the script that B.Y.O.B. linked here:
viewtopic.php?f=4&t=371&p=4098&hilit=Co ... put#p4116

Even if it gives an error at the end, overall it seems to work and produces correct output, so...
I hope these binaries work for you! :D

I report the error here as reference:

Code: Select all

[LuxCore][5.554] Outputting film: pipeline_contour_lines.png type: 2
[LuxCore][5.741] Outputting film: IRRADIANCE.exr type: 23
[LuxCore][5.819] Outputting film: RAYCOUNT.exr type: 21
[LuxCore][5.866] Outputting film: RGB.exr type: 0
Traceback (most recent call last):
  File "pyluxcore_demo.py", line 154, in <module> main()
  File "pyluxcore_demo.py", line 141, in main
    session.GetFilm().GetOutputFloat(pyluxcore.FilmOutputType.IRRADIANCE, buffer, 0)
RuntimeError: Unsupported data type in Film.GetOutputFloat(): array
[LuxCore][6.022] [Intel(R) HD Graphics 530 Intersect] Memory used for OpenCL image pipeline: 17477Kbytes
This does not happen when run from python 3.5.
I tried to run the script but i get

Code: Select all

File "pyluxcoredemo.py", line 84
   print<"Blob [0]:",endl="")
SyntaxError: invalid syntax

:? I'm running python 2.7
instagram: motaman.art
Post Reply