OBJ Sequence rendering in Octane

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
aLeXXtoR
Licensed Customer
Posts: 294
Joined: Sat Oct 29, 2011 5:38 pm
Location: Russia, St. Ptetersburg
Contact:

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.
Win 10 Pro 64bit | GeForce RTX 2070 SUPER 8Gb | AMD Ryzen 7 3700X | 32GB RAM
WebSite
Showreel
User avatar
kubo
Posts: 1377
Joined: Wed Apr 21, 2010 4:11 am
Location: Madrizzzz

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.
windows 7 x64 | 2xGTX570 (warming up the planet 1ºC at a time) | i7 920 | 12GB
User avatar
aLeXXtoR
Licensed Customer
Posts: 294
Joined: Sat Oct 29, 2011 5:38 pm
Location: Russia, St. Ptetersburg
Contact:

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. :)
Win 10 Pro 64bit | GeForce RTX 2070 SUPER 8Gb | AMD Ryzen 7 3700X | 32GB RAM
WebSite
Showreel
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

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.
User avatar
aLeXXtoR
Licensed Customer
Posts: 294
Joined: Sat Oct 29, 2011 5:38 pm
Location: Russia, St. Ptetersburg
Contact:

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. :-)
Win 10 Pro 64bit | GeForce RTX 2070 SUPER 8Gb | AMD Ryzen 7 3700X | 32GB RAM
WebSite
Showreel
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

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.
User avatar
kubo
Posts: 1377
Joined: Wed Apr 21, 2010 4:11 am
Location: Madrizzzz

congrats, and thanks for the example, I'm sure more people will find it useful.
windows 7 x64 | 2xGTX570 (warming up the planet 1ºC at a time) | i7 920 | 12GB
User avatar
aLeXXtoR
Licensed Customer
Posts: 294
Joined: Sat Oct 29, 2011 5:38 pm
Location: Russia, St. Ptetersburg
Contact:

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. :lol:

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. :)
Win 10 Pro 64bit | GeForce RTX 2070 SUPER 8Gb | AMD Ryzen 7 3700X | 32GB RAM
WebSite
Showreel
Post Reply

Return to “General Discussion”