Vi ringrazio per le risposte!
Avevo provato a lanciare lwsn.exe da riga di comando, funziona tutto perfettamente (è la soluzione che uso provvisoriamente).
Ottimo il consiglio di lw 10, purtroppo ho letto che la versione linux è ancora in beta... oltretutto con wine posso far girare svariati altri motori di rendering.
Ho modificato lo script nel modo seguente:
Codice:
SCENE=subprocess.Popen(['winepath', '-w', SCENE], stdout=subprocess.PIPE).communicate()[0]
PROJECTDIR=subprocess.Popen(['winepath', '-w', PROJECTDIR], stdout=subprocess.PIPE).communicate()[0]
CONFIGDIR = subprocess.Popen(['winepath', '-w', CONFIGDIR], stdout=subprocess.PIPE).communicate()[0]
WORKDIR="/var/drqueue/render/Lightwave/Programs"
ENGINE_PATH="wine lwsn.exe"
# change into workdir, better for wine startup
os.chdir(WORKDIR)
# set env variable, so wine can access the xserver even though we are rendering headless
#os.environ["DISPLAY"]=":1"
BLOCK = DRQUEUE_FRAME + DRQUEUE_BLOCKSIZE - 1
if BLOCK > DRQUEUE_ENDFRAME:
BLOCK = DRQUEUE_ENDFRAME
#ENGINE_PATH="wine /var/drqueue/render/LightWave/Programs/lwsn"
command = ENGINE_PATH+" -3 -c"+CONFIGDIR+" -d"+PROJECTDIR+" "+SCENE+" "+str(DRQUEUE_FRAME)+" "+str(BLOCK)+" "+str(DRQUEUE_STEPFRAME)
Purtroppo il risultato è sempre un errore, i parametri vengono passati correttamente ma vengono inseriti anche degli a capo.
In più devo racchiudere tra "" i percorsi altrimenti non vengono interpretati correttamente.
Codice:
wine lwsn.exe -3 -cD:\Lightwave\Config
-dD:\Content
D:\Content\Scenes\Benchmark_Red_Teapots.lws
1 1 1
err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context.
err:module:attach_process_dlls "opengl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"D:\\Lightwave\\Programs\\lwsn.exe" failed, status c0000142
/bin/sh: -dD:Content: not found
/bin/sh: D:ContentScenesBenchmark_Red_Teapots.lws: not found
/bin/sh: 1: not found
Requeueing frame...
Effettivamente senza X non funziona, ma questa parte mi spaventa meno in quanto ho già trovato un tutorial abbastanza aggiornato.
Segnalibri