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.
-
3:53
NAG Daily
22 hours agoRUMBLE RUNDOWN: DREAM HACK SPECIAL W/Greenman Reports
10.5K6 -
1:28
Damon Imani
1 day agoThey Laughed at Trump’s Cognitive Test — Damon Made Them REGRET It!
16.9K9 -
9:14
Freedom Frontline
1 day agoAdam Schiff PANICS As Eric Schmitt Exposes His Dirty Lies LIVE
11.3K9 -
10:32
GBGunsRumble
1 day agoGBGuns Armory Ep 153 Adler Arms AD-9`
8.43K2 -
35:53
Degenerate Plays
4 hours ago $0.23 earnedRuckus Randy And Repair Ronald (Socks On) - Call of Duty: Modern Warfare 2 (2009) : Part 7
5.28K1 -
38:35
Stephen Gardner
1 day ago🔥What JUST leaked out of Congress. PROVES Trump RIGHT!!
97.7K134 -
LIVE
Total Horse Channel
16 hours ago2025 IRCHA Derby & Horse Show - November 2nd
52 watching -
1:59:42
Game On!
22 hours ago $44.98 earnedNFL Week 9 Wise Guy Roundtable BEST BETS!
146K15 -
2:18:53
Badlands Media
1 day agoDevolution Power Hour Ep. 403: Brennan Exposed & The Intel War w/ Thomas Speciale
467K142 -
4:34
Legal Money Moves
5 days agoThe AI Panic: Are You Next?
53.6K10