hiina7736
hiina7736
OBOOpen Brush, Open Blocks, Icosa Gallery
Created by hiina7736 on 10/30/2022 in #open-brush-bugs
use 3d reference model as exactly-positioned reference scene
"import model as sketch starting point" perhaps.
18 replies
OBOOpen Brush, Open Blocks, Icosa Gallery
Created by hiina7736 on 10/30/2022 in #open-brush-bugs
use 3d reference model as exactly-positioned reference scene
sounds good. in this case however, I dunno if I really want an api. I feel like it's more of a "custom scene" functionality. like instead of the "pedestal" scene I want my custom model. or potentially like a whole gltf scene graph, fixed in place. Whatever it takes for this "openbrush embellishment" workflow I have.
18 replies
OBOOpen Brush, Open Blocks, Icosa Gallery
Created by hiina7736 on 10/30/2022 in #open-brush-bugs
use 3d reference model as exactly-positioned reference scene
I did find the pinning, which is helpfully in the metadata.json (pinStates).
18 replies
OBOOpen Brush, Open Blocks, Icosa Gallery
Created by hiina7736 on 10/30/2022 in #open-brush-bugs
use 3d reference model as exactly-positioned reference scene
hmm, glancing through the api I see an import.model, but how do you translate/scale the resulting model to 0,0,0, 1x scale? ( and model Y to world Y i guess).
18 replies
OBOOpen Brush, Open Blocks, Icosa Gallery
Created by hiina7736 on 10/30/2022 in #open-brush-bugs
use 3d reference model as exactly-positioned reference scene
FTR, it is possible to edit the imported model transform back to 0,0,0 and 1.0 scale, here just with vim. However, since the format is based on zip (https://docs.openbrush.app/developer-notes/open-brush-file-format) you have to be careful to keep the length the same, which is easiest by replacing any long decimals with all zeroes (then opening/resaving the sketch in openbrush to reserialize back to nice numbers).
18 replies