WIP Beta released Blender Collada CDAE (&DAE) Plugin

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

  1. Brokenbraincells

    Brokenbraincells
    Expand Collapse

    Joined:
    Dec 27, 2023
    Messages:
    74
    I am on version 4.2 it just has worked flawlessly for me forever now so i don't upgrade. And no i couldn't seem to get it to throw any errors, I was going to ask about it on the GitHub in the issues section but i got to sidetracked on working on it. lol. I think i just got it to import the materials .json and images and apply them to the model now im hoping that i have the uv maps importing correctly lol. at first when importing the models it was extremely messed up and i had to have it merge verts and stuff, so lets pray uvs are right still
    --- Post updated ---

    i got the uvs working and it now applies all materials with images as long as the file is unpacked im still working on getting it to read the zip file



    *Edit*- V26 files are being really dumb
     
    #21 Brokenbraincells, Jul 13, 2025
    Last edited: Jul 14, 2025
  2. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    Improvements to the importer, now loads uv-maps, vertex-color and also handles edges correctly.
    _Unsaved-Blender4402807202504_33_07.png
     
    • Like Like x 2
  3. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    #23 Grille, Jul 29, 2025 at 12:48 AM
    Last edited: Jul 29, 2025 at 12:54 AM
    • Like Like x 3
  4. Baconzez

    Baconzez
    Expand Collapse

    Joined:
    Feb 4, 2024
    Messages:
    195
    does it auto triangulate on import/export?
     
  5. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    Yes
     
  6. Baconzez

    Baconzez
    Expand Collapse

    Joined:
    Feb 4, 2024
    Messages:
    195
    is there any way to disable that?
     
  7. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    nope, i can easily add the option, but why would you want that?
    beamng only works with triangles, so importing back cdae thats just what you get.
    and on export no triangulation would make the file unusable in beam.
    --- Post updated ---
    BeamNGdrive-0364018364-RELEASE-Direct3D112907202523_48_12.png
    The first step in exporting materials: Color & Color-Map
     
    #27 Grille, Jul 29, 2025 at 11:49 PM
    Last edited: Jul 29, 2025 at 10:57 PM
    • Like Like x 1
  8. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    191
    weirdly in beamng's files, a lot of (if not all) models are not triangulated, but still usable. However that's dae, not cdae. Is it that beamng takes a dae, then triangulates it when making the cdae? So the cdae needs to be triangulated?
     
  9. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    yes, cdae is only triangles.
    and i strongly suspect the game engine also only handles triangles.
    Support for variable sized polygons in render code would be a complexity and performance nightmare.
    --- Post updated ---
    Still far from perfect but it’s a start ^^
    _testC__Users_Grille_Documents_testblend-Blender4503007202507_07_29.png BeamNGdrive-0364018364-RELEASE-Direct3D113007202507_04_57.png
     
  10. Baconzez

    Baconzez
    Expand Collapse

    Joined:
    Feb 4, 2024
    Messages:
    195
    that is not true, but i understand that cdae is purely tris, game can work with quads in a dae and even ngons as it can auto triangulate them (just poorly) and having a quadded mesh in a mod makes it easier for people to use, i suppose i could just put an FBX in too for people who wish to modify it....
     
  11. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,662
    That's what you get in cdae, triangles. You can just press tris to quads in edit mode to get back quads :p Game does not support anything else than triangles
     
    • Like Like x 1
  12. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
    View attachment 1246207 View attachment 1246208
    On important thing to understand about this addon is that I’m no longer threating collada as generic exchange format, but a game-engine optimized end format.
    In fact, it doesn’t even really contain a real dae serializer, I’m just building a cdae internally and blow that up to the text format again.
    Any feature that isn’t in cdae but would theoretically be supported in dae obviously won’t survive this.

    So yes, if you want people to be able to modify your models, offering some kind of projects file might be a good idea.
    Collada (even in its current form) was never good at this in the first place, it works but you lose lots of information…
     
    • Like Like x 1
  13. Baconzez

    Baconzez
    Expand Collapse

    Joined:
    Feb 4, 2024
    Messages:
    195
    small issue about tris to quads is that it very often messes up edges crating weird quads instead of the original flow
     
  14. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    232
  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