TARS Towns development

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

How should Fraenklie's buildings be used? [see Page 7 discussion]

Yes, use them in large towns and use the TARS buildings in the villages
19
58%
Yes, chuck yours and Fraenklie's buildings together for all towns
14
42%
Well, I like his buildings but yours suck. Can I have a set of just his?
0
No votes
Leave them out of this set completely.
0
No votes
 
Total votes: 33

User avatar
Purno
Tycoon
Tycoon
Posts: 16663
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: TARS Town Set [Progressing; coder found]

Post by Purno » 20 Aug 2012 06:36

SwissFan91 wrote:
michael blunck wrote:Yikes! What sort of contagious disease did attack those poor houses? :cool:

regards
Michael
I'm addressing that. I guess it's better to draw big lumps of snow during the snow transition. Has anyone got any tips on doing so?
Shouldn't roofs have less snow than the landscape since houses have heating? Is a snow transition for roofs necessary?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."

User avatar
Andrew350
Route Supervisor
Route Supervisor
Posts: 486
Joined: 19 Dec 2011 07:54
Location: Washington State, USA
Contact:

Re: TARS Town Set [Progressing; coder found]

Post by Andrew350 » 20 Aug 2012 06:46

Maybe just the edges of the roofs (above the overhangs) should have snow in the transitions. Only in full snow should the main (heated) part of the roof have any snow on it, otherwise it would usually just melt away (as Purno said).

michael blunck
Tycoon
Tycoon
Posts: 5269
Joined: 27 Apr 2005 07:09
Contact:

Re: TARS Town Set [Progressing; coder found]

Post by michael blunck » 20 Aug 2012 09:20

Purno wrote: Shouldn't roofs have less snow than the landscape since houses have heating?
I don´t think so. In older times, w/o thermal insulation (of the roof), thrifty heating was too marginal to melt snow on the roofs, especially in continental/alpine climate. In fact, the snow itself played an important role as thermal insulation. And with modern thermal insulation, the only source for melting snow on roofs are warmer temperatures from outside (mostly direct sun, but also warm air).
Purno wrote: Is a snow transition for roofs necessary?
It´s not "necessary", but depends on the ideas of the artist.

In any way, the correct procedure to do it would be like this:

- when snow first starts to fall, it will cover the roof in full, not in "speckles" (s.a.), although as a very thin layer at first, but nevertheless, I´d make the full roof snow-covered,
- with more snow falling, one could try to draw the snow "thicker",
- when melting, snow usually slides down from the upper parts of the roof, with the last remnants usually hiding in some shady places (behind chimneys, dormers, roof edges, ...).

regards
Michael
Image

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 20 Aug 2012 17:15

when snow first starts to fall, it will cover the roof in full, not in "speckles" (s.a.), although as a very thin layer at first, but nevertheless, I´d make the full roof snow-covered,
- with more snow falling, one could try to draw the snow "thicker",
- when melting, snow usually slides down from the upper parts of the roof, with the last remnants usually hiding in some shady places (behind chimneys, dormers, roof edges, ...).
This is my thinking, too. I may end up drawing all of my graphics having 'thick snow' in December/January.

[EDIT] Although, thinking about it, this approach may look odd in that, during the transition when first snow arrives, roofs will have a full covering while the ground tiles will only have a dusting..
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: TARS Town Set [Progressing; coder found]

Post by planetmaker » 20 Aug 2012 18:13

SwissFan91 wrote:
when snow first starts to fall, it will cover the roof in full, not in "speckles" (s.a.), although as a very thin layer at first, but nevertheless, I´d make the full roof snow-covered,
- with more snow falling, one could try to draw the snow "thicker",
- when melting, snow usually slides down from the upper parts of the roof, with the last remnants usually hiding in some shady places (behind chimneys, dormers, roof edges, ...).
This is my thinking, too. I may end up drawing all of my graphics having 'thick snow' in December/January.

[EDIT] Although, thinking about it, this approach may look odd in that, during the transition when first snow arrives, roofs will have a full covering while the ground tiles will only have a dusting..
I agree, that will look odd, if the gardens have no snow while the adjacent grass has some. Though I also agree that the very fine snow patches as shown in the screenshot look a bit funky, too :-)

And as I didn't mention it yet: what I see so far looks tasty :-)

Eddi
Tycoon
Tycoon
Posts: 7412
Joined: 17 Jan 2007 00:14

Re: TARS Town Set [Progressing; coder found]

Post by Eddi » 21 Aug 2012 07:38

