Search Unity

"Modo 2 Unity Lightmapper" available now

Discussion in 'Formats & External Tools' started by BenH, Apr 7, 2010.

  1. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175
    Here is a script I created to improve the workflow when working with Modo and Unity. If you create your lightmaps in Modo for use in Unity then this script will save you a lot of time and effort. I hope you enjoy it!

    Here is a link to the script where you can download the files.
    http://www.hankendesigns.com/Portfolio/Scripts.html

    In the download there is also an demo movie so you can see how it works.

    Description:
    -It automatically creates a combined 2nd UV set for all objects wishing to share a common lightmap

    -It automatically exports the lightmaps into the desired texture folder for your Unity project

    -It automatically exports the visible scene geometry to your Unity folder.

    -Watch video for proper usage

    Installation:
    Mac users:
    -Copy the 3 scripts from the “Scripts” folder and paste them into the “Scripts” folder at this location:
    “/Users/UserName/Library/Application Support/Luxology/Scripts”

    -Copy the 3 files from the “Configs” folder and paste them into the “Configs” folder at this location:
    “/Users/UserName/Library/Application Support/Luxology/Configs”

    PC users:
    -Copy the 3 scripts from the “Scripts” folder and paste them into the “Scripts” folder at this location:
    \Users\Username\AppData\Roaming\Luxology\Scripts

    -Copy the 3 files from the “Configs” folder and paste them into the “Configs” folder at this location:
    \Users\Username\AppData\Roaming\Luxology\Configs

    Notes:
    -Script only works on items that are grouped
    -Script ignores all “hidden” groups
    -A render output must exist that is called “LM_RO”. That render output effect must be set to “Illumination(Total)”

    Let me know if you have any suggestions/improvements.
     
  2. maxfax2009

    maxfax2009

    Joined:
    Feb 4, 2009
    Posts:
    410
    GREAT work :)

    Looking forward to PC version :)
     
  3. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175
    Thanks 8)
     
  4. mehware

    mehware

    Joined:
    Nov 19, 2007
    Posts:
    739
    video, technique, and script... awesome.
     
  5. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175
    The PC version version is now ready 8)
     
  6. giyomu

    giyomu

    Joined:
    Oct 6, 2008
    Posts:
    1,094
    hehe you made it finally XD
     
  7. HJP

    HJP

    Joined:
    Jul 8, 2009
    Posts:
    152
    It's awesome. Thanks
     
  8. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175
    Glad you like it 8)
     
  9. geo_n

    geo_n

    Joined:
    Apr 1, 2010
    Posts:
    19
    Will lw objects with two uv sets opened in modo be able to export to unity with this script? I can bug some modo friends to do it for me. Great free script!
     
  10. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175
    Yes as long as your objects are organized in groups then they will be exported with the UV sets intact. I have never used the LW importer, but I am assuming it imports multiple UV sets. If it does then it should work. Just curious, does the LW fbx exporter not export 2 UV sets properly for you when you import into Unity?
     
  11. geo_n

    geo_n

    Joined:
    Apr 1, 2010
    Posts:
    19
  12. BenH

    BenH

    Joined:
    May 11, 2007
    Posts:
    175