Page 1 of 1

PBR Lightmapper doesn't work yet + Android export

PostPosted: Tue Jan 07, 2020 2:17 pm
by Synthercat
Hello there

Issue 1:
PBR Lightmapper stops with those error messages
Material doesn't have a float or range property '_Parallax'
UnityEngine.Material:GetFloat(String)
OctaneUnity.<>c:<ResetSceneFromBaking>b__60_0(Material, UnityMaterial)
OctaneUnity.ObjectLink`2:ExecuteForeach(ForeachDelegate)
OctaneUnity.Scene:ResetSceneFromBaking(Boolean)
OctaneUnity.PBRLightmapper:Cleanup()
OctaneUnity.PBRLightmapper:UpdateInternal()
OctaneUnity.UpperManagement:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Material doesn't have a float or range property '_Glossiness'
UnityEngine.Material:GetFloat(String)
OctaneUnity.<>c:<ResetSceneFromBaking>b__60_0(Material, UnityMaterial)
OctaneUnity.ObjectLink`2:ExecuteForeach(ForeachDelegate)
OctaneUnity.Scene:ResetSceneFromBaking(Boolean)
OctaneUnity.PBRLightmapper:Cleanup()
OctaneUnity.PBRLightmapper:UpdateInternal()
OctaneUnity.UpperManagement:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Issue 2:
Why can't I pre-render lightmaps for example and then export to a normal regular android project?
Why do I get this error trying to export to android:
ArgumentException: The Assembly UnityEditor is referenced by Editor ('Assets/Plugins/Octane/Editor.dll'). But the dll is not allowed to be included or could not be found.

Thank you!

Re: PBR Lightmapper doesn't work yet + Android export

PostPosted: Mon Jan 20, 2020 11:03 am
by ChrisHekman
Code: Select all
Issue 1:

This is odd, as this shouldnt stop the PBR lightmapper as those shouldnt be errors but warnings.
Regardless, I have fixed this issue and should be part of the next build.
This is happening in the cleanup phase, so the PBR Lightmapper should have finished maps, is this correct?

Why can't I pre-render lightmaps for example and then export to a normal regular android project?

Unity sets limitations on this sadly. You can use octane generated lightmaps by setting them manually, or using the OctaneLightmapData class.

ArgumentException: The Assembly UnityEditor is referenced by Editor ('Assets/Plugins/Octane/Editor.dll'). But the dll is not allowed to be included or could not be found.

You need the editor.dll to be excluded from your runtime build. The option to do this should be visible in the inspector when you select the editor.dll.