i have a feeling your snowline-transition detection is one level too low. there's partially snowed houses on the same level as green grass, and fully snowed houses on same level as partially snowed grass, etc.
You might not exactly be interested in Ferion, but if you are, have fun :)

Yoshi
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 21 Dec 2010 17:24

Re: TARS Town Set [Progressing; coder found]

Post by Yoshi » 21 Aug 2012 08:02

Eddi wrote:i have a feeling your snowline-transition detection is one level too low. there's partially snowed houses on the same level as green grass, and fully snowed houses on same level as partially snowed grass, etc.
I'll look over the code :)

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5524
Joined: 27 Nov 2004 15:05
Location: Canada

Re: TARS Town Set [Progressing; coder found]

Post by wallyweb » 25 Aug 2012 16:48

From my tile grid newobject grf:

Code: Select all

// Action 2 for object
// Ground sprite = bare ground 3929 = 0F59
// <Sprite-number> * <Length> 02 07/09 <set-id> 00 <groundsprite> <buildingsprite> <xoffset> <yoffset> <xextent> <yextent> <zextent>
  // Flat
   24 * 17	 02 0F 00 00  8D 0F 00 00  00 80 00 80   00 00   0F 0F E5 // 00 FLAT grass 3981 0x0F8D
   25 * 17	 02 0F 01 00  C6 11 00 00  00 80 00 80   00 00   0F 0F E5 // 4550 desert 0x11C6
   26 * 17	 02 0F 02 00  8D 0F 00 00  00 80 00 80   00 00   0F 0F E5 // 3981 rainforest 0x0F8D
   27 * 17	 02 0F 03 00  C6 11 00 00  00 80 00 80   00 00   0F 0F E5 // 4550 snow 0x11C6

//=====================================================================================
// varAction 2 - Terrain Type check
// 0 normal, 1 desert, 2 rainforest, 4 on or above snowline
  // Flat
  158 * 26	 02 0F 5F 81 41 00 FF 04  00 00 00 00  01 00 01 01  02 00 02 02  03 00 04 04  4C 00
This places the appropriate ground tile under the sprite.
It will also transition the ground tile for variable snow lines.
I can (and have done) add different sprites for each ground tile that also transition with the variable snow line. This is not an issue.

So the question remains ... How can we detect the 1/4, 1/2 and 3/4 snowed tiles?

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: TARS Town Set [Progressing; coder found]

Post by planetmaker » 25 Aug 2012 17:18

wallyweb wrote:So the question remains ... How can we detect the 1/4, 1/2 and 3/4 snowed tiles?
Very simple, check for height differences, not for tile types:

* query the tile height and the snowline.
* calculculate the difference and
** height - snowline <= -2: no snow
** height - snowline = -1: 1/4 snow
** height - snowline = 0: 2/4 snow
** height - snowline = 1: 3/4 snow
** height - snowline >= 2: 4/4 snow

You only need the tiletype to check whether it is a ground tile.

See e.g. http://dev.openttdcoop.org/projects/ope ... locks.pnml which makes mathematically slightly faster use of comparisons and creation of a properly crafted temporary register which then is used to decide on the snowyness of the sprites to show.

OpenGFX users can enjoy smooth transitions e.g. for rivers, locks and canals already since last Christmas :-)

EDIT: Also mind that the definitions of the height variables differ in grf v7 and grf v8. The linked code is grf v8.

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5524
Joined: 27 Nov 2004 15:05
Location: Canada

Re: TARS Town Set [Progressing; coder found]

Post by wallyweb » 25 Aug 2012 19:38

planetmaker wrote:Very simple, check for height differences, not for tile types:.
Should be easy enough.
... .pnml
Unfortunately I only code in the pure environment of NFO ... :(
which makes mathematically slightly faster use of comparisons and creation of a properly crafted temporary register which then is used to decide on the snowyness of the sprites to show.
which should be doable in nfo?
OpenGFX users can enjoy smooth transitions e.g. for rivers, locks and canals already since last Christmas :-)
Is Saint Nicholas aware of this? :lol:
EDIT: Also mind that the definitions of the height variables differ in grf v7 and grf v8. The linked code is grf v8.
Good to know as I code for OTTD/TTDP compatibility.

Now all I have to do is find out in which variables snow line and tile height are hiding. I assume that GRFSpecs will have these ... It will, won't it ?

Thanks for this.

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: TARS Town Set [Progressing; coder found]

Post by planetmaker » 25 Aug 2012 19:47

