Game mode

A public forum for discussing and asking questions about the Octane for Unity Alpha

Moderator: ChrisHekman

Post Reply
elecman
Licensed Customer
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am
Contact:

Game mode is not supported but then how do I render material and transform animations? All these things are set by scripts which do not work in editor mode.

It is not really clear in the manual. Something to do with timeline...
User avatar
Xhed
OctaneRender Team
Posts: 239
Joined: Wed Jul 10, 2013 10:27 pm
Location: Breda, The Netherlands

The timeline editor will allow you to schedule these animations. You can open Timeline Render window via the Octane menu, where you can select a Director, Render Target, time range and framerate. This will allow you to have Octane render all the frames to disk, providing you with png/exr files of the rendered frames.
- Rick
elecman
Licensed Customer
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am
Contact:

I haven't looked into the new timeline feature much yet, but from what I understand is that timeline recording only works from edit mode, not from game mode. I could be wrong though...
User avatar
jobigoud
OctaneRender Team
Posts: 243
Joined: Sat Aug 15, 2015 1:28 pm

You can have your scripts run in edit mode, look for the ExecuteInEditMode attribute.
elecman
Licensed Customer
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am
Contact:

I know about that, but it complicates my logic quite a bit. The animations (mainly emissive state) are based on very complex system logic (aircraft cockpit). Things like script execution order are important. Modifying all my scripts so it runs in editor mode is asking for trouble.

Feature request:
Please make Unity Octane render based on what you see in Game mode. Without this, it it is not usable for me.
SteveElbows
Licensed Customer
Posts: 5
Joined: Sun Jul 09, 2017 10:34 am

elecman wrote:I know about that, but it complicates my logic quite a bit. The animations (mainly emissive state) are based on very complex system logic (aircraft cockpit). Things like script execution order are important. Modifying all my scripts so it runs in editor mode is asking for trouble.

Feature request:
Please make Unity Octane render based on what you see in Game mode. Without this, it it is not usable for me.
Perhas you could use something like the following, or a timeline equivalent if it exists, to bridge the gap?

https://docs.unity3d.com/2017.1/Documen ... order.html
User avatar
Xhed
OctaneRender Team
Posts: 239
Joined: Wed Jul 10, 2013 10:27 pm
Location: Breda, The Netherlands

elecman wrote:Feature request:
Please make Unity Octane render based on what you see in Game mode. Without this, it it is not usable for me.
This is high on our list, but we're having problems with the way Unity switches to game mode. When you switch to Game Mode, Unity reloads all script, which is causing problems for our Octane integration.
- Rick
elecman
Licensed Customer
Posts: 43
Joined: Sun Jul 09, 2017 4:27 am
Contact:

Great to hear you are working on it. I hope Unity will be supportive as it would be a great feature.
PatHightree
Posts: 1
Joined: Wed May 06, 2015 10:49 am

I just want to mention that in Unity 2017 there are a couple of new callbacks for this situation:
- AssemblyReloadEvents.beforeAssemblyReload
- AssemblyReloadEvents.afterAssemblyReload

Also, a look at nVidia's Ansel capture system might be inspiring (it is available on the asset store).

Ciao, Patrick
Post Reply

Return to “Octane for Unity”