Rendering in very large resolutions

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  09 September 2007
Rendering in very large resolutions

Is there a way to render a very large image in "pieces"? Like, instead of having to wait hours for the complete render, you render one "piece" of the image at a time and after that you merge them in Photoshop?

Thanks in advance...
 
  09 September 2007
Yes, there is.
You can do a command line render with the -reg flag to choose the region you wish to render.
For example, to render a 4000 x 2400 image divided in four parts, you would have something like this:

render -r mr -reg 0 2000 0 1200 -cam camera1 -im image_01 sceneFile.mb
render -r mr -reg 0 2000 1200 2400 -cam camera1 -im image_02 sceneFile.mb
render -r mr -reg 2000 4000 0 1200 -cam camera1 -im image_03 sceneFile.mb
render -r mr -reg 2000 4000 1200 2400 -cam camera1 -im image_04 sceneFile.mb

You can put all these lines in a text file with a .bat extension and just run the file.
Also, if you're rendering with mental ray using GI ou FG, remember to do a render in a lowres version just to save the GI and FG maps, then render the highres parts using the saved maps. Otherwise, you may have seams when you stitch the regions in photoshop.

Look for command line render in the help files to get some more details about the flags you can use.

Good luck,
Kako.
 
  09 September 2007
Cool beans, that's good solid practical info
 
  09 September 2007
That's what I was looking for. Thanks a lot!
 
  09 September 2007
The freeware renderpal is a good program giving you a GUI for rendering (Google it)
__________________
Maya 2012-2013, Adobe CS4-6
Lenovo S20, Quadro 2000, 16 GB RAM
Mac mini Server 2 Ghz i7, 16 GB RAM, Intel HD3000
 
  09 September 2007
Originally Posted by Kako:
You can put all these lines in a text file with a .bat extension and just run the file.
Also, if you're rendering with mental ray using GI ou FG, remember to do a render in a lowres version just to save the GI and FG maps, then render the highres parts using the saved maps. Otherwise, you may have seams when you stitch the regions in photoshop.

Look for command line render in the help files to get some more details about the flags you can use.

Good luck,
Kako.


Sorry for my ignorance, but there are no problems in rendering a low res version for the FG maps? It has nothing to do with the overall quality of the final render?
 
  09 September 2007
Originally Posted by Xenophobe: Sorry for my ignorance, but there are no problems in rendering a low res version for the FG maps? It has nothing to do with the overall quality of the final render?

No problem.
FG rays, GI photons are only shot for calculation, so using a map avoid the rays and photons to behave differently from one render to another.
So even if the resolutions are different, the number of rays/photon, as well as their behaving, stay the same.

Good luck, actually I've been wondering about seperate renders too
But hey Kako, do I just copy/paste those lines in notepad then change the ext to .bat... and I just run ( double click) it ? I mean, do I have to open maya , open my scene, position my camera then, double click on that .bat file ?

sry, Im a bit confused too :P

thx
__________________
You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life.

 
  09 September 2007
The batch renderer is actually a separate program, on Windows it's called mayabatch.exe.

When you invoke the batch renderer from the Maya menus, then mayabatch.exe runs in the background. The idea is that you can continue to work in the Maya GUI while rendering takes place behind the scenes. Practically speaking, this is only worthwhile if you have multiple processors and you can assign render jobs per processor.

If you type "render" at the command line (or invoke it from a batch file) then windows recognizes this as an alias for "mayabatch.exe."

Command line or batch file rendering is almost always a better choice than rendering from the Maya GUI, because the GUI uses up a lot of RAM and system resources. Sometimes, rendering from the command line can make the difference between running out of RAM or not. And of course, if you run out of RAM, your render runs at 10% speed because the hard drive is going crazy trying to swap out the virtual memory.
 
  09 September 2007
And correct me if I'm wrong: when you type 'render' at the command prompt without using any additional flags, the program deduces you're using the options you saved in the 'Render Global Settings', right?
 
  09 September 2007
Originally Posted by Xenophobe: And correct me if I'm wrong: when you type 'render' at the command prompt without using any additional flags, the program deduces you're using the options you saved in the 'Render Global Settings', right?

Yes, it does. It considers all the settings you have in your saved scene, including the render layers you have set.
Changing the image resolution and reusing FG maps would be a problem if you have FG based on radius control and view dependency.

Originally Posted by myself44: But hey Kako, do I just copy/paste those lines in notepad then change the ext to .bat... and I just run ( double click) it ? I mean, do I have to open maya , open my scene, position my camera then, double click on that .bat file ?

No need to open maya. As DrYo said, it runs as a separate program. You can double click it or run in from the command line too. If you do open maya and change the camera position though, remember to save the file again so that the changes are considered in the batch render.

Kako.
 
  09 September 2007
BTW, you can override the Render Settings in the scene file using command line flags. For example, the scene file could have a frame range of 1 to 100 in Render Settings, but you could specify to render frames 101 to 200 with command line flags:

render -s 101 -e 200 myscene.ma
 
  09 September 2007
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:12 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.