Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,20 @@ const gif = {
};
```

### Build OTB talking-bear runtime assets

Install Python dependencies:

```sh
pip install -r requirements.txt
```

Then generate runtime frames, spritesheets, and manifest:

```sh
npm run otb_sprite_runtime
```

### Printing rarity data (Experimental feature)

To see the percentages of each attribute across your collection, run:
Expand Down
Binary file added layers/Accessories/Logo#1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added official-logo-2000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"pixelate": "node utils/pixelate.js",
"update_info": "node utils/update_info.js",
"preview_gif": "node utils/preview_gif.js",
"generate_metadata": "node utils/generate_metadata.js"
"generate_metadata": "node utils/generate_metadata.js",
"otb_sprite_runtime": "node utils/run_python3_script.js utils/build_otb_sprite_runtime.py"
},
"author": "Daniel Eugene Botha (HashLips)",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pillow>=10.0.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/brows/B0_neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/brows/B1_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/brows/B2_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/brows/B3_angry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E0_neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E1_blink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E2_squint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E3_wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E4_lookLeft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/eyes/E5_lookRight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/hair_fx/H07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/mouth/M0_closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/mouth/M1_tight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/mouth/M2_halfOpen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/mouth/M3_open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/otb_talking_bear/mouth/M4_wide.png
Binary file added sprites/otb_talking_bear/mouth/M5_roundO.png
Binary file added sprites/otb_talking_bear/nose/N0_neutral.png
Binary file added sprites/otb_talking_bear/nose/N1_flare.png
Binary file added sprites/otb_talking_bear/nose/N2_wrinkle.png
184 changes: 184 additions & 0 deletions sprites/otb_talking_bear/runtime/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"name": "otb_talking_bear_runtime",
"size": {
"width": 2000,
"height": 2000
},
"layers": {
"base": "base/otb_hybrid_base.png",
"mouth": [
"M0_closed.png",
"M1_tight.png",
"M2_halfOpen.png",
"M3_open.png",
"M4_wide.png",
"M5_roundO.png"
],
"eyes": [
"E0_neutral.png",
"E1_blink.png",
"E2_squint.png",
"E3_wide.png",
"E4_lookLeft.png",
"E5_lookRight.png"
],
"brows": [
"B0_neutral.png",
"B1_up.png",
"B2_down.png",
"B3_angry.png"
],
"nose": [
"N0_neutral.png",
"N1_flare.png",
"N2_wrinkle.png"
],
"hair_fx": [
"H00.png",
"H01.png",
"H02.png",
"H03.png",
"H04.png",
"H05.png",
"H06.png",
"H07.png"
]
},
"visemeMap": {
"silence": "M0_closed",
"low": "M1_tight",
"mid": "M2_halfOpen",
"open": "M3_open",
"loud": "M4_wide",
"round": "M5_roundO"
},
"states": {
"talkCycle": {
"fps": 24,
"frameCount": 6,
"frames": [
{
"index": 0,
"viseme": "M0_closed",
"hair": "H00",
"file": "runtime/frames/talk_00.png"
},
{
"index": 1,
"viseme": "M1_tight",
"hair": "H01",
"file": "runtime/frames/talk_01.png"
},
{
"index": 2,
"viseme": "M2_halfOpen",
"hair": "H02",
"file": "runtime/frames/talk_02.png"
},
{
"index": 3,
"viseme": "M3_open",
"hair": "H03",
"file": "runtime/frames/talk_03.png"
},
{
"index": 4,
"viseme": "M4_wide",
"hair": "H04",
"file": "runtime/frames/talk_04.png"
},
{
"index": 5,
"viseme": "M5_roundO",
"hair": "H05",
"file": "runtime/frames/talk_05.png"
}
],
"spritesheet": "runtime/talk_spritesheet.png"
},
"idleLoop": {
"fps": 12,
"frameCount": 8,
"frames": [
{
"index": 0,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H00",
"file": "runtime/frames/idle_00.png"
},
{
"index": 1,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H01",
"file": "runtime/frames/idle_01.png"
},
{
"index": 2,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H02",
"file": "runtime/frames/idle_02.png"
},
{
"index": 3,
"eye": "E1_blink",
"brow": "B1_up",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H03",
"file": "runtime/frames/idle_03.png"
},
{
"index": 4,
"eye": "E2_squint",
"brow": "B0_neutral",
"nose": "N2_wrinkle",
"mouth": "M1_tight",
"hair": "H04",
"file": "runtime/frames/idle_04.png"
},
{
"index": 5,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H05",
"file": "runtime/frames/idle_05.png"
},
{
"index": 6,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H06",
"file": "runtime/frames/idle_06.png"
},
{
"index": 7,
"eye": "E0_neutral",
"brow": "B0_neutral",
"nose": "N0_neutral",
"mouth": "M0_closed",
"hair": "H07",
"file": "runtime/frames/idle_07.png"
}
],
"spritesheet": "runtime/idle_spritesheet.png"
}
},
"runtimeHints": {
"faceSolveFps": 60,
"visemeUpdateHz": 24,
"audioSmoothingMs": 80
}
}
28 changes: 14 additions & 14 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const { NETWORK } = require(`${basePath}/constants/network.js`);
const network = NETWORK.eth;

// General metadata for Ethereum
const namePrefix = "Your Collection";
const description = "Remember to replace this description";
const baseUri = "ipfs://NewUriToReplace";
const namePrefix = "My Collection";
const description = "10,000 unique...";
const baseUri = "ipfs://YOUR_CID/images/";

const solanaMetadata = {
symbol: "YC",
Expand All @@ -24,26 +24,26 @@ const solanaMetadata = {
// If you have selected Solana then the collection starts from 0 automatically
const layerConfigurations = [
{
growEditionSizeTo: 5,
growEditionSizeTo: 10000,
layersOrder: [
{ name: "Background" },
{ name: "Eyeball" },
{ name: "Eye color" },
{ name: "Iris" },
{ name: "Shine" },
{ name: "Bottom lid" },
{ name: "Top lid" },
{ name: "Body" },
{ name: "Clothing" },
{ name: "Eyes" },
{ name: "Mouth" },
{ name: "Headwear" },
{ name: "Accessories" },
],
},
];

const shuffleLayerConfigurations = false;
const shuffleLayerConfigurations = true;

const debugLogs = false;

const format = {
width: 512,
height: 512,
width: 2000,
height: 2000,
smoothing: false,
};

Expand Down Expand Up @@ -72,7 +72,7 @@ const pixelFormat = {
};

const background = {
generate: true,
generate: false,
brightness: "80%",
static: false,
default: "#000000",
Expand Down
Loading