← Back to team overview

kicad-developers team mailing list archive

3D export to FBX

 

Hello,
I would like to implement 3D exporter to FBX format (proprietary to
Autodesk, but also supported by blender and other software).
Advantage to this is that it is directly supported by other software
without need to convert the file.

Where would be best place in the codebase to implement this?

Currently there is vrml exporter in pcbnew/exporters, but it is 1800
lines long and I would likely have to duplicate most of it, which would
be really error-prone.

Then there is c3d_render_createscene in 3d-viewer/3d_rendering/raytrace 
(1500 lines long) which implements mostly the same functionality as
vrml exporter and that is creating geometry which then could be
exported or rendered.

End result of this duplication is that those parts behave differently
(see attached images for screenshot from 3D-viewer and blender view of
VRML export). It would be nice if there was some kind of intermediary
representation which would be created from BOARD* and then different
parts used this representation to generate their data. This would also
supposedly simplify both renderers (ogl_legacy,raytrace) and VRML
exporter and make it easier to create FBX exporter (and any future
exporter).

JS

Attachment: screen1.png
Description: PNG image

Attachment: screen2.png
Description: PNG image


Follow ups