r/vectorart • • 3d ago

vector art program experiment: building interactive hardware docs with native SVG path groups instead of a 600KB Three.js scene

Post image
5 Upvotes

4 comments sorted by

1

u/AbleBranch6 3d ago

explanation:
needed an interactive hardware diagram for a pocket synth manual where hovering over the rotary encoder, sequencer pads, or TRS jacks highlights the component and triggers a spec popover. Reaching for Three.js or Spline felt like overkill since pulling in a 600KB WebGL bundle just to highlight four hardware parts tanks mobile page speed.
my very 1st attempt was rendering a raster isometric graphic and running it through a standard png to svg tool. Total mess. Every free svg converter I tried fused the orange rotary knob directly into the yellow top deck and shattered the OLED waveform into 3,000 jagged micro-polygons.
then ended up testing models within recraft studio and its vector model of course as an in-browser vector art program to make native isometric vector artwork directly; so because their V4.1 vector engine compiles discrete closed shapes instead of tracing pixels, the raw download gave me 208 clean paths (169KB raw XML, 44KB gzipped after stripping the 4.4KB C2PA header). grouping the 22 orange encoder facets into <g id="rotary-encoder"> and the 37 waveform bars into <g id="oled-waveform"> took two minutes in a vector editor online. added six lines of CSS for hover elevation and active playhead fills. runs at 60fps in plain HTML/CSS with zero JavaScript canvas overhead

what do you think about this?

1

u/whowasntright 3d ago

interesting flow.. also, how painful was grouping the 208 raw paths into clean component tags? Does the export name the layers or just dump flat path elements?

1

u/AbleBranch6 3d ago

thanks! dumps flat path elements sorted by color region. Selecting by fill hex in Recraft Studio or Figma lets you group the 22 orange knob facets in five seconds

1

u/whowasntright 3d ago

i get this better now