Gavin pfp
Gavin
@gavin
Thinking about the following system for on-chain 3D NFTs. First, imagine a JSON (or XML) schema which is used to describe the materials, mesh, positions and other properties, like SVG. This is the data that is placed in the tokenURI.
1 reply
0 recast
0 reaction

Gavin pfp
Gavin
@gavin
Second, a viewer component package that would need to be adopted by wallets. This would intake the tokenURI data and map it to ThreeJS.
1 reply
0 recast
0 reaction

Gavin pfp
Gavin
@gavin
The schema is hard to get right and crucial for success. It needs to offer enough flexibility to enable creators to make whatever they can imagine. The more flexibility added to the schema, the more complexity ends up in the viewer.
1 reply
0 recast
0 reaction

Gavin pfp
Gavin
@gavin
Another question is how to deal with large meshes, which would almost certainly be over the 24kb limit. One idea is to fragment them and deploy as separate contracts via a dev tool–we only need to retrieve this data during mint, after that it is etched into the tokenURI.
1 reply
0 recast
0 reaction