"Glasshouse" station as new station conversion

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

User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

It doesn't matter, a workable solution has been found.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post by Oracle »

Josef, I've just got around to attempting this and I am getting nowhere at all. I just have no idea what to put for the sprite layout. I understand the documentation to mean "put 00 00 00 00 to use TTD's layout" but it's really unclear and it doesn't work as I expect (so my interpretation is therefore wrong).
I also don't understand how the glass works, although I expect it needs to be drawn in "transparent mode".
Could you give me some pointers on how I can simply say "use TTD's layout and sprite except..."?
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

OK, to use TTD's layout, you use 00 00 00 00 for the ground sprite number and leave off everything else.

So instead of

Code: Select all

F4 03 00 00
      00 00 00  10 05 02  2E 84 00 00
      00 0B 00  10 05 02  30 84 00 00
      80
you just put

Code: Select all

00 00 00 00
For transparent sprites, have a look at newstat.pre in newstat.zip on the source code site. Basically, the roof of TTD's stations is made like this:

Code: Select all

00 00 10  10 10 0A  37 84 00 00
00 00 80  00 00 00  3B 44 22 03
The first sprite here is the non-transparent frame of the roof. The second part is a special "linked" sprite without its own bounding box, it shares that of the previous sprite. That's done by setting the z offset to 80.

To make that second sprite transparent, you set bit 14 in the sprite number, and set the upper word to 322, so 0322443B means take sprite 43B and draw it in transparent mode. The colours of that sprite are ignored entirely, every pixel in colour 0 is fully transparent, and all other pixels are semi-transparent (essentially just causing what they are drawn over to become darker).

Hope that helps :mrgreen:
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

can you put that as an example in the wiki? ;)

even I understand it now
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Never!

...

Oh alright I'll do it.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 7 guests