Brainwave

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: 9331
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Brainwave

Post by planetmaker » 14 Aug 2011 09:50

Zephyris wrote:Boo.

Two sets of sprites(...)
beautiful - as always :-)

User avatar
Bob_Mackenzie
Chairman
Chairman
Posts: 823
Joined: 25 Mar 2010 13:36

Re: Brainwave

Post by Bob_Mackenzie » 14 Aug 2011 22:29

I agree :)

User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5400
Joined: 13 Sep 2004 13:21
Location: The Moon
Contact:

Re: Brainwave

Post by PikkaBird » 15 Aug 2011 01:45

Bob_Mackenzie wrote:As a hot air balloon has rotational symmetry about its vertical axis you could do it with two sprites (if using a square basket) or one if the basket was round
As a hot air balloon has no "front", you could do it with one sprite regardless.

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Brainwave

Post by Leanden » 15 Aug 2011 11:23

True, why would the hot air balloon have to turn to change direction?
Image

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

Re: Brainwave

Post by wallyweb » 15 Aug 2011 12:37

Leanden wrote:True, why would the hot air balloon have to turn to change direction?
Don't hot air balloons tend to tilt slightly in the direction of travel?

User avatar
Zephyris
Tycoon
Tycoon
Posts: 2826
Joined: 16 May 2007 16:59

Re: Brainwave

Post by Zephyris » 15 Aug 2011 12:53

wallyweb wrote:
Leanden wrote:True, why would the hot air balloon have to turn to change direction?
Don't hot air balloons tend to tilt slightly in the direction of travel?
Not particularly, remember they are completely stationary relative to the surrounding air, so why would they tilt?

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

Re: Brainwave

Post by planetmaker » 15 Aug 2011 13:06

Zephyris wrote:
wallyweb wrote:
Leanden wrote:True, why would the hot air balloon have to turn to change direction?
Don't hot air balloons tend to tilt slightly in the direction of travel?
Not particularly, remember they are completely stationary relative to the surrounding air, so why would they tilt?
Due to the gondala having both drag and weight.

User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5400
Joined: 13 Sep 2004 13:21
Location: The Moon
Contact:

Re: Brainwave

Post by PikkaBird » 15 Aug 2011 13:24

planetmaker wrote:Due to the gondala having both drag and weight.
What's it dragging against if the balloon has 0 horizontal airspeed (which it does, since it has no propulsion)? :P

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Brainwave

Post by Leanden » 15 Aug 2011 13:28

Image

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

Re: Brainwave

Post by Supercheese » 16 Aug 2011 07:31

Well, I've drawn some sprites for a police car -- well, more like resized and heavily modified some excellent freely available graphics for a police car. Anyhow, I'm ok with the results, but I wonder if anyone has any suggestions for improvement; this is after all my first attempt at spriting for a newgrf.

I used the red flash- and water-cycle pixels for the flashing lights, but as was mentioned in either this thread or the other one on emergency vehicles, the water cycle is out of synch with the red flash, and since it doesn't fade to black, but rather to blue, it isn't as easily distinguishable. Still, it looks better than red-only to me. Oh, also there is no company color at the moment, just a somewhat drab grey and blue paint job.

Anyway, attached are the sprites and a test-grf I made in NML. Parameters such as vehicle speed, cost, power, and other such are, of course, for testing purposes only and aren't at all balanced or realistic. The sound effect is also just something I quickly edited in -- I'll likely edit a better siren later.

Unfortunately, I cannot seem to figure out this darned "offset" concept properly, so the car sort of jerks around in some views. The NML documentation didn't seem to have any rules for offsets for the different compass views, so I'm at a loss... :|


EDIT: New thread for GRFs: http://www.tt-forums.net/viewtopic.php?f=26&t=56780
Attachments
Police car.png
Police car.png (1.72 KiB) Viewed 10642 times
Last edited by Supercheese on 26 Sep 2011 06:00, edited 1 time in total.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

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

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

Re: Brainwave

Post by planetmaker » 16 Aug 2011 07:53

You may want to look for the TownCar NewGRF (or similarily named) which is thought to be used in conjunction with the similarily named AI which only has the purpose to build cars and send them on the road. It might be an idea to add additional cars to that NewGRF instead of yet another one :-)

User avatar
kamnet
Moderator
Moderator
Posts: 6892
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Brainwave

Post by kamnet » 16 Aug 2011 07:59

Zephyris wrote:Boo. Two sets of sprites, one with the burner on, one off. The graphics are all rendered so can be scaled easily, and 32bpp versions are easy to make too.
*droools* I can't wait to see these in action!! :bow:

Supercheese wrote:Well, I've drawn some sprites for a police car -- well, more like resized and heavily modified some excellent freely available graphics for a police car. Anyhow, I'm ok with the results, but I wonder if anyone has any suggestions for improvement; this is after all my first attempt at spriting for a newgrf.

I used the red flash- and water-cycle pixels for the flashing lights, but as was mentioned in either this thread or the other one on emergency vehicles, the water cycle is out of synch with the red flash, and since it doesn't fade to black, but rather to blue, it isn't as easily distinguishable. Still, it looks better than red-only to me. Oh, also there is no company color at the moment, just a somewhat drab grey and blue paint job.

Anyway, attached are the sprites and a test-grf I made in NML. Parameters such as vehicle speed, cost, power, and other such are, of course, for testing purposes only and aren't at all balanced or realistic. The sound effect is also just something I quickly edited in -- I'll likely edit a better siren later.

