Forum

#1 2016-06-04 10:44:30

soz
Member

renderfarm job

est-ce que c'est possible de lancer un job sur un system de renderfarm comme CGRU / deadline / backburner facilement

genre avec une commande : render.exe -file "projetGuerilla" -frame && -pass "renderPass"

demain je tentes d'installer coalition sur les machines de l'école en croisant les doigts pour que ça marche, mais je suis pas fan de ce manager... (cgru est au top !)


Tristan

Offline

 

#2 2016-06-08 10:23:43

mathieurey
Member

Re: renderfarm job

Hi Soz,
We are working at the studio with Coalition which is sufficient for our needs.
At Mopa School we are using Deadline without any problem.
They developped a plugin for guerilla working like a charm wink
I don't know cgru.

Offline

 

#3 2016-06-09 05:57:32

hulud
Guerilla dev, the guy to hug

Re: renderfarm job

Hi soz,

Here is a renderfarm plugin I wrote long time ago for CGRU. I don't garanty it still works with the latest version of CGRU, but you can give it a try or modify it.

http://guerillarender.com/download/cgru_renderfarm.lua

Put it in the plugins Guerilla directory, then select CGRU as render farm manager in Guerilla.

Best !


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#4 2016-06-10 06:48:07

soz
Member

Re: renderfarm job

Hell you good !!!


Tristan

Offline

 

#5 2016-11-22 15:55:58

soz
Member

Re: renderfarm job

hi guys !
j'essais de connecter guerilla a cgru car j'ai des etudiants qui utilisent d'autres moteur de rendu, du coup j'ai peur de galerer plus qu'autre chose avec coalition.

je n'y connait pas grand chose en lua du coup j'ai juste modifier les path dans ton script :

Code:

function CGRU:construct ()
    -- The CGRU server host
    LocalPlug (self, "CGRUGuerillaPath", Plug.NoSerial, types.string, "C:/Program Files/Guerilla Render/guerilla.exe")
    -- The CGRU server port
    LocalPlug (self, "CGRUAFCmd", Plug.NoSerial, types.string, "C:/cgru-windows/afanasy/bin/afcmd.exe")
end

mais ça me renvois une erreur :



Code:

------------------- LUA ERROR -------------------
c:\program files\guerilla render\plugins/cgru_renderfarm.lua(77) : attempt to index local 'file' (a nil value)
------------------- LUA STACK -------------------
[C](-1) : 0 (null)  C
c:\program files\guerilla render\plugins/cgru_renderfarm.lua(77) : 1 submit method Lua
..\ui\ga_rib_gen.lua(811) : 2 render method Lua
..\ui\ga_render_context.lua(141) : 3 GARenderContextCreateSequenceJobs global Lua
..\ui\ga_rib_gen.lua(901) : 4 render global Lua
..\ui\ga_rib_gen.lua(972) : 5 userrender global Lua
..\ui\lui_menu_render.lua(57) : 6 (null)  Lua
(tail call)(-1) : 7   tail
..\ui\lui_command.lua(72) : 8 execute method Lua
..\ui\lui_menu_popup.lua(275) : 9 _LUIMenuPopupOnLClick global Lua
..\ui\lui_menu_popup_entry.lua(7) : 10 onClick local Lua
..\ui\ui_mouse.lua(407) : 11 func local Lua
..\ui\ui_mouse.lua(487) : 12 (null)  Lua
[C](-1) : 13 (null)  C
c:\program files\guerilla render\plugins/cgru_renderfarm.lua(77) : 14 submit method Lua
..\ui\ga_rib_gen.lua(811) : 15 render method Lua
..\ui\ga_render_context.lua(141) : 16 GARenderContextCreateSequenceJobs global Lua
..\ui\ga_rib_gen.lua(901) : 17 render global Lua
..\ui\ga_rib_gen.lua(972) : 18 userrender global Lua
..\ui\lui_menu_render.lua(57) : 19 (null)  Lua
(tail call)(-1) : 20   tail
..\ui\lui_command.lua(72) : 21 execute method Lua
..\ui\lui_menu_popup.lua(275) : 22 _LUIMenuPopupOnLClick global Lua
..\ui\lui_menu_popup_entry.lua(7) : 23 onClick local Lua
..\ui\ui_mouse.lua(407) : 24 func local Lua
..\ui\ui_mouse.lua(487) : 25 (null)  Lua

quelqu'un peut m'aider?


Tristan

Offline

 

#6 2016-11-22 16:29:11

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

I don't know CGRU but you got an issue with the file open at line 76.
Be sure the file test.cgru exist at the right path


Philippe Llerena

Offline

 

#7 2016-11-22 16:30:41

soz
Member

Re: renderfarm job

yes I corrected this issu, now I'm trying to send my json file to cgru :p


Tristan

Offline

 

#8 2016-11-22 17:06:43

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

So has i understand your line command should look like?

C:/cgru-windows/afanasy/bin/afcmd json send "c:\tmp\test.cgru"


Philippe Llerena

Offline

 

#9 2016-11-22 17:50:30

soz
Member

Re: renderfarm job

