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

Crashing when baking too many objects ?

Discussion in 'Editor & General Support' started by Domino-Studios, Apr 20, 2013.

  1. Domino-Studios

    Domino-Studios

    Joined:
    Oct 26, 2012
    Posts:
    31
    Hi,

    I have a scene with 200+ objetcs to bake. If I take all the scene or too many objects (very inconsistant) it crashes.
    My workaround is to take few objects (10 max) and bake... veeeeeeeeryy long and not efficient at all !

    Last time it crashed at "dilation" phase.

    Known issue ?

    MX OS 10,7,5
    Unity PRO 4,0,1f4
     
    Last edited: Apr 20, 2013
  2. Vire

    Vire

    Joined:
    Jun 17, 2012
    Posts:
    178
    If it's crashing when doing that all in one go, how about a for loop?

    Please test this first in a saved scene, I don't have the time to!

    Code (csharp):
    1. import maya.cmds as cmds
    2.  
    3. items = cmds.ls(sl = True)
    4. for i in items:
    5.     cmds.bakeResults(i, simulation = True, time = (1, 15), sampleBy = 1, disableImplicitControl = True, preserveOutsideKeys = True, sparseAnimCurveBake = False, removeBakedAttributeFromLayer = False, bakeOnOverrideLayer = False, controlPoints = False, shape = True)
    I'm sure you can figure how to change the settings as most are bools, and time = (1, 15) means it'll run from frame 1 to 15.
     
  3. Domino-Studios

    Domino-Studios

    Joined:
    Oct 26, 2012
    Posts:
    31
    Thx Vire, but are we talking about the same thing ? Maybe I did not express myself well enough. I talk about lightmaps baking.

    Few minutes ago it crashed again. A selection of 16 objects of bake. At the "Edge Dilation Filter" step.
     
  4. Vire

    Vire

    Joined:
    Jun 17, 2012
    Posts:
    178
    Ah oops, I didn't read properly my bad. I thought you meant animation baking... still new to games and didn't consider it :)
     
  5. Domino-Studios

    Domino-Studios

    Joined:
    Oct 26, 2012
    Posts:
    31
    Up. Some nice dev working on Sunday ?? :)
     
  6. Domino-Studios

    Domino-Studios

    Joined:
    Oct 26, 2012
    Posts:
    31
    Bump : case 538680

    Any dev support available ?