Unfortunately, I cannot seem to figure out this darned "offset" concept properly, so the car sort of jerks around in some views. The NML documentation didn't seem to have any rules for offsets for the different compass views, so I'm at a loss... :|
I think this is a fantastic start! I honestly have no quibbles with any of it, even the glitches you mentioned. I would love to see the paint scheme also in white, and in brown. I played with having 1-2 cars patrol in a town without any orders, looked just fine. Especially worked well if you're using the traffic lights newgrf.

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

Re: Brainwave

Post by SwissFan91 » 16 Aug 2011 09:47

Great work everyone.
planetmaker wrote:You may want to look for the TownCar NewGRF (or similarily named) which is thought to be used in conjunction with the similarily named AI which only has the purpose to build cars and send them on the road. It might be an idea to add additional cars to that NewGRF instead of yet another one :-)
Definitely this.
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
andythenorth
Tycoon
Tycoon
Posts: 5036
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Brainwave

Post by andythenorth » 16 Aug 2011 12:26

PikkaBird wrote:What's it dragging against if the balloon has 0 horizontal airspeed (which it does, since it has no propulsion)? :P
Is the force applied by air current against canopy and basket same? Probably when considered per-unit-area.

But won't there be a higher intertia to overcome for the basket (cross sectional area versus mass), which would lead to a small moment between basket and canopy? (The canopy will initally accelerate slightly faster than basket).

My physics ain't great :shock:

User avatar
Zephyris
Tycoon
Tycoon
Posts: 2826
Joined: 16 May 2007 16:59

Re: Brainwave

Post by Zephyris » 16 Aug 2011 12:44

PikkaBird wrote:What's it dragging against if the balloon has 0 horizontal airspeed (which it does, since it has no propulsion)? :P
On a sudden change in movement of the surrounding air (and only then) the balloon will, for a short time, have non-zero horizontal airspeed.
andythenorth wrote:Is the force applied by air current against canopy and basket same? Probably when considered per-unit-area.
Yes, per unit crossectional area, no, per unit mass.
andythenorth wrote: But won't there be a higher intertia to overcome for the basket (cross sectional area versus mass), which would lead to a small moment between basket and canopy? (The canopy will initally accelerate slightly faster than basket).
Yup, exactly, but only when the surrounding air has changed suddenly.

In short if a balloon gets hit by a gust of wind the top will tilt away from the direction of air movement. But most of the time it will be perfectly upright.

User avatar
FooBar
Tycoon
Tycoon
Posts: 6559
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Brainwave

Post by FooBar » 16 Aug 2011 20:14

Supercheese wrote:Unfortunately, I cannot seem to figure out this darned "offset" concept properly, so the car sort of jerks around in some views. The NML documentation didn't seem to have any rules for offsets for the different compass views, so I'm at a loss... :|
General rule for vehicles is to take the negative of half the height (or width respectively) of the sprite for the offset. This usually gives acceptable results which only require minor tweaking. When it comes to tweaking, hit ctrl+B ingame to show the bounding boxes (you may need to enable newgrf_developer_tools for that though). The key to success is to align each view in the middle of it's bounding box.

If you want you can check the Dutch Tram Set source. It has templates for trams of each length; these should be equally usable for road vehicles. As long as you put each sprite in the correct position in the template, the alignment should be good automagically.

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

Re: Brainwave

Post by Supercheese » 20 Sep 2011 20:22

Well, after much toil and awkwardness, I've finally managed to code up the hot air balloon using the splendid sprites Zephyris posted earlier!

Being eyecandy, it has 0 purchase and running cost. It took quite a bit of doing, but the burner turns on during ascent, and during normal flight the burner is activated for a short burst every so often to provide more lift. :D

The purchase sprite was shrunk to fit within the row, and the sprite in the details window tends to cover up a bit of text, but I'm not sure how to fix that...

Also, there is a parameter to disable the burner sound effect while the balloon is in normal flight, in case you don't like that sort of thing.

Anyhow, if you find any bugs, let me know.
Attachments
Untitled.png
Untitled.png (53.35 KiB) Viewed 10425 times
Purchase.png
Purchase.png (3.68 KiB) Viewed 10425 times
hotairballoon.grf
(108.53 KiB) Downloaded 1291 times
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

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

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Brainwave

Post by Leanden » 20 Sep 2011 20:24

That is awesome :)

If only some other light aircraft had the same no running costs and purchase cost but were stripped of their cargo capacity. Would make for a nice Aircraft Eyecandy GRF. Fill the skies a bit ;)
Image

User avatar
ISA
Tycoon
Tycoon
Posts: 3379
Joined: 17 Oct 2005 20:56
Location: Estonia

Re: Brainwave

Post by ISA » 20 Sep 2011 20:34

Leanden wrote:If only some other light aircraft had the same no running costs and purchase cost but were stripped of their cargo capacity. Would make for a nice Aircraft Eyecandy GRF. Fill the skies a bit ;)
I have thinking to make something like military stuff... fighter, old fighter (spitfire and other WWII stuff), hangars and little runway tiles to connect things up... bit like little air show! The main thing is to not go big, because I don't find a lot time to draw things... So I should try to go tile be tile. Anyways if anyone have interest poke me and I maybe get a little motivation :)

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Brainwave

Post by Leanden » 20 Sep 2011 20:42

/poke!!
Image

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 16 guests