@J1 Pelaez This one really seems like it should work... bu…

staub ·

@J1 Pelaez
This one really seems like it should work... but doesn’t and no clue why.
Inscribed the .bablyon file as application/bablyon on 1Sat.
If I go visit the Decode page for the inscription on Whatsonchain, it downloads the file, “0”. If I add extension .babylon to the end of the file, it loads in BabylonJS Sandbox perfectly.
Yet, if I reference the file using any number of ways including the URL below, it doesn’t load in the embedded viewer.

https://alpha.1satordinals.com/outpoint/45abf13714cdcd1cba6106a13d04f39ba7fc914a5c12a6b0590bee5f3b3c79de/0.babylon

Inscription origin is: https://alpha.1satordinals.com/outpoint/45abf13714cdcd1cba6106a13d04f39ba7fc914a5c12a6b0590bee5f3b3c79de_0

What am I doing wrong?

@J1 Pelaez 
This one really seems like it should work... but doesn’t and no clue why.
Inscribed the…

Replies

J1Pelaez ·

Inscribe the .bablyon file again using the follow content type:

application/babylon+json

J1Pelaez ·

El tipo MIME (Content-Type) adecuado para inscribir un archivo .babylon depende de cómo deseas que sea interpretado y indexado por lectores de Ordinals o visualizadores que soporten el protocolo 1Sat Ordinals.
---

📁 ¿Qué es un archivo .babylon?

El formato .babylon es típicamente:
Un archivo JSON estructurado usado por Babylon.js para describir escenas 3D.
Contiene mallas, cámaras, materiales, animaciones, luces, etc.

Similar a .glb pero en forma de texto (JSON).
---
✅ Content-Type correcto
application/babylon+json

Esto sigue el patrón oficial de IETF para extensiones personalizadas de JSON:
application/<nombre-protocolo>+json
---
🎯 Alternativas aceptables (menos específicas) MIME type Cuándo usar:

application/json Si no sabes si es específicamente Babylon

application/babylon+json ✅ Recomendado si sabes que es un .babylon

text/plain No recomendado, rompe semántica MIME
---

🧠 ¿Por qué es importante usar el correcto?

1. 📦 Indexadores como OrdinalScan o JungleBus pueden identificar el tipo del ordinal para mostrarlo o permitir búsquedas por tipo.

2. 🖼️ En viewers personalizados (como para 3D), puedes activar renderizado WebGL automático si el MIME es babylon+json.
---
🛠️ Ejemplo en

OP_FALSE
OP_IF
application/babylon+json
{ "autoClear": true, "clearColor": [0,0,0], ... } ; // cuerpo del archivo .babylon
OP_ENDIF

J1Pelaez ·

Could you send me a babylon file with size less than 10MB in a DM to make a test..? Or in a share drive to download it..

staub ·

Done!