Jump to content

Why Does Houdini Freeze..


Jason

Recommended Posts

Why does Houdini freeze when generating interactively rendering a frame with shadowmaps and only return control once the primary image is being generated, and NOT if you output an IFD and render it from the commandline?

This is all with the "Render In Background" turned on. Is it because it can't complete the feeding the IFD into mantra until ray_quit is called? There must a way around this, no?

Sometimes the shadowmap render a large portion of the render and so you're not really doing much "background" rendering at all. I suppose it's possible to replace the mantra command with a wrapper that'll allow control to be returned to Houdini earlier, but perhaps there is way SESI can do this?

Link to comment
Share on other sites

Good question!

I'm just now coincidentally doing a job that uses shadow maps that take quite a while to generate, and waiting around to regain control gets pretty annoying. I have no idea why it does it though... if you dump the stream and compare it to a generated script (which returns control immediately when fed to mantra at the command line) they are identical.... so... dunno :(

A good RFE I think.

Cheers!

Link to comment
Share on other sites

You might try the following wrapper script

#!/bin/csh -f

set rcode = 1

onintr cleanup
# Save the ifd in a temp location
cat > /tmp/$$.ifd

# Now run mantra on the ifd
mantra $* < /tmp/$$.ifd
set rcode = $status

cleanup:
# Remove the tmp IFD
rm -f /tmp/$$.ifd

exit $rcode

However, you'll find that the suspend feature in the output driver dialog doesn't work. I think that Houdini is suspending the shell script (which doesn't suspend the actual render). I'm also not sure what would happen if /tmp got filled up while you were running the wrapper.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...