Swedish Houses [Version 1.1 released 06/06/10]

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
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Swedish Houses

Post by planetmaker »

On a related note: the same seems to go for the road :-)
My guess is that it's how the smooth snow transition works. Somewhere a line has to be drawn. But granted, it should rather be drawn the same for all kind of sprite types, if they offer snowy vs. not snowy.
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Swedish Houses [coder needed]

Post by George »

as wrote:Question to people:
If I use varaction2 variable 43 to decide between snowy and non snowy graphics, the snowy graphics appear one level higher than snowy default buildings:
Unnamed, 21st Aug 1940.png
1. Does this matter?
2. Is there way to work around this?
Does using var 62 has the same effect?
324 * 15 02 07 03 81 62 0F 0A 0F 01 02 00 04 04 01 00
http://wiki.ttdpatch.net/tiki-index.php ... y_tiles_60_
Image Image Image Image
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Swedish Houses

Post by frosch »

hehe, yes, seems to be slightly inconsistent.

House property 13 tests for "lowest tile corner >= fixed game creation snowline" (not affected by newgrf set snowline)
The various tile info variables and roads check for "lowest tile corner > current snow line"
Additionally some other places in the code (not visible graphically) use the height of the north corner. :)

Maybe I should take a look what TTDP does :)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
as
Transport Coordinator
Transport Coordinator
Posts: 281
Joined: 07 Mar 2007 20:13

Re: Swedish Houses [coder needed]

Post by as »

George wrote: Does using var 62 has the same effect?
Yes.
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

All buildings are now corrected and I can now continue to draw more buildings.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Swedish Houses

Post by George »

Irwe wrote:All buildings are now corrected
How?
Image Image Image Image
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

George wrote:
Irwe wrote:All buildings are now corrected
How?
When I started drawing I didn't draw one sprite for the actual building and one sprite for the ground. I drew them together so they where invisible in transperent mode which wasn't a pretty sight. So i corrected them by seperate the building from the ground sprite.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Swedish Houses

Post by George »

Irwe wrote:
George wrote:
Irwe wrote:All buildings are now corrected
How?
When I started drawing I didn't draw one sprite for the actual building and one sprite for the ground. I drew them together so they where invisible in transperent mode which wasn't a pretty sight. So i corrected them by seperate the building from the ground sprite.
And how does it correspond with snow line?
Image Image Image Image
as
Transport Coordinator
Transport Coordinator
Posts: 281
Joined: 07 Mar 2007 20:13

Re: Swedish Houses

Post by as »

It doesn't, the snowline remains unfixed. But I don't think it is that big deal, most grfs have the same problem and I haven't seen anyone complaining before.
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

I know it's possible to code buildings so they face the road (green houses) but Is it possible to code a building so it only can be built on street corners as shown in the picture (red houses)?

A LOT of inner city buildings in Sweden is designed like this as shown in the second picture.
Attachments
corner buildings.PNG
corner buildings.PNG (7.84 KiB) Viewed 4138 times
034685.PNG
034685.PNG (448.36 KiB) Viewed 4152 times
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Swedish Houses

Post by frosch »

yes, with the same method the green ones use. instead of checking the four neighboured tiles for road and decide for one to face to, just check two tiles.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

frosch wrote:yes, with the same method the green ones use. instead of checking the four neighboured tiles for road and decide for one to face to, just check two tiles.
Great! I don't know anything about coding but I just wanted to know if it's possible so I could know if there was any idea to draw these angeled buildings.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
as
Transport Coordinator
Transport Coordinator
Posts: 281
Joined: 07 Mar 2007 20:13

Re: Swedish Houses

Post by as »

Notice that 1x1, 1x2, 2x1 and 2x2 are the allowed building shapes. Three tile buildings are not allowed as far as I know.
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

as wrote:Notice that 1x1, 1x2, 2x1 and 2x2 are the allowed building shapes. Three tile buildings are not allowed as far as I know.
Yes, I think these buildings will fit a 1x1 tile.

Another thing. When making a house from different angels is there any easier way then just draw a building by hand as I do and then draw it again in a different angel. Is there any program or similar that can handle TTD sprites and in some way "change direction" of the sprite? For example Pikkabird's TaI house set has that feature.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Swedish Houses

Post by planetmaker »

Unless you do your houses as a 3D model and have it rendered for different rotation angles but constant light source, there's no fool-proof or easy way as you have to mind the light direction which must not be rotated.

Just my naive thinking of course, I'm no pixel artist.
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

planetmaker wrote:Unless you do your houses as a 3D model and have it rendered for different rotation angles but constant light source, there's no fool-proof or easy way as you have to mind the light direction which must not be rotated.

Just my naive thinking of course, I'm no pixel artist.
Maybe it's just simpler to draw them from all angels. It will take some time but maybe it's best that way.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

An example of one of those buildings that require road sensitivity.
Attachments
Shops and Offices 1 con 4.PNG
Shops and Offices 1 con 4.PNG (3.11 KiB) Viewed 4000 times
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Swedish Houses

Post by planetmaker »

Irwe wrote:An example of one of those buildings that require road sensitivity.
While certainly one side is the "usual" side, I've seen such buildings oriented parallel and perpendicular to the road.
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: Swedish Houses

Post by Benny »

Looks really good, I like the details on the sides!
Image
User avatar
Irwe
Chief Executive
Chief Executive
Posts: 763
Joined: 25 May 2007 16:31
Location: Sweden

Re: Swedish Houses

Post by Irwe »

planetmaker wrote:While certainly one side is the "usual" side, I've seen such buildings oriented parallel and perpendicular to the road.
Certainly they doesn't have to face the road but I havn't seen much of these building in sweden that doesn't face the road. So making 4 versions of each of these buildings is one thing I'll try to do. (at least do 2 versions, one facing south east and one facing south west).
Bennythen00b wrote:Looks really good, I like the details on the sides!
Thanks, I really just "copied" the sides from one of the buildings from Total Town replecement set.
Swedish Houses Version 1.1 Released
Swedish Road Vehicles Work in Progress
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 9 guests