Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (-1) | Shanky.com
Subspace Banner Colortable

 
Post new topic   Reply to topic Printable version
 View previous topic  Flag reward help!! Post :: Post Lag and the settings that go with it.  View next topic  
Author Message
2dragons
Novice


Joined: Feb 17 2004
Posts: 95
Offline

PostPosted: Sun Jun 20, 2004 3:43 am    Post subject: Subspace Banner Colortable Reply to topic Reply with quote

Rather than figure it out I thought I'd ask first:

When getting a banner in any part of SS, it is recieves it as 96 bytes, each byte representing a pixel of the bitmap.

How can I determine what color is represented by each byte value? What I know of bitmaps is that if they are <= 8 bits they include a colortable. However obviously that isn't the case here.

So if you know how it works that'd be great.
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Jun 20, 2004 4:26 am    Post subject: Reply to topic Reply with quote

isn't that just a 256 color bitmap then? 1 byte each?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
wEaViL
Don't make me turn this forum around!


Age:46
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Sun Jun 20, 2004 5:06 am    Post subject: Reply to topic Reply with quote

ss graphics are 8bit bmp's that includes banners and everything.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Sun Jun 20, 2004 7:12 am    Post subject: Reply to topic Reply with quote

wEaViL wrote:
ss graphics are 8bit bmp's that includes banners and everything.

no
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sun Jun 20, 2004 7:26 am    Post subject: Reply to topic Reply with quote

Banners use the default SS palette, which is implied (not included) in the 96 bytes. If a given pixel has the value 12, then its color is palette entry 12. Open any of the default SS graphics files (or a banner file) in Photoshop and you can see the SS palette.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Sun Jun 20, 2004 7:58 am    Post subject: Reply to topic Reply with quote

while the game does seem to convert a banner to ss palette regardless of color depth settings - I can still have a 32-bit bmp banner in my folder and use it
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Jun 20, 2004 9:54 pm    Post subject: Reply to topic Reply with quote

Right, the last 96 bytes tell you the 96 pixels, but they are flipped vertically... ... or w/e I had to take 12 bytes, and build it from the bottom up.. to have it display correctly
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
2dragons
Novice


Joined: Feb 17 2004
Posts: 95
Offline

PostPosted: Tue Jun 22, 2004 12:02 am    Post subject: Reply to topic Reply with quote

That's true for bitmaps in general, but not in the 96 bytes commonly sent bank and forth between the many clients/servers of SS.
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Tue Jun 22, 2004 12:25 am    Post subject: Reply to topic Reply with quote

I can only tell you how I got the banner to look proper after retreiving it from Merv.
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Jun 24, 2004 2:41 pm    Post subject: Reply to topic Reply with quote

Mr Ekted wrote:
Open any of the default SS graphics files (or a banner file) in Photoshop and you can see the SS palette.
ships.bm2 and tiles.bm2 have different palettes. I am assuming ships.bm2 uses the old palette.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Jun 24, 2004 3:45 pm    Post subject: Reply to topic Reply with quote

Bitmaps with a positive height (in BMP header) are stored bottom up, and with negative height are top down.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 532 page(s) served in previous 5 minutes.

phpBB Created this page in 0.077169 seconds : 31 queries executed (63.8%): GZIP compression disabled