#38 - import frog vision into blender

Article
steffenkd

2 months ago by steffenkd

“Extract goggle-data from onchain tx’s and import into Blender”

First, big thanks to Twetch Team and Sam for this release and showing whats possible.

Additional thanks to Sam again for providing a short explanation how to export the onchain goggle-data and import it into Blender.

I haven’t been posting in a while because I have been busy. Coincidentally one reason is, that I started with some Blender tutorials a few days ago. So due to destiny, interest and the fun of it, I will do a step by step tutorial about “goggle import to Blender”.

“In essence, you just have to create a text-file, give it a .gltf-file extension, copy some data in, download five other files, put them all in the same folder and reconnect the five broken links/references to the files. Thats all…”


*

First you need the corresponding TX. They all have the same Input. Click on the red marked tx-link to view the transaction data on whatsonchain.

Goggle1

Choose the goggles you want to import. They are numbered and you have to know which one you want to export. 345 are available. If you want to import goggles with a specific skin/layout, you have to look up their number on Twetch, to find the corresponding transaction-output and the linked jpeg-files and png-files for the coloring.

Tx for number: 1 is marked green:
Goggle2

Create a folder and an empty text file within. You can name the text file however you want, but make sure the ending of the file is “.gltf”. I created a text-file which is named “n1goggle.gltf”. Save the name and open the empty text-file.

Go back to your browser with whatsonchain and the previous TX a19f8a7e4da0d4547beacd4ec3bd3fbc91b6f32a4602494be968af40700522a6 from goggles “number: 1”.

Copy the code between the “green marked curly brackets” in the “red marked area” and insert into your “n1goggle.gltf” named text file.

Beginning:
Goggle3

Ending:
Goggle4

Open the “n1goggle.gltf” text file with your text editor and scroll to the bottom. Copy the yellow marked link at the end, in this example it would be https://dogefiles.twetch.app/cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800” and open it in your browser. Your browser will ask you to save/download the data as a file. Download the file, then insert it into the folder where your “n1goggle.gltf” text file is already in. The file name is probably “cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800” and has no file ending (like .txt; .jpeg; …).

Because the file is now on your computer, you have to change the paths/links in your “n1goggle.gltf” text file. It has to refer to the downloaded file “cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800” which is in the same folder.
In your “n1goggle.gltf” text file you have to delete the https://dogefiles.twetch.app/“ part of the https://dogefiles.twetch.app/cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800” link. So in the end it will only show: “cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800”.

You can name the file however you want, but make sure it is referred to in the “n1goggle.gltf” text file behind the “uri: ….” as it is saved in the folder. So if you name the file “layout” instead of “cfa1231e43898288f12ee087cc1b1f0a112f04d3662e7b53ad20748eda583800”, make sure you change the name to “layout” in the “n1goggle.gltf” text file as well.

I hope you get the idea!
It is a link which is referring to a file in the same folder. So the link-name and the file-name have to be the same. And you have to change it, because the http://…” reference is now broken. You have to create a new reference which exists on your computer and due to convenience, in the same folder.

Before:
Goggle5

After:
Goggle6

If you search through your “n1goggle.gltf” text file, you will find four other of those https://dogefiles.twetch.app/…” links. They are defined as png-files and jpeg-files. Open all four links in your browser and download them.

Do the same procedure for those four files you just did with the file from before. Save it and delete the corresponding https://dogefiles.twetch.app/…” link inside the “n1goggle.gltf” text file.
There should be two png-files and two jpeg-files.
If you have .jpeg and .png file extensions, add those into the “n1goggle.gltf” text file as well.

Before:
Goggle7

After:
Goggle8

In the end you should have a folder with six files. Our “n1goggle.gltf” file, the file with the 3d-layout data, two png-files and two jpeg-files.

Goggle9

Last step: Open Blender, click on the cube, press “Shift+X” and delete it. You can do that for the other two objects as well.
Now click in the upper left corner on “File”, then on “Import” and choose “glTF 2.0 (.glb/.gltf)”.
Navigate to your folder, double click the “n1goggle.gltf” file…

DONE!!!

If you want to save it as one file, click in the upper left corner on “File”, go to “save as” and save the file. Now all six files got merged into one “.blend-file”.

To see the goggles in color, click either on “Viewport Shading” in the top right corner, like in the picture below, or
click on “Shading” in the top bar.
Press “middle-mouse-button” and move mouse to change point of view.

Goggle10

If you initially came from BTC but kinda broke with their ideologies and removed your “to 100k moon lazzzer-eyezzz” on that highly suspect platform starting with a “T”, but still feel like you lost something very important and want to fill that empty space again, I got some good news for you:
you can do something similar again, but this time it’s on “Twetch” and instead of lazer-eyez its lazer-frog-vision-goggles.

Go to “Render Properties” and activate “Ambient Occlusion” as well as “Bloom”.

Goggle11

To turn up the lights and show how much of a mooncoiner you are, go to “Material Properties”, scroll down a little bit and raise the “Emission Strength”. Set the number accordingly to your price expectations!

Goggle12

I haven’t found out the inscription with the block number yet and I wanted to find out, how to extract the image from “number: 1” or how to display it.
I will edit the post if I find out, probably not today though.

I coincidentally started with Blender four days ago, I am noob level and it was a very good training to import this stuff. Additionally I learned some more about bitcoin and had a lot of fun!