How to Command Line Batch Render

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Hi,
I don't know much about the command line possibilities of Octane.
I would like to know how / if you can create a .bat file to batch render multiple scenes (over night):

So something like:

render scene01.ocs;
render scnee02.ocs;
...

Is this possible? If so - How?

Thank you friends.

Refracty
User avatar
kubo
Posts: 1377
Joined: Wed Apr 21, 2010 4:11 am
Location: Madrizzzz

To do a batch render I usually follow this workflow. I setup all (light, materials, kernel) in a master scene in Octane. Then from that one I move the camera to frame the desire shot and setup the resolution (just a lower res of the same proportion I want for the final shot ie 1024x512 and later I'll render 4096x2048 using the command line) save an ocs with another name (I usually do it sequential, but whichever fits you), I repeat the last step for each camera I want. (note. since right now you can not pick rendertarget from command line it'll render with the preview one, keep it in mind).

When you have all your scenes go to notepad, create one line for each render:

i.e. "C:\Program Files\Refractive Software\Octane\octane" -e -g 0 -m "objectnodemesh.obj" -s 4000 --film-width 4096 --film-height 2048 -o "renderoutputpath_with_filename.png" "scenefile_and_filename.ocs"

(you only need to use "" if your names have spaces)

Create as many lines as you want. For a complete range of swithes and what they do refer to the manual. Save the file somewhere as name.bat, execute it and go to sleep. I use it all the time to get all my shots and works great.
Cheers
windows 7 x64 | 2xGTX570 (warming up the planet 1ºC at a time) | i7 920 | 12GB
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Hi Kubo,

thanks for the help so far.
It is working with 2.46b but does not with 2.48c.
With 2.48c I get the error: Could not load mesh ".
I think you have already told Abstrax about this bug.
Cheers
Refracty
User avatar
kubo
Posts: 1377
Joined: Wed Apr 21, 2010 4:11 am
Location: Madrizzzz

true, for the time being and till 248d (or whichever the next version is) you have to add this parameter <-r "filepath\meshnodename.obj"> that parameter as shown in the manual lets you reload with a different mesh that the one linked in the ocs file (does a relink on start) and it's the one used for the animation scripts to reload each different frame. For now just pointing to octane where is the original mesh it does the same.
windows 7 x64 | 2xGTX570 (warming up the planet 1ºC at a time) | i7 920 | 12GB
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Thank you Kubo,
I have just read that in Marcus post.
Cheers
R
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Is it possible to choose different cameras and/or render targets via command line?
That would be great.
If not what string do I need to replace to link a render target to a different camera?
Thank you mates.
Refracty
User avatar
face
Octane Plugin Developer
Posts: 3204
Joined: Sat Mar 06, 2010 2:10 pm
Location: Germany

Yes, you must only know the position, target, upvector and the fov.

An example:
--cam-up-x 0.0 --cam-up-y 1.0 --cam-up-z 0.0 --cam-target-x 0.0 --cam-target-y 0.0 --cam-target-z 0.0 --cam-pos-x 0.0 --cam-pos-y 0.0 --cam-pos-z -20.0 --cam-fov 60.0

You can also set the camera motion blur:
--cam-motion-up-x 0.0 --cam-motion-up-y 1.0 --cam-motion-up-z 0.0 --cam-motion-target- 0.0 --cam-motion-target-y 0.0 --cam-motion-target-z 0.0 --cam-motion-pos-x 0.0 --cam-motion-pos-y -25.0 --cam-motion-pos-z 0.0

Camera aperture and focaldepth can also be defined:
--cam-aperture 1.0 --cam-focaldepth 20.0

face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Thank you face. That hint is very useful.
Is it also possible to select the type of render engine via command line?
User avatar
face
Octane Plugin Developer
Posts: 3204
Joined: Sat Mar 06, 2010 2:10 pm
Location: Germany

Refracty wrote:Thank you face. That hint is very useful.
Is it also possible to select the type of render engine via command line?
No, the engine is saved with the ocs-file. But you can use multiple ocs-files to bypass it...

face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
Post Reply

Return to “General Discussion”