Page 1 of 2
Unreal getting crash with Octane while using Metahumans
Posted: Wed Jun 29, 2022 4:12 am
by jitendra
I have Unreal Engine 5.0.2 and UE-MetaHumans 5.0 Plugin and Sample Project.
The moment I am loading Octane (latest version OctaneStudio0_53_UE5_0) it is generating error while loading the scene and textures.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:18d5f77a62ce4ec48a168866af27b389
Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1291] Index -1/401, Platform=0
UnrealEditor_OctanePlugin
Please help.
Jitendra
Re: Unreal getting crash with Octane while using Metahumans
Posted: Sat Jul 02, 2022 1:09 pm
by hoseinbash
open up your scene, and get rid of the metahuman in your level outliner (simply delete the metahuman from your level before you let octane load itself)
then go and open the blueprint of your metahuman and delete all the hair objects (including hair, brows, lashes and peachfuzz)
compile and save, and then drag your MH in the scene and let Octane load everything, you won't face a crash probably.
the problem is, I assume, with the OSL translator of the custom metahuman hair materials, which it cannot properly translate.
a workaround is to create instances of the material named "hairDefaultMaterial" and then assign it to all hair components in your metahuman blueprint.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Mon Jul 04, 2022 1:46 am
by jitendra
Thank you. I will try and will post the results here.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Mon Jul 04, 2022 11:20 am
by ChrisHekman
Thanks for the report. Ill check out the crash in the sampleproject.
While we are getting close to supporting all the sub-elements for metahumans, they are still not fully supported yet. This crash should not be happening though.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Mon Jul 04, 2022 1:32 pm
by jitendra
Thank you ChrisHekman.
We look forward to having it fixed.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Tue Jul 12, 2022 1:43 pm
by ChrisHekman
This crash has been fixed, and will be part of the next build.
However, the underlying material (MI_Hair1) that causes the crash will not convert properly to Octane.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Wed Jul 13, 2022 7:24 am
by jitendra
I have checked with updated version [OctaneStudio0_54_UE5_0]
But still facing same crashing issue.
I have changed all hair materials to material instance of "hairDefaultMaterial" and load octane viewport. This time it didn't crashed but the face skin material was changed to default black material and eyes are not present in viewport. Attaching screenshot of that, too.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:d530f5d93bf64670825e41756863451d
Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1334] Index -1/401, Platform=0
UnrealEditor_OctanePlugin
dcomp
Re: Unreal getting crash with Octane while using Metahumans
Posted: Wed Jul 13, 2022 8:56 am
by ChrisHekman
jitendra wrote:I have checked with updated version [OctaneStudio0_54_UE5_0]
But still facing same crashing issue.
I have changed all hair materials to material instance of "hairDefaultMaterial" and load octane viewport. This time it didn't crashed but the face skin material was changed to default black material and eyes are not present in viewport. Attaching screenshot of that, too.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:d530f5d93bf64670825e41756863451d
Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1334] Index -1/401, Platform=0
UnrealEditor_OctanePlugin
dcomp
Sorry, I meant the next build, as in the upcomming build we will be releasing shortly.
Metahuman materials use a couple of material nodes we dont support yet - which break the skin material.
And the eyes have a thing layer material on top of that that is also not supported yet, which causes the eyes to become black.
We are working on supporting these.
Re: Unreal getting crash with Octane while using Metahumans
Posted: Sat Jul 23, 2022 6:38 am
by jitendra
Downloaded the latest update [OctaneStudio0_55_UE5_0].
It is great to see that there is no crashing issue.
Still problem with face skin material and eye material of Metahumans.
Is there any way to fix this face skin and Eye material problem in current version[OctaneStudio0_55_UE5_0]?
Re: Unreal getting crash with Octane while using Metahumans
Posted: Sat Jul 23, 2022 8:34 pm
by ChrisHekman
jitendra wrote:Downloaded the latest update [OctaneStudio0_55_UE5_0].
It is great to see that there is no crashing issue.
Still problem with face skin material and eye material of Metahumans.
Is there any way to fix this face skin and Eye material problem in current version[OctaneStudio0_55_UE5_0]?
You will need to replace the Custom Nodes that failed to convert in the skin and eye material. You should be able to see which nodes dont work in the unreal logs.
Atleast a couple of the Custom Nodes dont work.