Video (w/ Audio) Tutorial: How to Load Any Twetch Twonk in …
Video (w/ Audio) Tutorial: How to Load Any Twetch Twonk in Blender
+text instructions
GM Twetchians!
This tutorial teaches you how to download any Twetch Twonk from the blockchain for viewing in Blender (or any other glTF file viewer).
This tutorial assumes you have some familiarity with Blender, editing non-text files in a text editor and an understanding of common computer and image file types.
Tools you'll need:
-Web Browser
-Plain text editor
-Blender
Links you'll need:
-twetch dot com
-whatsonchain dot com
-https://dogefiles.twetch.app/
-blender dot org
1) Step one is to locate a Twonk you want to download and view in Blender.
*You can start with any of your own Twonks, any Twonk on the Twetch Market, or you can find a specific one on-chain.
-To find a Twonk not in your wallet or on the market, please follow my tutorial for Finding Current Twonk Owner. In that tutorial, you'll learn how to find any Twonk, including its current owner.
In this example, we're going to use the newest of Twonks... Muties!
The same principles work for all other Twonks, as well.
2) Copy the txnID from the Twetch Twonk URL and do a search of it at WhatsOnChain dot com
3) At WhatsOnChain, find the ScriptHash: sigil transaction that represents the Twonk in that particular collection that interests you, or just pick anyone to get started.
Your item of interest will be the number of the item minus 1 (because txns start at zero).
4) Expand the ScriptHash: sigil transaction details.
You'll find that the transaction details show you all of the trait and rarity information of the Twonk, but it also has URL links to the on-chain files that define the Twonk, its properties and how it gets displayed.
The main file we are looking for is the glTF 3D scene file.
glTF stands for Graphics Language Transmission Format and is an enhanced form of 3D object file similar to the familiar, legacy .OBJ 3D Object file format but supports a greater variety of features, like advanced material and texture support, which is why Twetch is able to spoil us with these incredibly detailed airdrops.
Copy the tnxID for the glTF file and append it to the end of the dogefiles URL below and hit Enter
https://dogefiles.twetch.app/
Depending on your browser or operating system, this file will either download immediately or be displayed as text within the browser.
-If it downloads the file, navigate to the file's location (likely your Downloads folder) and append the file extension .gltf (if the extension is not already there--it usually isn't).
-If it displays a web page with the text of the file, select all of the text on the page (Ctrl + A) and paste (Ctrl + V) into a basic text editor and save the file as plain text, close the file, then rename the file with file extension .gltf
*Be sure to use a plain text editor because using any type of formatting or markup editor, like MS Word, tends to add extra characters to the file that will break the file for our use case.
5) Create a new folder, name it something descriptive like "muties", and move the glTF file into this folder.
The rest of the files we are about download will go into this folder as well.
6) In addition to the glTF file, there are files of two other types we need to download, and the links to these files are found inside of the glTF file. Open the glTF file again and locate the following headers:
"buffers" - there is a single file linked to under this header and it is a .bin file containing all of the 3D object geometry.
-Copy the URL and paste it in a browser window. Just like the glTF file, if it downloads the file or shows the text/code of the file, save it and change the extension to .bin
-Move the file to your custom folder.
"images" - all of the files linked to under this header are the image textures that give each Twonk its color and other surface properties. Each "mimeType" sub-header also tells you what file format each image is. In this case for our Muties example, all of the images are PNG (portable network graphics) format.
Copy and browse to each URL and download the associated image. Every single image is required.
*Note: the placement of content in the glTF files is not always consistent and some of these elements may appear in different locations, but if you look for the headers mentioned above, you'll always be able to find the links wherever they occur in the file.
**Note: all of the files the glTF links to must be downloaded and must be in the same folder, else the Blender scene will not load.
7) Now that all files are downloaded, file extensions appended and moved into your custom folder, it's time to make one last adjustment to the glTF file.
-Since these files are now all local on your computer, we need to remove the web links from all of the file references in the glTF file.
-We also need to add the file extension to the end of each file reference so Blender knows how to find and read it.
-.bin for the single geome…