wallyweb wrote:
planetmaker wrote:Very simple, check for height differences, not for tile types:.
Should be easy enough.
... .pnml
Unfortunately I only code in the pure environment of NFO ... :(
which makes mathematically slightly faster use of comparisons and creation of a properly crafted temporary register which then is used to decide on the snowyness of the sprites to show.
which should be doable in nfo?
OpenGFX users can enjoy smooth transitions e.g. for rivers, locks and canals already since last Christmas :-)
Is Saint Nicholas aware of this? :lol:
Of course :-) The changelog as of 24 Dec 2011 knows it ;-)
EDIT: Also mind that the definitions of the height variables differ in grf v7 and grf v8. The linked code is grf v8.
Good to know as I code for OTTD/TTDP compatibility.

Now all I have to do is find out in which variables snow line and tile height are hiding. I assume that GRFSpecs will have these ... It will, won't it ?

Thanks for this.
Of course all that can also be implemented in NFO; NML cannot do more than is feasible with NFO. But it might (or might not) turn out much more lengthy for cases like these (would take me hours to figure out these things in NFO - less test them). Tile height is var 0x62 for objects, snowline is global variable 0x20 for varaction2 usage.

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5524
Joined: 27 Nov 2004 15:05
Location: Canada

Re: TARS Town Set [Progressing; coder found]

Post by wallyweb » 25 Aug 2012 20:32

planetmaker wrote:...
:bow:
/me goes to play with his new toys. :lol:

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 27 Aug 2012 15:06

Here's something I finished off and added:
dom both.png
dom both.png (2.38 KiB) Viewed 1953 times
From:
Photo0019.jpg
(769.19 KiB) Downloaded 7 times
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 02 Sep 2012 09:56

Here's my brainstorm for how to draw snow transitions:

Code: Select all

0 (no snow) 	= 	no snow on roofs
			           no snow on edges
			           no snow on floor

1		        =	 small lumps on edges of roofs
			           no snow on edges
			           snow only on floor where sheltered e.g. under overhanging areas and behind walls

2		        =	 medium sized lumps on bottom half of roofs, less on sides facing 'sun' (light in TTD)
			           no snow on edges
			           snow in small lumps on floor

3		        =	 snow on most of the roof bar any areas of heat (chimneys, etc.) or steep areas of roof. Partial melt on roofs facing the 'sun' (light in TTD)
			           snow on edges that are in shadow (protected from the 'sun' (light in TTD))
			           mainly snow on floor but pathways worn away

4 (full snow)  =	 full snow on roofs
			           full snow on edges
			           full snow on floor 
*edges = top of walls, fences, railings etc.

Here's an in-game screenshot for reference (with the OLD method of snow on buildings):
screenshot#7.png
screenshot#7.png (43.36 KiB) Viewed 1845 times
What do people think? Advice would be very much appreciated.
Last edited by SwissFan91 on 02 Sep 2012 10:55, edited 1 time in total.
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: TARS Town Set [Progressing; coder found]

Post by planetmaker » 02 Sep 2012 10:23

Nice :-)

I think at 1/4 snow the snow patches could be less but slightly larger
At the no-snow stage the grass could be like the surroundings - similar like for all the snow stages.

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 02 Sep 2012 10:26

Thanks for the feedback, PM. I hope you noted that the screenshot is with the OLD version of doing snow transitions, not the outlined method above it :)

The grass below the buildings will be fixed, too. That is unintentional.
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: TARS Town Set [Progressing; coder found]

Post by planetmaker » 02 Sep 2012 10:50

SwissFan91 wrote:Thanks for the feedback, PM. I hope you noted that the screenshot is with the OLD version of doing snow transitions, not the outlined method above it :)
Sorry, no, I overlooked that :-)

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 02 Sep 2012 10:56

I've stressed it a bit more now :P
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

User avatar
SwissFan91
Tycoon
Tycoon
Posts: 2384
Joined: 08 Feb 2009 18:36
Location: Alberta, Canada

Re: TARS Town Set [Progressing; coder found]

Post by SwissFan91 » 02 Sep 2012 20:59

Here's something I did quickly:

OLD:
for sac.png
for sac.png (3.24 KiB) Viewed 1777 times
NEW:
new snow transitions.png
new snow transitions.png (3.31 KiB) Viewed 1777 times
Done based on the criteria I outlined above. Thoughts?
Image
Total Alpine Replacement Set: Industry, Town, Objects
**ATTENTION**: If anyone would like me to help draw snow stages in any of their GRFs let me know. I genuinely enjoy drawing them.

Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: TARS Town Set [Progressing; coder found]

Post by Supercheese » 03 Sep 2012 04:21

Very nice, definite improvement. :-)
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 7 guests