Page 1 of 1

Drive Octane Render programmatically from C# scripts

Posted: Wed Jan 17, 2018 9:04 am
by Fanaen
Hello!

The package Octane for Unity is really cool!

The company I currently work for could definitely use something like that. However, our use case doesn't seem to be covered at the moment.

We are currently using Unity mainly for the WebGL part and the scene/asset editing is done on the user end. In the long run, if we want to use Octane Render, we need a way to capture the scene either user-side (from WebGL) or server-side (headless editor) to trigger the rendering without manually opening the editor. The simplest solution is probably to use some C# scripts to load a given scene, load and configure the Octane Render, then send the job to the ORC.
So, a few questions:
  • Is this possible at the moment and how?
  • If not, is a documented C# API planned?
Best regards,
Fanaen

Re: Drive Octane Render programmatically from C# scripts

Posted: Mon Jan 22, 2018 9:14 am
by Xhed
We don't have a properly functional C# API yet, but it is in the works.

Re: Drive Octane Render programmatically from C# scripts

Posted: Mon Jan 29, 2018 10:15 pm
by MattOstgard
Any idea what the time frame for this might be? I want to make some high to low mesh baking tools that would use unity-octane, but currently I can't really make them properly as it is now.

Also are there any plans to support displacement from unity materials without having to create a custom otoy material?

Re: Drive Octane Render programmatically from C# scripts

Posted: Tue Feb 13, 2018 5:45 pm
by bmustata
Can we you have some basic support like start/pause render and render to texture?

Is it possible to access PBRRenderTarget in the current implementation?

Re: Drive Octane Render programmatically from C# scripts

Posted: Wed Feb 14, 2018 6:40 pm
by bmustata
Do we have some kind of basic support like StartRender/PauseRender and Render To Texture?

or maybe we ca use GameObject.Find("PBR Render Target") or something similar?

Best regards,
Bogdan

Re: Drive Octane Render programmatically from C# scripts

Posted: Fri Feb 16, 2018 9:31 am
by Xhed
This is currently impossible. A proper C# API is in progress of being developed.

Re: Drive Octane Render programmatically from C# scripts

Posted: Fri Feb 16, 2018 9:42 am
by bmustata
This sounds super!

Re: Drive Octane Render programmatically from C# scripts

Posted: Thu Feb 22, 2018 8:53 pm
by anupamd
Hi, I'm very interested in the API as well.

my use-case is really runtime baking, or even better. something like a Differed Real-time Path Tracing such as what you see with Enscape.

https://enscape3d.com/wp-content/upload ... ferred.pdf

I know this is a very broad topic but
with the API, would I have enough functionality do something like this, at least the baking at runtime part?