LightWave Importer for Unity

gar26lw

New member
oh, got a feature request :)

be cool to have an option to combine all layers in the LWO to a single mesh in the LWO importer options
 
Assets\Lightwave Importer\LWS Importer\Editor\LWSceneBuilder.cs(73,147): error CS0433: The type 'ProgressBar' exists in both 'LWOImporterLibrary, Version=1.0.7214.20196, Culture=neutral, PublicKeyToken=null' and 'LWSImporterLibrary, Version=1.0.7214.33710, Culture=neutral, PublicKeyToken=null'

LWS version 1.12
LWO version 1.63

unity 2019.1.4f1

do you think a bug or problem some place else ?

Ah sorry, my mistake. The LWOImporterLibrary contained in LWO Importer is out of date by 15 minutes compared to the one in the full LightWave Importer asset. I'll update straight away.
Thanks for letting me know
 
oh, got a feature request :)

be cool to have an option to combine all layers in the LWO to a single mesh in the LWO importer options

Yes I agree that would be cool - except I think it will break the LWS Importer when (if) it needs to use an objects individual layers in a scene.
...hmmm I'll have to give it some thought to see if there's a way around it.
 

gar26lw

New member
any thoughts on this one ?

LWObject.OnEnable must call base.OnEnable to avoid unexpected behaviour.
UnityEditor.Experimental.AssetImporters.AssetImporterEditor:OnDisable() (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/ImportSettings/AssetImporterEditor.cs:423)

Unity 2019.2.8.f1, when you select and LWO in the project view tree in unity.

got this as well on reimport

OnInspectorGUI should call serializedObject.Update() at its beginning and serializedObject.ApplyModifiedProperties() before calling ApplyRevertGUI() method.
UnityEditor.Experimental.AssetImporters.AssetImporterEditor:ApplyRevertGUI()

VirtualEscapes.Common.Importers.LWO.LWObject:OnInspectorGUI() (at Assets/Lightwave Importer/LWO Importer/Code/Editor/LWObject.cs:194)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
 
Last edited:
hmmm, it looks like Unity have changed something in 2019.2.8 - I'll update mine and fix those bugs. I don't anticipate it taking long (famous last words)
-Chris
 
ok I've submitted a minor update to the Unity Asset store for both LWO Importer and LightWave Importer. The console will stop displaying errors with the new fix.

My suspicion turned out to be correct: Unity has made a breaking change in 2019.2, however I think you can still use the old version of LightWave/LWO Importer for now until the updates go live. It will still work despite the annoying error messages in the console.
 

gar26lw

New member
Still getting that error with latest LWO importer 1.631 in Unity 2019.2.8f1

Gonna try and roll back project to 2019.2.2f1 and see if still occurs. EDIT -> yep, still get :

LWObject.OnEnable must call base.OnEnable to avoid unexpected behaviour.
UnityEditor.Experimental.AssetImporters.AssetImporterEditor:OnDisable()

I got the error even though I removed Unity LWS importer. Didn't see an update for that on the store atm. was at 1.12.

rolled back to Unity 2019.1.4f1. don't want the error, just cos it freaks out other users on project :p
 
Last edited:

gar26lw

New member
if no UV in object (no texture defined/assigned at all in surfaces) but two surfaces applied to a mesh (set reflection, spec and diffuse settings) using std material. lwo2 format from 2015.3

throws this warning using latest LWO 1.631 with Unity 2019.1.4f1 :

LWOImporter generated the following warnings for Object.lwo
Found 1 instance of unsupported texture mapping. Polygons need to be UV-Mapped to correctly display textures.

UnityEngine.Debug:LogWarning(Object)
VirtualEscapes.Common.Importers.LWO.LWOImporterLogManager:OutputToLog()
VirtualEscapes.Common.Importers.LWO.LWOImporter:OnImportAsset(AssetImportContext) (at Assets/Lightwave Importer/LWO Importer/Code/Editor/LWOImporter.cs:139)
UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData(AssetImportContext)


Didn't happen with one surface assigned and no reflection set with same object.
 
Lightwave Importer and LWO Importer are both currently 40% off, as part of the Unity Asset Store Cyber Week Mega Sale!!!

CW-Standard-Facebook (1).jpg

They have never been this discounted before so, if you haven't already pulled the trigger, now is the perfect time to give yourself an early Christmas present!
 
Do these work with Unity & LW Mac, or just with Unity & LW Windows?

They work on all platforms.

The Lightwave file format is exactly the same regardless of OS. And it's been tested in Unity on both Mac (which is what I develop on) and PC. I haven't heard of anyone using it with Unity on Linux yet, but I have a feeling it might even work on that!
 

tyrot

Active member
i have try to use LWOimported objects with BAKERY lightmapper and i could not make it work. I think there must be a setting that i should check for getting evaluated by the lightmapper system - (progressive or Bakery)

without Bakery there is no unity for me :(
 

BeeVee

ex-LightWave documentation
I've just bought your plugin to support further development :) Best I reinstall Unity...

B
 
i have try to use LWOimported objects with BAKERY lightmapper and i could not make it work. I think there must be a setting that i should check for getting evaluated by the lightmapper system - (progressive or Bakery)

without Bakery there is no unity for me :(

Hi Tyrot. Sorry I'm not sure what to suggest. I can't use Bakery myself as I have neither an NVidia GPU nor a windows PC. If you could describe exactly how it's not working it might give me a better idea whats wrong? eg what is your workflow and at what point does it fail?
Thanks

- - - Updated - - -

I've just bought your plugin to support further development :) Best I reinstall Unity...

B

Great! thanks for the support. I hope you find it helpful
 

tyrot

Active member
Hey Escape thanks for checking here.. For further discussions - here or unity forums are better for you? Also do you have a Discord or similar channel?
 
Top Bottom