Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

in2Unity - Geomtry (vertex) animation export from 3dsmax

Discussion in 'Assets and Asset Store' started by AbgaryanFX, Aug 4, 2011.

  1. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167



    3ds max script, to help export any geometry(vertex) animation from 3ds max to Unity.

    How To Export From Max And Import Into Unity3D !

    1. Run Maxscript ( if you don't know how to run script , please ask google :) or read 3ds max help )
    2. Press pick animated object and select Your animated object


    3. Edit animation range and step if necessary.


    4. Press "Start" to animate.
      Note: Original Object will be hidden and copy of that object will be prepared for export.


    5. Select animated object and ALL point helpers.


    6. Goto export then select export selected in menu.

    7. Export as usual animated object into Your project folder.


     
    Last edited: May 4, 2013
    mgear, kilik128 and t_w like this.
  2. IonDave

    IonDave

    Joined:
    Sep 27, 2010
    Posts:
    58
    What are the point helpers for? It looks like you have one at each vertex. If you have to have one per vertex, do you have a script that generates this for you?
     
  3. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Actually the script is for 3ds max and yes it's generates that points ;)
     
  4. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Planned: Dynamic Vertex Count Support
     
  5. Ali-Nagori

    Ali-Nagori

    Joined:
    Apr 9, 2010
    Posts:
    151
    i just brought this this morning It's a Good script b4vibe appreciate your work , but it did converts every single vertices to a helper point , but i really hope if you could add an option for controlling number of point to be generated
     
  6. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    I'll try to add point controling option and Thanks for your support !
     
  7. Ali-Nagori

    Ali-Nagori

    Joined:
    Apr 9, 2010
    Posts:
    151
    one more thing i want to add as a suggestion and a review at the same time

    today i tested your script at per-morphed head animated model , the problem here was that the number of points reached almost to 4000 and above , as if it did covered every single vertices.
    beside that it's impractical to process , but the system memory needs to be extremely big to cover such bone skinning
    in my case it almost reached to 7 gb during skinning time

    the problem was from the number of helper which needs to be skinned

    my suggestion is two one controlling number of helpers to generated , and in case of large object such as faces reference poly rather than vertices

    and keep up the great work ;)
     
  8. crazyosachou

    crazyosachou

    Joined:
    Sep 27, 2010
    Posts:
    176
  9. crazyosachou

    crazyosachou

    Joined:
    Sep 27, 2010
    Posts:
    176
    Didn't know that unity3D team has opened a store ...
    How can i sell my products?
     
  10. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    There is another solution for getting such data to Unity via industry standard point cache files such as .mdd .mc and .pc2 files so works with all 3d packages and there is also an option to use direct vertex animation so greatly reducing memory use. http://www.west-racing.com/mf/?page_id=1335
     
    Last edited: Jan 2, 2012
  11. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
  12. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    open unity, goto window menu and select Asset Store !
     
    Last edited: Aug 4, 2012
  13. BryceK

    BryceK

    Joined:
    Jun 15, 2012
    Posts:
    24
    I Got question about your product :) if you make like a vertex character animation and you put it in unity. What kind of tags do you get on your mesh? like skinned mesh renderer or anything like that? or just a mesh renderer? And what about the preformance of Vertex animations in unity? also how much draw calls does it produce?

    A normal skinned/boned character genarates 3 draw calls im aiming for 1 that could batch :) could your product produce that?
     
  14. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    A skinned mesh renderer.. my script creates bone animation in 3dsmax. Here is a paper page listing example http://clip2net.com/s/2aY1T Mesh has 290 vertex animated and only one drawcall :)
     
  15. James Worth

    James Worth

    Joined:
    Aug 15, 2012
    Posts:
    16
  16. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    You can detach the animated part.
     
  17. RoyS

    RoyS

    Joined:
    Jan 12, 2009
    Posts:
    664
    What versions of Max does this support?
     
  18. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    tested on 2010-2013, but it should work on previous versions ..
     
  19. circlecube

    circlecube

    Joined:
    Sep 6, 2012
    Posts:
    7
    are you planing to release this for maya ? that would be sweeet !
     
  20. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    no, sorry :)
     
  21. fliphaz

    fliphaz

    Joined:
    Dec 18, 2012
    Posts:
    2
    I purchased the script yesterday, unfortunately it's not working so far.

    I'm using it in max2012 64bit, tried all sorts of different objects and settings, but I always get this error message:


    It doesn't crash Max but it doesn't seem to finish the process either. There's an EditPoly modifier being added to the original object, a copy is being created which has a Skin modifier, and it adds Point Helpers for all Verticies. It does not hide the original object.

    I also tried to import the result into Unity, there were no errors but no animation as well.
     
  22. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Please contact me with this email address artyom[at]cyclopes3d.com and I'm sure that I will find a solution for you !
     
    Last edited: Jun 17, 2014
  23. fliphaz

    fliphaz

    Joined:
    Dec 18, 2012
    Posts:
    2
    I figured out a workaround, so I successfully imported vertex animations into unity now! :D

    I'm still getting the error message and the script doesn't finish but I just added all the PointHelpers as Bones in the Skin modifier thats being added by the script. Then I delete the original object manually and export and everythings fine.

    It's totally awesome. Got cloth physics animation on 400+ poly objects with 500 keyframes and it's running perfectly smooth in unity. The only small letdown is that the self-shadowing of those cloth objects isn't very smooth when I use hard shadow. Unity probably can't figure how to keep the normals smoothed.

    I'll send you an email about the error message anyways.
     
  24. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    And also include the max version you are using, Thanks !
    Glad for you and me ;)
     
  25. createplayshare

    createplayshare

    Joined:
    Oct 15, 2009
    Posts:
    80
    Hi I just purchased ur script today. I can do everything with it but the problem is mesh looking all crumpled. I had to manually add a skin modifier and then put all the pointers inside as add bone only then its working in unity. Whereas these steps are missing in the read me file.

    I have to finish something tonite can you please reply asap so my mesh looks all clean. That will be really helpful. Thanks.
     
  26. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    now it's free :/ njoy
     
  27. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Hi Geert

    Select the animated object and pointhelpers and then export "Selection" to FBX (with enabled animation) http://clip2net.com/s/5pBsAQ
     
  28. GeneGeneGene

    GeneGeneGene

    Joined:
    Jul 18, 2013
    Posts:
    5
    How did you manage to do this exactly? I add all the bones to the Pointhelpers, but what are the FBX exporter options and the way you got it to work in Unity? I tried lots of stuff, but can't figure it out.
     
  29. GeneGeneGene

    GeneGeneGene

    Joined:
    Jul 18, 2013
    Posts:
    5
    Thanks Artyom. If you import the FBX in Unity should it work instantly?

    With one model I got an "Unknown System Exception" error while using the plugin.
     
  30. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    yes !

    Is there spacewarp on that model ?
     
  31. GeneGeneGene

    GeneGeneGene

    Joined:
    Jul 18, 2013
    Posts:
    5
    No there isn't. I just used animation layers. It gave an "unsupported controller" error while exporting though:
    , but it works perfectly in Unity with the latest version of the FBX exporter.


    In the Unity version I'm using, importing the FBX will set "Animation Type"(under Rig) to "Generic" by default, but setting it to "Legacy" made the animation work in Unity.
     
  32. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    try with bake anim ...
     
  33. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    722
    great work
     
  34. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
    hi,

    I have animated model which around 10,938 vertices ,can this tool help me?

    Thank You in Advance

    Dev
     
  35. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    thanks
     
  36. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    I don't think so... there is problem in 3dsmax when importing bones to Skin modifier.
    I think you should make good rig for that animation and forget about vertex anim :)
     
    Last edited: Jul 20, 2013
  37. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
    hi,

    Thanks for reply.

    Dev
     
  38. toto2003

    toto2003

    Joined:
    Sep 22, 2010
    Posts:
    528
    i just try it, and work like a charms, thanks for this!!!
    you rock!
     
  39. toto2003

    toto2003

    Joined:
    Sep 22, 2010
    Posts:
    528
    hi
    i try the script with a mesh of 400 vertex, so it mean 400 bones!!!! surprisingly i didnt see a big impact in performance, is this normal as i ve been told to keep any skin characters below 30 bones MAX!!!!!

    i m just curious why in your case it run smooth.
     
  40. Kapoon

    Kapoon

    Joined:
    Oct 27, 2013
    Posts:
    1
    wtf where is download?
     
  41. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    First post !!! :|
     
  42. yandrako

    yandrako

    Joined:
    Dec 2, 2013
    Posts:
    26
    Hi,
    Im trying to use the script with 3DMax 2014 and I have the following error message after press the "start" button of the dialog:

    MAXscript Rollout Handler Exception
    Unknown system exception

    Max dont crash but when I import the fbx into unity, despite I see s_v_1, s_v_2 etc The model dont move. I supose the error from 3dMax is the reason for that. Dont know which could be the problem, the model is just a cube (linked to another one) that have a FFD 3x3x3 deformation which I used to animate the model itself. Any idea of what I am doing wrong?

    Thank you
     
  43. michaelnam07

    michaelnam07

    Joined:
    Dec 25, 2013
    Posts:
    1
  44. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Hi !

    Try to use the script with low amount of mesh vertex. 3dsmax not able to add more than 400-500 vertex into skin modifier
     
  45. BrutalMax

    BrutalMax

    Joined:
    Jun 8, 2013
    Posts:
    2
    Only 400 vertices? Realy?
     
  46. caggiu

    caggiu

    Joined:
    Dec 3, 2013
    Posts:
    1
    Hi!!
    Try to use the script on a sample box like in your guide but I got this runtime error "Skin need to be selected and in the modifier panel Skin:Skin".

    Can you help me? Thank you so much.
     
  47. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    try to convert box into editable poly. if you fail, attach here your .max file here or send a PM
     
  48. devon_j_hartman

    devon_j_hartman

    Joined:
    Mar 19, 2015
    Posts:
    14
    No joke, this is awesome. I just spent all morning looking for ways to import vertex animation and this is the only method that worked!
     
  49. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Thanks :)

    Check out the tool UNITY uses to import vertex animation, it's called alembic importer: https://github.com/unity3d-jp/AlembicForUnity. They use importer to import Adam hand's rubber tearing animation
     
  50. dalaovip

    dalaovip

    Joined:
    Apr 27, 2019
    Posts:
    1
    ž怎么能联系到你呢,大佬,