Search Unity

Unity's version control component has been upgraded to Plastic SCM.

adding converted meshes to the commit

Discussion in 'Unity Collaborate' started by laurentlavigne, Dec 13, 2016.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    Some team members do not have maya, without maya when they sync with the colab repo they get empty meshes.
    it would be good to commit the converted meshes, as an option
     
  2. Gurg

    Gurg

    Unity Technologies

    Joined:
    Nov 9, 2016
    Posts:
    73
    I am sorry you are running into issues between Maya, Unity, and Collaborate. I can look into this, but in the meantime, can you tell me how you are saving your Maya meshes, as in what file type/extension are you using?
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    They are saved as .ma files
     
  4. Gurg

    Gurg

    Unity Technologies

    Joined:
    Nov 9, 2016
    Posts:
    73
    So this isn't a problem with Collaborate specifically although it exposes the problem. See the section titled "Requirements" under "Importing Objects From Maya".

    https://docs.unity3d.com/Manual/HOWTO-ImportObjectMaya.html

    Using the .mb or .ma save files only works if you have Maya installed, as you said. However, if you export the meshes as FBX files and use those in Unity instead, then those who do not have Maya installed can also see the meshes. I hope this helps.
     
  5. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    Seems counterproductive for collab to force a change in workflow. When importing an ma file unity uses maya to convert that file to an fbx, it's transparent and the file is stored in the libraries folder (I think). So could you commit that fbx so we don't have to change our or force our non Maya users to install the PE version of maya.
     
  6. Gurg

    Gurg

    Unity Technologies

    Joined:
    Nov 9, 2016
    Posts:
    73
    I will admit I am going completely off the documentation on this as I don't have a copy of Maya right now to test this with, so I'm going to trust that you are right on how Unity deals with the FBX files, but there's something I don't understand yet.

    Instead of doing a direct Maya to Unity export, couldn't you just export the FBX files to storage without specifying sending them to Unity, and then just importing them as a second step to Unity afterwards? https://docs.unity3d.com/Manual/HOWTO-exportFBX.html Wouldn't this let you dictate that the FBX files get saved to the Assets folder instead of the Library, kept synced with Collab and no need for collaborators to have Maya to see the meshes from the exported FBX files? I'll admit this turns a 1-step export/import process into a 2-step, but wouldn't this work?
     
  7. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    I've spoken with Thomas from the DCC team about this.
    It's true export to fbx is a workaround in Maya but it has a few problems:
    1. Maya 2013, which I use has a bug in the plugin activation where sometimes a plugin switches off, fbx is one of those plugins
    2. 100% of the time time double clicking an fbx opens maya but maya is "unable to recognize the file type", that's another bug and so I have to open it by hand
    3. (if these two reasons are not enough) an .ma file contains settings which fbx discard such as IK rig, constraints, expressions, mel scripts, modeling and deformer history, and character sets - they all get baked on export to fbx. Would I want to work off a baked scene? No I don't like pain. These are too important to discard and so I would have to load up the scene every time instead of double clicking on the asset, then exporting to fbx, then I would wonder are we in the 90s?
     
  8. Gurg

    Gurg

    Unity Technologies

    Joined:
    Nov 9, 2016
    Posts:
    73
    Hmmmm... that is a problem. I actually just spent the morning talking about your use case internally. We do want to support this use case, but we also don't want to touch the Library files as that's a folder that is supposed to hold files you don't want to pass around like compiler scripts, hence why Collab just focuses on the Assets folder.

    Do you mind if I ask you what your team's workflow was like before using Collab? If you have details you would rather not post in the open, feel free to PM me with them. We want to make sure we aren't impeding established workflows.
     
  9. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    We used the Asset Server which didn't need Maya to update a project's asset.
     
  10. Gurg

    Gurg

    Unity Technologies

    Joined:
    Nov 9, 2016
    Posts:
    73
    Alright, I am going to see what I can do about playing around with Asset Server in this use case after the holidays to see what it does and what can we do to port that logic to Collab.