Page 1 of 1
OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 7:39 am
by aLeXXtoR
Hi!
My question is: is there any way to load in Octane and render .obj sequence with some constant Octane setups (materials, camera, environment) (I'm exporting OBJ animation from a 3D software as .obj sequence) to a still images sequence?
Thank you.
Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 12:31 pm
by kubo
well, in this case you would need to load any frame(obj), then setup the whole scene and save an ocs when everything is ready. Then you'd need to create a batch file to render that obj sequence doing a reload each time with a different obj file using the command line flags. It should be quite easy, and either with a little research or someone in the forum could point out the right commands for the batch. For the flags needed to render from a command line refer to the manual.
Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 12:54 pm
by aLeXXtoR
kubo, thank you — I just was thinking about the solution through a batch file, but stocked at the point of replacing object file. I'll try this.

Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 2:55 pm
by Refracty
So process you are looking for is not different from any other animation workflow, isn't it?
So you do the same you would do if you use the animation export plug in and assign an ocs file.
Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 3:40 pm
by aLeXXtoR
Yes, almost like animation exporter plugin.
I'm posting my example here (maybe someone will find it useful).
I created 3D scene and exported it as an OBJ sequence — in octane I tweaked camera, materials using nodes, daylight system. I loaded the first sequence file as Mesh node (Lab_000001.obj).
After that I wrote a simple batch file:
Code: Select all
for /L %%i in (1,1,9) do octane -e -r e:\Temp\OctaneTest\OBJ\Lab_00000%%i.obj -m Lab_000001.obj -s 1000 -o e:\Temp\OctaneTest\Lab_000%%i.png e:\Temp\OctaneTest\OAnimTest.ocs
for /L %%i in (10,1,50) do octane -e -r e:\Temp\OctaneTest\OBJ\Lab_0000%%i.obj -m Lab_000001.obj -s 1000 -o e:\Temp\OctaneTest\Lab_00%%i.png e:\Temp\OctaneTest\OAnimTest.ocs
(the code isn't cool, but fine enough as a test

).
Then I copied this file to Octane folder and execuded. Everything went fine.

Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 4:16 pm
by Refracty
Thank you for sharing,
the other solution would be to use an Animation tool like Maya and use an obj import script that swaps the meshes, so you could also do animated cameras.
Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 4:43 pm
by kubo
congrats, and thanks for the example, I'm sure more people will find it useful.
Re: OBJ Sequence rendering in Octane
Posted: Mon Nov 07, 2011 5:08 pm
by aLeXXtoR
Thank you for your ideas.
Technically, as I understood while reading Octane Manual, camera can be animated also via command line parameters with arrays of camera coordinates. But obviously exporting this array from 3D software and placing it into a batch file is a kind of exporter work in a result.
So the story of my question is just that I wanted to have ability to setup materials and environment for my scene using Octane interface and after that render a whole sequence with that setup. Maybe I'm just reinventing wheel — I'm new to Octane.