ok it work thx philipp !
it just need to locate afcmd on the /start/afanasy/_afcmd path !
now i correct the script and publish !


Tristan

Offline

 

#10 2016-11-22 21:11:14

soz
Member

Re: renderfarm job

when I send this command in shell it return : path doesn't exist.
is that the way to lauch a .lua in batch file?

Code:

 C:/Program^ Files/Guerilla^ Render/guerilla.exe /lua  "D:/_bank/ARIES/cgru_test/jobs/test_002_00001.lua"

Tristan

Offline

 

#11 2016-11-22 22:55:03

Ben
Guerilla dev, the guy to hug

Re: renderfarm job

Hi Soz,

I don't know if the ^ is the legal character to escape spaces on Windows. But you must execute lua.exe instead of Guerilla :
Try this :

"C:\Program Files\Guerilla Render\lua.exeé" "D:\the\path\to\the\script.lua"

Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

#12 2016-11-22 22:56:55

Ben
Guerilla dev, the guy to hug

Re: renderfarm job

By the way, when you run a render in Batch mode (check the Render Passes, and switch Local to Batch) you will see in the jobs directory next to your project a .bat file. It contains the proper command to run to render frames in batch!

Cheers!


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

#13 2016-11-22 23:29:22

soz
Member

Re: renderfarm job

ok cool ! thx ben
j'ai trouvé la commande a executer :

Code:

cmd = 'start "" "'.. self.CGRUGuerillaPath:get ()..'" lua.exe "'..job:getscriptfile (frame)..'"'

ce qui m'embete c'est le start car quand je l'execute comme dans un .bat il skip le chemin a partir de c:/program

maintenant :

Code:

os.execute (self.CGRUAFCmd:get () .. " json send c:/tmp/test.cgru")

il m'execute pas _afcmd a la sortie du script alors qu'en commande prompt tout fonctionne xD

desolé de pas repondre en anglais j'ai les yeux qui fatiguent...


Tristan

Offline

 

#14 2016-11-23 12:22:10

soz
Member

Re: renderfarm job

comment on peut faire un os.setenv dans guerilla ? il me retourne systematiquement :
attempt to call field 'setenv' (a nil value)

je suis pas fort du tout en lua du coup je pit un peu rien...


Tristan

Offline

 

#15 2016-11-23 13:13:44

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

which env var are you trying to set?


Philippe Llerena

Offline

 

#16 2016-11-23 13:19:56

soz
Member

Re: renderfarm job

os.setenv ("PYTHONPATH","C:/cgru-windows/lib/python;C:/cgru-windows/afanasy/python")
os.setenv("CGRU_LOCATION","C:/cgru-windows")
os.setenv("AF_ROOT","C:/cgru-windows/afanasy")
os.setenv("CGRU_VERSION","2.1.0")


Tristan

Offline

 

#17 2016-11-23 13:36:30

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

Stupid question: why don't you set them in the os?


Philippe Llerena

Offline

 

#18 2016-11-23 13:37:56

soz
Member

Re: renderfarm job

because I need to set them to 50 pc ^^

but I'm thinking to do that with a bat file :p

Last edited by soz (2016-11-23 13:39:26)


Tristan

Offline

 

#19 2016-11-23 14:22:47

soz
Member

Re: renderfarm job

this way does'nt work too... try something else


Tristan

Offline

 

#20 2016-11-23 14:23:29

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

Bat seems the best way. Use this command for each variable

Code:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PYTHONPATH /t REG_EXPAND_SZ /d "C:/cgru-windows/lib/python;C:/cgru-windows/afanasy/python"

and reboot

Last edited by doubleailes (2016-11-23 14:24:06)


Philippe Llerena

Offline

 

#21 2016-11-23 14:33:36

doubleailes
Guerilla dev, the guy to hug

Re: renderfarm job

CGRU don't need this variable until your are trying to render with GR?

by the way, don't to add the previous variable like PYTHONPATH=%PYTHONPATH%,C:/cgru-windows/lib/python;C:/cgru-windows/afanasy/python


Philippe Llerena

Offline

 

#22 2016-11-23 16:15:02

soz
Member

Re: renderfarm job

I'm looking to send job to guerilla render ! and for that it's easyer to add those variable to dialog
for the env var it's ok ! thx !

now I'm working with python but I need to rebuild the job lua name (I'm too bad in lua)
job_id_00001.lua

I'm looking how to get the job Id to rebuild the name of the .lua file in my command (I don't use the JSON method but the af.py method)


Tristan

Offline

 

#23 2016-11-23 20:50:10

soz
Member

Re: renderfarm job

hell yeah !!! done !!!
I clean my scripts tomorrow and I publish that !!!


Tristan

Offline

 

#24 2017-05-14 09:55:01

soz
Member

Re: renderfarm job

est-ce qu'il y a une commande qui permet de récupérer le nom des LUA qui vont être crée ? jusque l  je le rebuildais mais ma methode n'est pas fiable a 100%...


Tristan

Offline

 

#25 2017-05-14 10:58:36

soz
Member

Re: renderfarm job

found ! the probleme is the change between of renderfarm system between guerilla 2 and guerilla !
thx


Tristan

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB