Homesource Forums

Homeworld Source Editing Talk
It is currently Mon Apr 24, 2017 9:39 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Nov 11, 2006 9:06 am 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
Does anyone here have any experience with BTG.exe (Homeworld's background tool/editor)? I'm interested in some monochromatic backgrounds in order to make it easier to isolate particular elements in screenshots, particularly ships. The standard backgrounds of space complicate this process by introducing bright points (stars) and tonal variations in the background.

For my likely uses, I only really need backgrounds that are all:

1 ) white (255:255:255)
2 ) black (0:0:0)

but other artists may have more use for additional colours like:

3 ) mid-level grey (128:128:128)

4 ) red (255:0:0)
5 ) green (0:255:0)
6 ) blue (0:0:255)

7 ) yellow (255:255:0)
8 ) magenta (255:0:255)
9 ) cyan (0:255:255)

Since the background is monochromatic the actual polygon structure does not have to be particularly complicated so I'm assuming that this wouldn't be much work for someone.

Thanks a lot.

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 6:26 pm 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
I've written a tool to do this, committed in r342: /tools/monochrome-btg

Having written this tool with the express intention of using an all-black backdrop I discovered something about Homeworld's background rendering. Not only does it draw the .btg backdrop but it also appears to overlay a random number of scattered grey "stars" to help break up the background and prevent empty regions of space. This is exceedingly annoying as it means you can't have a completely blank background to take screenshots against! :evil: If anyone knows where this gets done then please let me know, otherwise I'll take a look tomorrow.

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 7:12 pm 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
Note to self: it's due to src/Game/Star3d.* which gets rendered in src/SDL/render.c:

L1292 rndBackgroundRender()
L2421 rndMainViewRenderFunction()

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group