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.
-
29:15
BlabberingCollector
2 days agoHarry Potter X Fortnite, Fans Reee Over Trans Rights, NEW Audiobooks Are OUT, Wizarding Quick Hits
34.8K4 -
1:20:42
The Connect: With Johnny Mitchell
6 days ago $16.62 earnedThe Truth Behind The U.S. Invasion Of Venezuela: Ed Calderon Exposes American Regime Change Secrets
44.5K30 -
2:10:18
FreshandFit
8 hours agoAfter Hours w/ Girls
136K40 -
2:06:29
TimcastIRL
14 hours agoAirlines Cancel Over 700 Flights, Travel APOCALYPSE Is Now, Trump Says END FILIBUSTER | Timcast IRL
240K122 -
9:02:44
SpartakusLIVE
19 hours agoTOXIC Solos on ARC Raiders || Friday Night HYPE - WZ or Redsec Later?
80K2 -
2:15:42
TheSaltyCracker
12 hours agoWoke is DEAD ReeEEStream 11-07-25
128K237 -
1:29:13
Sarah Westall
11 hours agoThe City of London: Infiltration, Intimidation & Centralized Power w/ Mike Harris
52.5K16 -
10:14:18
Dr Disrespect
21 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - AGAINST ALL DANGER
203K29 -
32:09
ThisIsDeLaCruz
1 day ago $6.61 earnedFalling In Reverse: Christian Thompson’s Stage Tech Revealed
45.5K8 -
4:41:02
SynthTrax & DJ Cheezus Livestreams
1 day agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream 80s Night / Late Night Nostalgia
52.8K9