Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Importing Lightwave objects

Discussion in 'Editor & General Support' started by bryantay, Mar 31, 2006.

  1. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    Has anyone actually been able to import objects from lightwave using the FBX Exporter and have the texture automatically applied to the material?

    I've tried it a number of different ways without any success. It seems that you always have to manually reapply the textures within Unity.

    I'd like to know know if anyone as actually been able to get it to work.

    thanks!
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    I've never seen it not work. From which application are you exporting?
     
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Oops. Just saw the subject.

    You need to have the texture in your project folder at the same time or before importing the mesh.

    It sometimes helps to place the texture next to the mesh or in the "Textures" Folder next to the mesh.
     
  4. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    So you are saying you have actually witnessed this working. :)

    1) export from lightwave using FBX Exporter

    2) place textures in a textures folder next to the mesh

    3) import object in Unity

    4) the texture is automatically applied to the material

    I've pretty much done all this without any luck. If it does infact work, then i'll keep working on it.

    Any Lightwave guys out there had any luck with this?
     
  5. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    OK, I've tried it every way possible that i can think of including how the HOW TO recomends and it just doesn't work. could it be considered a bug that it does not work?

    Could someone varify that it is possible?

    The reson i'm trying to figure this out is because I have a scene with over a hundred textures that i need to get into Unity. I'm not looking forward to reattaching all the textures inside Unity.

    help!
     
  6. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    If you send me the fbx file the lightwave exports i can take a look and see if the lightwave exporter is broken or if unity is getting it wrong.

    Did you try all the export settings in the exporter? Like embed textures in fbx file?
     
  7. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    Yep... Tried that. How do i send you a file? Also do you just need the exported FBX Object and the texture?

    I've semplified my testing down to a single polygon and a UV map texture with no luck. I can send these 2 files to you if thats what you need.

    thanks!
     
  8. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Yes please send those two files.
    Use Report Bug.app and attach the two files.
     
  9. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44

    it is done... thanks for looking into this!
     
  10. lurid

    lurid

    Joined:
    Aug 28, 2005
    Posts:
    72
    FWIW, this has never worked for me either but I haven't had scenes with enough texture complexity for it to bug me. Would be really cool if it was fixed though.

    Just out of curiosity, if the exporter is set to embed the texture in the FBX file, can Unity be set up to load the texture from the FBX? Or by "embed" does it mean, "embed a reference"?

    Russ
     
  11. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    It turned out to be a bug in the lightwave fbx exporter.

    Since Alias isn't updating the Lightwave FBX exporter much any more, I added a workaround. This will be in the next Unity release.
     
  12. lurid

    lurid

    Joined:
    Aug 28, 2005
    Posts:
    72
    It doesn't surprise me, LWs FBX exporter looks like a hack, but it works. Thanks for the workaround!
     
  13. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    I'd just like to say i am really impressed with the responsiveness of bug issues from OTEE!

    I've been working with the trial version of Unity and have come accross 2 bugs. one with Unity and one with the FBX Exporter. Both issues have been addressed and i still have 5 days left in my trial period. That's impressive!

    Thanks Joachim!

    So now i have to ask. Will the next release be available for me to test this import workaround before my trial period (5 days) is up? :D
     
  14. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    The next release is a bit further down. But i have sent you a patch to test if the fix i did works for you.
     
  15. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    I am in awe of your brilliance!

    I'll look for the patch.
     
  16. bryantay

    bryantay

    Joined:
    Mar 25, 2006
    Posts:
    44
    Just an update on this issue...

    Unfortunately this was not solvable. Apparently the Lightwave FBX exporter has a bug that does not assign textures to materials correctly.

    Exported Lightwave FBX objects come into Unity fine and Unity will create Materials fine even if you have multiple textures/UV's per mesh. You just have to reapply all your textures to the appropriate materials within Unity.

    I'm adding this to the forums because there're some discrepancies in other posts as well as the HOW-TO on importing from Lightwave. Hopefully this will save some of the new Lightwave/Unity users a number of hours trying figure this out.

    I've been really impressed with Unity. Hopefully a seamless workflow from Lightwave to Unity will be addressed in future updates.
     
  17. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    I followed the link from the How To page, and I don't see the plugin.

    Has Alias removed the download? Is there any other way I can use Unity?

    TIA!
     
  18. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    i have the one that works with lw8.5. anyone know if autod made it illegal to distribute? if not, i'll post it...

    one big question is will the fbx plug still work in lw9? got to admit i'm a bit nervous on that one.
     
  19. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    I'd love to get my hands on it if I can stay on the right side of the law :p --was there a readme with it?
     
  20. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    no read me. not even a eula in the installer.

    otee - it's your party. any reason you don't want me to post the plug in?
     
  21. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Just post it.

    I'll ask alias to also put up a link to the lightwave fbx plugins again.
     
  22. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    okee dokee
     

    Attached Files:

  23. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    Many thanks! Now to begin my 15-day experiment :)
     
  24. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    cheers!
     
  25. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    FYI, if anyone's LW objects were textured with non-UV mapping (planar, cylindrical, etc.) they'll need to be converted to UV or Unity can't display them right.

    I found a good How To on that conversion:
    http://www.newtek.com/forums/archive/index.php/t-2212.html

    It sounds like a lot of steps but it's really not.

    Do that, resave your LWO, then open the LWS and re-export the FBX. Your textures will now be fine in Unity.
     
  26. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    Perhaps I spoke too soon...

    One of my models doesn't have its UV mapping when brought into Unity. I notice that when I Export from Lightwave, it does not create the usual .fbm folder. There IS a UV map there (I can Render in Layout and see it) but it doesn't export, no matter what Export options I enable.

    I assume this is a Lightwave plugin problem and not a Unity problem, but has anyone seen this and found a fix?

    PS, those .fbm folders contain redundant copies of massive Photoshop files--is it OK to delete them, as far as Unity is concerned? Unity is clearly linking to the originals, not to those copies.
     
  27. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    OK--I got a good FBX with UVs at last. For what it's worth, this is what helped:

    The object was basically a cylinder on its side, and I was projecting the UV map straight down from the top to put a small emboss in the middle. Some some faces (like the ends) were vertical, and I guess the FBX exporter didn't like that. I created a textureless surface material for those vertical polys, and all was well in Unity.

    But oddly enough, I notice that the cylinder's roundness also has a few perfectly vertical polys (4 tris) on its two sides. I never changed them, they're still UV mapped--yet they didn't seem to be a problem in FPX exporting.

    Still, if I have a problem again, I'll look for polys perpendicular to the map when I use Texture Guide.
     
  28. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    just a new tidbit to the thread. i just ran into an issue where i did not have an image assigned in my lightwave texture. a uvmap was assigned but no image file. the mesh i was working with wouldn't hold an image in unity - even a different one. i had to go back in lightwave assign an image then in unity i could put whatever image i wanted on the mesh.
    (this is all lightwave 8.5->fbx export->unity)
     
  29. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    I think I have a consistent solution to missing UVs from Lightwave:

    Even if you only want a bump map on a solid color, ALWAYS specify a UV for color in Lightwave, not just for bump.

    Even if you just use the same bump texture for color as well, be sure to specify SOME image (and UV) for color.

    Then you can always use None for your diffuse texture in Unity. The bump will now work.

    My problems always seemed to happen when I used a bump with no color texture.