3 ms·
Darn, I opened the link and saw it was using Python. Sadly that seems to just be for the install process, for whatever reason. Does anyone have any recommendat
by digdugdirk 3y ago
Darn, I opened the link and saw it was using Python. Sadly that seems to just be for the install process, for whatever reason.
Does anyone have any recommendations for an intermediate graphics library that uses Python and supports compiling your code to a WebGL target?
I'm interested in exploring SDF functions in a parametric CAD context, but coming from a Mechanical Engineering background. Not having to learn a new programming language for a side curiosity would be ideal.
- bschwindHN 3y agoYou probably have already seen this, but I would take a look at libfive for inspiration https://libfive.com/ https://libfive.com/
- bmitc 3y agoPython has wgpu wrappers. Why do you want to use Python though for such a heavy graphics program?
- digdugdirk 3y agoPurely because I already know it well enough to be semi-dangerous. My day job is designing physical goods, I don't have the time to learn anything new just to satisfy my curiosity with signed distance fields.
- adastra22 3y agoI don't think you realize just how horrendously bad Python would be for this application. The global interpreter lock and marshaling between Python objects and GPU state would absolutely kill any kind of performance. Pick up Rust and Bevy. It should be pretty easy to mock up what you want, and you can dip into wgpu when you need extra fine control over the GPU.