Technical advice needed: I want to write / inscribe a file …
Technical advice needed:
I want to write / inscribe a file of an unconventional file type (a 3D scene file) to the blockchain and then reference that file as a URL (https://…) within some HTML so it will load within a canvas object within the HTML.
I have the HTML code already that works with a traditional URL… the challenge is getting the URL to work as a reference to a file on-chain.
Any suggestions @KURO , @metamitya or others?
Replies
@J1 Pelaez is working on a wallet optimized for 3D inscriptions, maybe he has an idea.
Link to page: https://3dordi.io/
After incribed, you could use the URL.
3dordi.io/ordinal/{txid_vout}
Or
modelviewer.dev/examples/twitter/player.html?src=https://plugins.whatsonchain.com/api/plugin/main/{Origin txid}/{vout}
In the second case you need to use the Origin txID instead of txID outpoint.
Or
ord-arena.vercel.app/collection-items/{OrigintxID_vout}
GorillaPool download the 3D content but not display it directly.
Examples: https://3dordi.io/ordinal/71fd89a6cf62acfba6d87cc1966eecb9502070da11e8dc5c64c2e252950ff2ee_0
https://modelviewer.dev/examples/twitter/player.html?src=https://plugins.whatsonchain.com/api/plugin/main/7923de305910b37e08e1219b634dedd2e1651b987d6477eac8291975abb0369d/0
I'm not an engineer, so I can't give you much practical advice, but all I can say is, "You won't know until you try it."😅
❶ Inscribe your 3D file on 1sat.market
❷ Reference the origin inscription of that ordinals (a URL such as ordinals.gorillapool.io) in the HTML file
❸ Inscribe the HTML file on 1sat.market etc.
Your question is whether you have an environment where the HTML inscription can be displayed?
Ok, thank you all for your responses! @pxl272 @J1 Pelaez @KURO @metamitya
Display of the file is technically not the issue because the Babylon JS viewer is embedded in the HTML... and works... sorta... read on...
The challenge is uploading the file to the blockchain and being able to reference it as URL in the HTML for the embedded viewer to read...
it's not a standard glTF or glb or obj file... it's a .babylon scene file and even 1sat doesn't seem to allow me to upload it... although, I can try a few more things... but I'm getting frustrated.
Here, I've uploaded the HTML, but the HTML is referencing my 3D .babylon scene from my github repo (I'm not a developer... just using it for serving files ;D ).
1satOrd displays the 3d scene correctly in the preview, but becomes static once broadcast and in my wallet... but, whatsonchain displays it correctly in the decoder... and you can also see the HTML link to the file here, too.
https://whatsonchain.com/address/1DZWVfD9DqbqdLkwBmWg4e7ZvG9pADgWz3
You can see how it acts of 1satOrds here =/
https://alpha.1satordinals.com/outpoint/e020d8aa853e1ca332bfbed487b3633992aa5ace01d0349105f4a9777d4adfac_0/timeline