Premium Only Content

No Game Engine Game Dev: Word Sleuth 059: Putting books on a bookshelf, breaking it, Gimp python-fu
Streamed on 2024-10-02 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
As the tools become more refined for faking art, some of the tasks become easier as well. It didn't take too long to get a long row of books that will fit on the bookshelf to show up with random sizes, distances pushed back from the front edge and colors. The color choices need some work, and there are more things I can do to add variety, but the tool is sufficient for initial layout. However, the visual showed an issue ... since we are rendering the bookshelf as a single draw call with a texture, the books are either over all the parts of the bookshelf or vice versa. What to do?
The answer is that I needed to break up the bookshelf into pieces and draw things in a specific order so the books write over the parts of the shelf they need to and the shelf covers the parts of the books that the need to. So I need 6 textures to draw the bookshelf, not 1. Again, it didn't take too long to output all the pieces we needed.
But now I had to update all the UVs for that texture, which is a painful manual process. Time to resort to coding again! So I started digging into GIMP python-fu. I'm not going to lie, this is going to save me a ton of time, opens the door for automated texture packing in the future, and it is more fun to script than to manually pack textures and record UV coordinates, but ...
The GIMP api is not my favorite, and neither is their documentation. Things that should have been trivial or at least simple were hard to find or impossible to do. In the end I think I found all the APIs I will need and set up the initial plugin script, but I much prefer the experience with Inkscape's scripting interface. I'll wrap it up tomorrow.
-
1:45:51
Game On!
1 day ago $10.94 earnedWise Guys Reveal NFL Week 2 BEST BETS Now
71.9K8 -
26:57
Robbi On The Record
2 days agoMouth Breathing Is Why You’re Exhausted | with Dr. Melanie Silvestrini
38.7K5 -
LIVE
Total Horse Channel
8 hours ago2025 Reno Snaffle Bit Futurity | Sunday Finals
101 watching -
40:44
SouthernbelleReacts
7 days ago $3.75 earned“Event Horizon (1997) Reaction | Hellraiser in Space with Sam Neill & Laurence Fishburne”
41.6K4 -
10:49
Artur Stone Garage
3 days ago $2.64 earnedI Spent $2000 on My Turbo Honda Civic Build (Before & After)
41K10 -
0:44
Danny Rayes
20 hours ago $4.27 earnedDid Someone Know It Was Going To Happen?
40.2K11 -
15:03
World2Briggs
1 day ago $3.40 earnedShocking Home Prices in Florida's Cheapest Towns!
34K8 -
58:02
ChopstickTravel
4 days ago $1.46 earnedBillionaire Food in Dubai 🇦🇪 Super Luxury MICHELIN +WAGYU + CAVIAR in UAE!
24.4K1 -
21:20
Advanced Level Diagnostics
12 days ago $1.21 earned2020 Toyota Sienna - Crank No Start! Never Seen This Before!
26K2 -
49:04
The Why Files
6 days agoMajestic 12 | Secret Documents Expose UFO Cover-Up Vol. 1
61.3K72