Transparent colors?

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
RSpeed tycoonfreak
Transport Coordinator
Transport Coordinator
Posts: 349
Joined: 02 Feb 2006 13:17
Location: Azewijn The netherlands
Contact:

Transparent colors?

Post by RSpeed tycoonfreak »

I'm drawing new modern stations for ttd/ottd and I'm running on a problem:
Offcourse in modern stations you're having a lot of glass buildings and i want to know how do I make glass transparent?
Has it to do with the colors, or is it something with the coding process maybe?
Visit The Fake Airport Website
Image
Hobbys: being 18 years old, soccer, go karting, and transport tycoon.
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Transparent courours?

Post by XeryusTC »

When coding newstations you can define a sprite as transparent. This makes every color (except from color 1 with the proper bits set in your action 1 block IIRC) look like glass. Look at the documentation, especially the part about the sprite IDs and offsets etc. IIRC for glass you want your sprite ID to be 0x03883342D+X but I'm not sure about that.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Transparent courours?

Post by athanasios »

and:
If you decode the original grfs you will see that the stations have an extra sprite for transparency (yellow color: but as already stated, except color 1, any color can be used).
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 29 guests