Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: soulkoder on 2017-03-31, 20:53:55

Title: [feedback] Render nodes don't start and max process remains idle in background
Post by: soulkoder on 2017-03-31, 20:53:55
Bug description : Render nodes don't start and max process remains idle in background.

When a render starts in the host, all nodes start loading max and it goes well until the script editor window appears with highlight on line 9

"     region = viewport.getRegionRect (viewport.activeViewport);"

then the script window disappears and max process remains idle, no rendering happens in nodes.

as a test, I modified the file "post.ms" to

Code: [Select]

global wasCancelled = false;
do (
  loadMaxFile (CoronaRenderer.CoronaFp.getSceneFilename()) quiet:true;
  global cam = getNodeByName(CoronaRenderer.CoronaFp.getSlaveCamera());
  global rtype = getRenderType();
  if (cam == undefined) then
    render cancelled:&wasCancelled frame:(CoronaRenderer.CoronaFp.getSlaveFrame()) vfb:off renderType:rtype; else
    render cancelled:&wasCancelled frame:(CoronaRenderer.CoronaFp.getSlaveFrame()) vfb:off camera:cam renderType:rtype;
  loadMaxFile "C:/Users/John/AppData/Local/CoronaRenderer/DrData/corona_dr.max" quiet:true;
  render vfb:false;
) while wasCancelled == false


and the problem was solved when the nodes started max !

of course this file is over-written each time the DR starts so it's not a real solution.

Corona version :

Quote
Corona version: 1.6 DailyBuild Mar 29 2017
Full-speed, Non-debug, MaxSDK 2016
Build timestamp: Mar 29 2017 22:56:27
Defines: Wide RGB
Title: Re: Render nodes don't start and max process remains idle in background
Post by: sevecek on 2017-03-31, 21:18:04
Thanks for the report, what version of 3ds Max do you have?
Title: Re: Render nodes don't start and max process remains idle in background
Post by: soulkoder on 2017-03-31, 22:01:45
2016 with SP3

Windows 7 x64 SP1
Title: Re: Render nodes don't start and max process remains idle in background
Post by: soulkoder on 2017-04-03, 12:22:08
Any updates ?
Title: Re: Render nodes don't start and max process remains idle in background
Post by: sevecek on 2017-04-03, 13:32:28
Could you share the scene that's causing this bug?

EDIT: Have you selected any viewport before rendering? I've found that the render doesn't start on slaves if there is no active viewport in the scene. Could it be the issue you describe?
Title: Re: Render nodes don't start and max process remains idle in background
Post by: sevecek on 2017-04-04, 14:44:46
Please try the latest daily build (17/04/03) and let me know if the issue is resolved.
Title: Re: [feedback] Render nodes don't start and max process remains idle in background
Post by: soulkoder on 2017-04-04, 19:02:40
With the latest build mentioned, the nodes start correctly and it renders well ...

Thanks ...

Why should we always use a camera view instead of a perspective view when rendering ?

using a perspective view gives me incorrect results.
Title: Re: [feedback] Render nodes don't start and max process remains idle in background
Post by: Ondra on 2017-04-04, 19:23:03
because there is bug in 3dsmax causing incorrect free view to be rendered - only cameras can be safely selected for rendering on slaves