i have (maybe) a stupid but for me important question.
imagine a cuboid, which has a predefined length, a height and a depth shown in a browser window. below there is a html form with some input fields for length, height and depth and a button “change”.
if i now change one of these text fields for example length from 1m to 3m and click a button “change” it should adjust my mesh instantly to a cuboid with 3m length.
showing the cuboid in a browser, give it some nice textures, change the camera is super easy thanks to your 3d engine
my problem is passing these predefined “parameters” like length to the model/mesh and rerender(?)…
i don’t want to create the mesh by my own directly with babylonjs - i know this would work. but these models i want to work later on are much more complex so i need someone who can create these with for example fusion 360 autodesk a CAD program and i just want to import them in order to show them in the browser.
in these CAD programs there is a possibility to create a parametric construction. which means it’s a mesh with parameters for e.g. length, and so on.
a friend of mine now created such a 3d model (this cuboid) with these editable parameters for me and gave me the model in different formats 3mf, f3d, fbx, obj, sat, skp, smt, stl and usdz.
my questions are: if i import such a model with babylon, is there a way to adjust these predefined parameters? does anybody has experience with this?
do you know how to create such models in a CAD or Blender in order to do stuff like this in babylonjs?
As for file formats, some of CAD tools support GLB export, one may also use .obj or even .stl (which has no textures though) to use with Babylon. Personally for me, when I worked with CAD models, most convenient pipeline was export to FBX and then import to C4D (or Blender if you prefer) for optimizations and texturing, then export to GLB.