this was so annoying to get working ðŸ˜
this was so annoying to get working ðŸ˜

22 Replies
Here's the prompt if you want to try it:
@shibo the 3d viewer isn't working and i could use help. We have a huge huge demo next week and this stuff needs to be 100% rock solid for me to demo it but could be a big customer.
You must load manifold from a trusted CDN for it to work w/ ChatGPT, so probably unpkg or jsdelvir.net, can't embed the blob url


we definitely need to get automatic traces/netlabels working in maintline, but after that it does seem like this will work


Isn't the bundled cdn version for manifold would also have wasm?
yes

But chatgpt sandbox can't run wasm.

even embedded as a js string?
I don't know try it
I mean the example I showed did use the base64 encoded version
@shibo we are for sure not loading from cdn. I looked at the 3d-viewer codebase and there are direct manifold imports
It is getting bundled, idk if there are two modules (eg one with WASM ) but it’s listed as a dep or something.

This shouldn't be a dep as it contains the wasm
I just met with Rishabh, we are incredibly pressed on time but the 3d viewer needs to work in this repo in addition to 10 other things that need to be fixed https://github.com/tscircuit/circuit-preview
GitHub
GitHub - tscircuit/circuit-preview
Contribute to tscircuit/circuit-preview development by creating an account on GitHub.
I will record a video but tldr you just build and open the html files to test
@Rishabh another issue: im not sure if we’ll be able to load the cdn 3d models….
passing along some notes Rishabh and I took about stuff not currently working that we have 6 days to fix and make perfect...

RE: Manifold imports CC @shibo this is the issue and causing all the problems IIUC

not a CDN import
Was afk, ill see what i can do
@Seve you can't import types from a cdn right? can I copy those type files into our project?

it's ok to import the types
but manifold-3d package has the wasm
if you import type files it gets stripped so it's ok