Premium Only Content
![No Game Engine Game Dev: Word Sleuth 059: Putting books on a bookshelf, breaking it, Gimp python-fu](https://1a-1791.com/video/s8/1/T/Z/0/V/TZ0Vt.qR4e-small-No-Game-Engine-Game-Dev-Wor.jpg)
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:06:40
Donald Trump Jr.
13 hours agoThe Left is Taking one L After Another, Live with Michael Knowles | Triggered Ep. 217
175K113 -
47:17
Kimberly Guilfoyle
13 hours agoWoke Gets DOGE’d, Live with AJ Rice & Jarrett Stepman | Ep. 197
129K43 -
20:11
Candace Show Podcast
12 hours agoBecoming Brigitte: Candace Owens x Xavier Poussard | Ep 6
193K330 -
8:25:38
Dr Disrespect
16 hours ago🔴LIVE - DR DISRESPECT - ELDEN RING DLC - REVENGE
194K22 -
54:22
LFA TV
1 day agoThe End of the Trans-Atlantic Alliance | TRUMPET DAILY 2.17.25 7PM
50.2K7 -
55:56
BIG NEM
15 hours agoUGLY COCO: The Rapper Who’s Tried EVERY PSYCHEDELIC 🌌
22.6K1 -
1:42:51
2 MIKES LIVE
13 hours ago2 MIKES LIVE #181 Deep Dive Monday!
26.8K3 -
1:57:43
Quite Frankly
13 hours ago"Low Tide at The Pier: Munich Tears" 2/17/25
38.5K19 -
27:44
The Based Mother
14 hours ago $0.80 earnedBOOK BAN LIES. Karen England and the MSM fairy tale that books are being “banned” by fascists
18.8K3 -
1:01:52
In The Litter Box w/ Jewels & Catturd
1 day agoBest Presidents' Day Ever! | In the Litter Box w/ Jewels & Catturd – Ep. 743 – 2/17/2025
113K68