Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Network Distributed Baking

Discussion in 'Assets and Asset Store' started by theylovegames, Sep 3, 2012.

  1. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    That means you already have something using port 80. You'll have to enter a different port number like 81.

    It's possible that you are already running IIS, Apache, or you have Skype running which by default uses port 80.
     
  2. bitenvy

    bitenvy

    Joined:
    Jan 16, 2013
    Posts:
    2
    Thanks for the quick response, Tim! I've changed the port to 82 and successfully connected my Master computer. However, on my slave computer when setting the Server Host Name and Server port to match that of my Master computer, then hitting "Connect (Slave)"... I'm getting this error:

    Request error=couldn't connect to host url=http://SLAVEMACHINENAME:82/slave?j=%7b%22guid%22%3a%225f0ab97a-c0dc-48b2-9d07-a2ba49c986e7%22%2c%22uid%22%3a%22SLAVEMACHINENAME_3004%22%2c%22date%22%3a%2204%2f07%2f2014+10%3a47%3a31%22%2c%22command%22%3a4%2c%22innerJSON%22%3a%22%22%7d
    UnityEngine.Debug:LogError(Object)
    SlaveLogic:NetworkUpdate() (at Assets/NetworkDistributedBaking/Editor/NetworkManager.cs:494)
    NetworkManager:NetworkUpdate() (at Assets/NetworkDistributedBaking/Editor/NetworkManager.cs:631)
    DistributedPanel:panelUpdate() (at Assets/NetworkDistributedBaking/Editor/DistributedPanel.cs:786)
    DistributedPanel:Update() (at Assets/NetworkDistributedBaking/Editor/DistributedPanel.cs:127)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    It seems that it is not updating the host url to match that of the Master Computer Name...

    Can you please advise?

    Thanks!

    NM... it was my firewall :p

    Just FYI... when typing directly in the "Server Host Name" Field, it seems to freeze Unity. I had to type my server name in notepad, then copy/paste it into the field to avoid this. Anyway to fix this?
     
    Last edited: Apr 7, 2014
  3. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    If the field doesn't seem to update I disconnect the client. Close the panel and reopen the panel. And try again.

    I also double-check the firewall and make sure it's not blocking that port.

    You should be able to put the URL in the browser and browse the master from the client computer.

    If it can't show it in the browser, the network is blocking communication.
     
  4. Thufuooi

    Thufuooi

    Joined:
    Apr 9, 2014
    Posts:
    2
    I am having trouble with this. I have Unity 4.3.4 Pro and have tried disabling Firewall, removing Skype, I even tried running on a fresh Windows 7 installation in case it was related to disabled services.

    I get the same 999+ errors when trying to connect as Master or Slave, on all my machines. The two types of errors are as follows :

    and

    Also, any attempt to enter something into the SERVER HOST NAME field causes the whole system to lock up. Any help would be greatly appreciated.

    $Unity NDB Errors.jpg
     
    Last edited: May 15, 2014
  5. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    It looks like you are running the host with WebPlayer selected as the platform.

    The host needs to run with non-webplayer as the main platform.

    The client can run in any of the platforms.

    And then you need to pick a port number that's not in use.
     
  6. Thufuooi

    Thufuooi

    Joined:
    Apr 9, 2014
    Posts:
    2
    Thanks! That's fixed the issue with Connecting as MASTER, but now the SLAVE is returning the following error :-

    I think this could be an issue on the Slave computer. I am having a lot of trouble finding written instructions on using your product. Due to this, I have a couple of quick basic questions :-

    - Is the Master the computer that you are using for development, and the slave is the server that does the background baking?
    - Should I need to edit the SERVER HOST NAME in either the Master or Slave machines?
    - If so, why does editing the SERVER HOST NAME cause the system to hang, even when disconnected? (workaround is to paste into this field!)
    - What are the settings that you are changing in your video?
    - Do I need to have the same project open in both Master Slave? Or is the light map data transmitted through the network?

    Thanks again, I know you're a busy guy, so any help is greatly appreciated!
     
    Last edited: May 15, 2014
  7. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    Comments inline.

    Any time. And thanks for the feedback. Any feedback goes to making it better. And remember the code is full source. Any contributions will be incorporated.
     
  8. Extrakun

    Extrakun

    Joined:
    Apr 2, 2009
    Posts:
    69
    Is this plugin still supported, and will it be updated for Unity 5?
     
  9. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    In Unity 5 they ditched Beast lightmap baking and there's a new lighting system. Depending on how scriptable I plan to upgrade.

    Right now though the tool was designed in 3.X.
     
  10. Arom

    Arom

    Joined:
    Mar 25, 2015
    Posts:
    1
    our studio would pay money to have distributed rendering for th enew unity 5 light baker! please continue this project im sure more poeple think like this, seen from the reactions and frustrations ive seen online and offline.
     
  11. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    I need to upgrade ALL my tools to Unity 5 to be considered in future sales. But yeah this would be better in 5.X with more access to light scripting. Especially now that all the PRO features are available in the personal edition.
     
  12. TimGS

    TimGS

    Joined:
    Apr 24, 2014
    Posts:
    70
    It's a shame Unity still doesn't have distributed baking functionality...
     
  13. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    I think it mainly comes down to low demand. If EVERYBODY wanted the feature that would help it make the priority list.

    As long as the API is scriptable, you could bake a piece at a time on multiple computers.

    The old Unity 4.X API didn't have a way to even check the baked % progress.

    Hopefully Unity 5.X API can tell you the baked completed amounts for every object in the scene?
     
  14. pandey611

    pandey611

    Joined:
    Sep 26, 2013
    Posts:
    14
    Please let me know what are these messages.
    I am using unity 5.1.1f
    I am still not able to make it working in my two machines
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      245.7 KB
      Views:
      722
    • 2.jpg
      2.jpg
      File size:
      257.5 KB
      Views:
      770
    • 3.jpg
      3.jpg
      File size:
      243.7 KB
      Views:
      662
    • 4.jpg
      4.jpg
      File size:
      242.5 KB
      Views:
      725
    • 5.jpg
      5.jpg
      File size:
      243.7 KB
      Views:
      722
  15. pandey611

    pandey611

    Joined:
    Sep 26, 2013
    Posts:
    14
    More screenshots
     

    Attached Files:

    • 6.jpg
      6.jpg
      File size:
      218 KB
      Views:
      713
    • 7.jpg
      7.jpg
      File size:
      279.2 KB
      Views:
      723
    Last edited: Sep 3, 2015
  16. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
    Unity 5.X replaced Beast lighting. So this asset will only work in 3.X and 4.X.
     
  17. IgorAherne

    IgorAherne

    Joined:
    May 15, 2013
    Posts:
    385
  18. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    Unity changed the lighting API. Plus there's zero demand.
     
  19. IgorAherne

    IgorAherne

    Joined:
    May 15, 2013
    Posts:
    385
    Unfortunatelly, their progressive lightmapper takes only 12 hours to bake
    That's with the 15 texels per unit

    We double checked the checker-resolution in the "Shadowmask" mode on every asset in scene, - all polished and ready to bake. Enlighten takes 10 hours on our level

    There is a huge demand :(
     
    Last edited: Sep 3, 2017
  20. IgorAherne

    IgorAherne

    Joined:
    May 15, 2013
    Posts:
    385
    There is literally no way to get distributed bake going in Unity. At all. They enforced it to 1 machine
     
  21. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    In that case...

    Do you have a simple example scene that takes forever with some repro steps.

    I could do some automation that splits it across machines to at least cut the time by X number of machines.

    How many machines do you have available for baking? And what platforms are you baking?

    If you have an example scene just export it to a package.

    Feel free to email me at support@theylovegames.com

    What version of Unity are you on?

    Thanks!

    ~Tim Graupmann
     
  22. dozhwal

    dozhwal

    Joined:
    Aug 21, 2014
    Posts:
    59
    i would be interrested with an updated version !

    is it possible with the unity 5 lightmap ?
     
  23. theylovegames

    theylovegames

    Joined:
    Aug 18, 2012
    Posts:
    176
    Unfortunately, no. The light API completely changed after 3.X.