Hi,
I'm using Unity 5.5.0 f3 and I have many bugs with the exporter.
#1 : backed lightmap :
- I have started a new scene with a plan, box, directional light and a camera.
- My light use backed light only
- My meshes use static lightmap
- one standard material for my objects with a texture
- In the exporter window I have checked "export lightmap", synchronous backing enabled, embed shader files.
==> but all my objects are black in the babylonjs preview when I use backed light.
#2 : objects export :
- I have tested with this model : https://www.assetstore.unity3d.com/en/#!/content/61925
and when I export I have this message :
FileNotFoundException: Resources/unity_builtin_extra does not exist
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:107)
BabylonExport.Entities.BabylonScene.AddTexture (System.String texture)
Unity3D2Babylon.SceneBuilder.CopyTexture (System.String texturePath, UnityEngine.Texture2D texture2D, BabylonExport.Entities.BabylonTexture babylonTexture, Boolean isLightmap) (at Assets/Babylon/Source/SceneBuilder.Materials.cs:274)
Unity3D2Babylon.SceneBuilder.DumpTexture (UnityEngine.Texture texture, UnityEngine.Material material, System.String name, Boolean isLightmap) (at Assets/Babylon/Source/SceneBuilder.Materials.cs:1060)
Unity3D2Babylon.SceneBuilder.DumpTextureFromMaterial (UnityEngine.Material material, System.String name) (at Assets/Babylon/Source/SceneBuilder.Materials.cs:1032)
Unity3D2Babylon.SceneBuilder.DumpPBRMaterial (UnityEngine.Material material, Int32 lightmapIndex, Vector4 lightmapScaleOffset, Boolean metallic, Int32 lightmapCoordIndex) (at Assets/Babylon/Source/SceneBuilder.Materials.cs:480)
Unity3D2Babylon.SceneBuilder.DumpMaterial (UnityEngine.Material material, Int32 lightmapIndex, Vector4 lightmapScaleOffset, Int32 lightmapCoordIndex) (at Assets/Babylon/Source/SceneBuilder.Materials.cs:304)
Unity3D2Babylon.SceneBuilder.ConvertUnityMeshToBabylon (UnityEngine.Mesh mesh, UnityEngine.Transform transform, UnityEngine.GameObject gameObject, Single progress, UnityEditor.UnityMetaData& metaData, System.Collections.Generic.List`1& particleSystems, System.Collections.Generic.List`1& lensFlares, System.String& componentTags, BabylonExport.Entities.BabylonMesh collisionMesh, UnityEngine.Collider collider) (at Assets/Babylon/Source/SceneBuilder.Meshes.cs:345)
Unity3D2Babylon.SceneBuilder.ConvertFromUnity () (at Assets/Babylon/Source/SceneBuilder.cs:597)
UnityEngine.Debug:LogException(Exception)
Unity3D2Babylon.SceneBuilder:ConvertFromUnity() (at Assets/Babylon/Source/SceneBuilder.cs:806)
Unity3D2Babylon.ExporterWindow:Export(Boolean) (at Assets/Babylon/Source/ExporterWindow.cs:736)
Unity3D2Babylon.ExporterWindow:OnGUI() (at Assets/Babylon/Source/ExporterWindow.cs:573)
UnityEditor.DockArea:OnGUI()
I have the latest version of today, I have updated the plugin to 2.5 version.
Can you help me to understand please ?
Best regards,
Jeremie.