Page 1 of 1

Play mode breaks PBR View and Octane Materials

Posted: Sun Aug 20, 2017 11:22 pm
by rtilton
Every time I press play in Unity it goes to the game view. When I stop playing and go back to the PBR View I see the window asking me to "Load Octane" again. I click "load octane" and all of the textures I created in the node editor are now broken (reset to default material without any of the textures I connected/tweaked). In order to get the textures back into the node editor i need to remove them (-) and add them again - then create my material and reconnect everything -then tweak the parameters again.

Two questions:
1) How do I make sure my octane materials don't get wiped/reset by Unity all the time?
2) How can I go into play mode with octane renderer?

Re: Play mode breaks PBR View and Octane Materials

Posted: Mon Aug 21, 2017 8:50 am
by Xhed
Play mode is not currently supported by Octane. Unity reloads all assemblies when going to play mode, so we have no choice other than to reload Octane.

Re: Play mode breaks PBR View and Octane Materials

Posted: Mon Aug 21, 2017 5:34 pm
by rtilton
So there's no way to currently avoid Octane materials being reset when Octane reloads?

Re: Play mode breaks PBR View and Octane Materials

Posted: Tue Aug 22, 2017 2:48 am
by keijiro
This is a bit related question: Why is Octane unloaded when compiling C# scripts? This is not a critical issue but can be irritating when trying to create generative contents with scripting.

Re: Play mode breaks PBR View and Octane Materials

Posted: Tue Aug 22, 2017 9:05 am
by ChrisHekman
keijiro wrote:This is a bit related question: Why is Octane unloaded when compiling C# scripts? This is not a critical issue but can be irritating when trying to create generative contents with scripting.
We had a problem with unity serializing our objects properly between assembly reloads. C# compile reloads the assemblies.
It is on our list of improvements.

Re: Play mode breaks PBR View and Octane Materials

Posted: Tue Aug 22, 2017 9:06 am
by ChrisHekman
rtilton wrote:So there's no way to currently avoid Octane materials being reset when Octane reloads?
The underlying feature we need should be back in the upcomming octane 3.07 version which will be out soon. We will update as soon as it is back in.
Sorry for the oversight.