WIP Beta released Blender Collada CDAE (&DAE) Plugin

Discussion in 'Utilities and programming' started by Grille, Jul 3, 2025.

  1. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    Since we now have cdae specifications and built in Collada support in blender will probably be dropped soon, I thought a dedicated addon to export models to BeamNG could be useful.

    The focus of this addon is exporting, but it contains a cdae importer for debugging purposes. I don’t plan to include a dae importer for now.

    It’s still in development and will probably take a while until it becomes really useful.
    But if you want to test it out and give feedback that would be great! ^^

    Source Code: https://github.com/Grille/Blender_BeamNG_CDAE
    Downloads: https://github.com/Grille/Blender_BeamNG_CDAE/releases
     
    #1 Grille, Jul 3, 2025
    Last edited: Jul 11, 2025 at 9:39 PM
    • Like Like x 6
  2. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    525
    Do you think that cdae will be a useful fileformat for modeling without the base dae files?

    But thanks for hinting me to the definition. I always wanted to be able to read the materialnames from a cdae for my shrinker tool. Now I can do it.
     
    • Like Like x 1
  3. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    If you export to dae or cdae doesn’t makes much difference for the modder.
    Except that cdae aren’t browsable from BeamNG yet, something the Dev’s hopefully change.
    Maybe I also add dae support in the future, generating the text format isn’t hard once I’m able to build the binary one.

    What’s more interesting is to have a plugin that is tailored to beamng’s needs and not a generic format.
    Being able to generate material.json from blender materials or, to autogenerate the scene tree are some of the possibilities.
     
    • Agree Agree x 2
    • Like Like x 1
  4. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    Screenshot46.png
    suzanne after export and import
     
    • Like Like x 1
  5. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    525
  6. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    187
    this is fantastic! well done. I looked at doing this myself, and instantly had a case of the "oh, I have no idea what I'm doing"
     
    • Like Like x 3
  7. Neverless

    Neverless
    Expand Collapse

    Joined:
    Sep 18, 2016
    Messages:
    239
    Thank you very much for this mate, this is awesome work!
     
    • Like Like x 1
  8. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    Thanks, Thankfully I already have some experience serializing/deserializing mesh data, so I knew what mess I was getting into xD
     
    • Like Like x 1
  9. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    20250709135601_1.jpg
    finally...
     
    • Like Like x 1
    • Agree Agree x 1
  10. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    _Unsaved-Blender4401007202509_27_56.png
    I find building the BeamNG scene tree before export quite tiresome, so alternatively it can be now handled over custom properties.


    The plugin now also contains a dae exporter making use of BeamNG specific features.
    That one is probably more useful than the cdae one until the dev add better support for using cdae directly.
     
  11. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    525
    nice! I use this blender plugin almost always for exporting to BeamNG.
    https://www.beamng.com/threads/beamng-easy-export-for-blender.85294/
     
    • Like Like x 1
  12. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    matexpo.png

    Any ideas for conventions on how I parse blender materials?

    I need some node structure I can expect.
     
  13. Brokenbraincells

    Brokenbraincells
    Expand Collapse

    Joined:
    Dec 27, 2023
    Messages:
    74
    I got material importing working and applying it correctly to the mesh but just the material names
     
  14. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    58
    I have my own Collada importer/exporter for blender 5.0+ I'm gonna release soon, just some minor things to fix before release
     
    • Like Like x 1
  15. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    In what context?

    Nice!
    Specifically, for BeamNG or general purpose?
     
  16. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    58
    General Importer/exporter, but wanna include some extra stuff that helps with beamng dae files on top.

     
    #16 Blenux, Jul 12, 2025 at 11:32 AM
    Last edited: Jul 12, 2025 at 11:41 AM
    • Like Like x 1
  17. Brokenbraincells

    Brokenbraincells
    Expand Collapse

    Joined:
    Dec 27, 2023
    Messages:
    74
    --- Post updated ---
     

    Attached Files:

    • Like Like x 1
  18. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    ah, yea thats expected.
    I would need to add a materials.json importer and access to beamng's virtual file-system to fully load materials.

    i also really need to optimize that importer from what I see in youre video xD
     
  19. Brokenbraincells

    Brokenbraincells
    Expand Collapse

    Joined:
    Dec 27, 2023
    Messages:
    74
    NAh i made my own lol that handles all the older versions of cdae and cached.dts files and stuff so it lags for a bit when trying to figure out which is which cause im not the best at coding

    When i tried to use your base addon from GitHub it jus wouldn't even show as an addon nor would it when i installed it manually.
     
  20. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    223
    oh lmao
    nice job reverse engineering thes formats witout specs btw ^^
    what blender version do you have?, does it at least give a python error?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice