avatarJim Dee, OG Web3 Dev & Generative NFT Code Expert

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1707

Abstract

et the rarity table at 50% up / 50% down, and that would be the expectation in the generated set. (Info on <a href="https://readmedium.com/how-to-prepare-a-rarity-table-for-a-generative-nft-art-programmer-1c081db52f29">how to make a rarity table</a> here.)</p><p id="f5e0">So, we run the 10k set, and we see all of the wonderful characters. As expected, ~50% have paws up (left or right), 50% have paws down (left or right). The percent that have both down, both up, one-up/one-down, one-down/one-up would also likely be fairly equal.</p><p id="a9b1">With me so far? Ok, now let’s add in a logical rule:</p><p id="04d6"><b>If the LEFT paw (chosen first) is UP, the the RIGHT paw must also be UP.</b></p><p id="9c2a">See where I’m going with this? So, let’s run another 10k and see what happens (same rarity table, but with this new rule applied to the generative code). What’s going to happen here is that, indeed the LEFT paw will be ~50% up / ~50% down. BUT, on that first (left) 50%, we now have a rule that says that the matching RIGHT paw must also be UP.</p><ul><li>And so what will happen is ~50% of the LEFT paws will be UP.</li><li>And for <b>those ~50%</b>, 100% of the RIGHT paws will be UP (removing their chance to ever be down).</li><li>And then for the 50% of the RIGHT paws that were unaffected by the logical constraint, <b>those ones</b> will be allowed the 50% chance to be up or down. And that of course works out to around half of the 50% going either way (or, 25% UP over the whole 10k, 25% DOWN over the 10k).</li></ul><p id="f1a9">Brain hurt yet? lol. <b>Final result:</b> LEFT → ~50% UP / RIGHT → ~75% UP.</p><p id="50c9"><b>Which is to say: </b>Logic rules DO affect rarity table

Options

declarations. Perhaps not always as dramatically as shown here. But, they do have an effect that NFT teams should at least be aware of.</p><p id="04fb">That said, I 100% welcome logical rules in my sets because it really allows the artist to perfect the set aesthetics. (And if you’re following generative NFT sets, you’ll know that the art matters!) That’s why I built my custom generative NFT system purposefully allowing for any kind of rule you can dream up.</p><p id="c6dd">Yes, I’m a generative NFT FANATIC!!! I quit my job to go all-in on NFTs, and have not regretted it for a single moment! So, reach out anytime you’re ready to explore your own NFT project!</p><div id="02f5" class="link-block"> <a href="https://readmedium.com/information-regarding-generative-nft-coding-services-2d492aa18d4e"> <div> <div> <h2>Information Regarding Generative NFT Coding Services</h2> <div><h3>What it is, and how my new company GenerativeNFTs.io approaches it.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*BwXuN-kTzssqGd6P)"></div> </div> </div> </a> </div><figure id="da50"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*qdA0d0yIHWORcFDs"><figcaption>Jim Dee is a prolific writer, developer, and multi-media creator from Portland. You can find him, his businesses, his books, and more at <a href="https://jpd3.com/">JPD3.com</a>. Thanks for reading! Cat image here courtesy of Midjourney AI.</figcaption></figure></article></body>

Generative NFTs

Logic Rules in Generative NFT Sets Help Curate the Art, but Need to Be Understood, As Well

Get them in the code, but be aware of potential consequences.

Whenever I do a generative NFT art project for a client (which you can learn more about here), one area that invariable comes up involves various traits that conflict with one another. Even most simpler generative NFT sets have such things, and that’s perfectly fine. It could be something as simple as “If the background is black, then disallow black hair on the character.” But, quite often the logic rules can become more complex, depending on various aspects of the art.

For me, I see logical rules as being a natural extension to generative NFTs. They allow the artist to curate the set, while maintaining the randomness desired.

That said, it’s also important to understand that logical rules do have an effect on the rarity table. Often, on a 10k run, such an effect may be immaterial (thankfully), but there’s definitely a potential for a material effect. Let me explain by example:

Let’s say you have a cat with two paws that always show. Those paws can each be in two positions — up or down. And, for this trait, you set it to pure randomness, a 50% probability that either paw will be up or down. So, that’s the key thing to remember here: We have set the rarity table at 50% up / 50% down, and that would be the expectation in the generated set. (Info on how to make a rarity table here.)

So, we run the 10k set, and we see all of the wonderful characters. As expected, ~50% have paws up (left or right), 50% have paws down (left or right). The percent that have both down, both up, one-up/one-down, one-down/one-up would also likely be fairly equal.

With me so far? Ok, now let’s add in a logical rule:

If the LEFT paw (chosen first) is UP, the the RIGHT paw must also be UP.

See where I’m going with this? So, let’s run another 10k and see what happens (same rarity table, but with this new rule applied to the generative code). What’s going to happen here is that, indeed the LEFT paw will be ~50% up / ~50% down. BUT, on that first (left) 50%, we now have a rule that says that the matching RIGHT paw must also be UP.

  • And so what will happen is ~50% of the LEFT paws will be UP.
  • And for those ~50%, 100% of the RIGHT paws will be UP (removing their chance to ever be down).
  • And then for the 50% of the RIGHT paws that were unaffected by the logical constraint, those ones will be allowed the 50% chance to be up or down. And that of course works out to around half of the 50% going either way (or, 25% UP over the whole 10k, 25% DOWN over the 10k).

Brain hurt yet? lol. Final result: LEFT → ~50% UP / RIGHT → ~75% UP.

Which is to say: Logic rules DO affect rarity table declarations. Perhaps not always as dramatically as shown here. But, they do have an effect that NFT teams should at least be aware of.

That said, I 100% welcome logical rules in my sets because it really allows the artist to perfect the set aesthetics. (And if you’re following generative NFT sets, you’ll know that the art matters!) That’s why I built my custom generative NFT system purposefully allowing for any kind of rule you can dream up.

Yes, I’m a generative NFT FANATIC!!! I quit my job to go all-in on NFTs, and have not regretted it for a single moment! So, reach out anytime you’re ready to explore your own NFT project!

Jim Dee is a prolific writer, developer, and multi-media creator from Portland. You can find him, his businesses, his books, and more at JPD3.com. Thanks for reading! Cat image here courtesy of Midjourney AI.
Nft
Nft Collectibles
Programming
Business
Technology
Recommended from ReadMedium