Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Mar 25, 2017 3:39 pm

All times are UTC




Post new topic  Reply to topic  [ 47 posts ]  Go to page Previous 1 2 3 Next
Author Message
 Post subject: Re: Brainwave
PostPosted: Sun Aug 14, 2011 9:50 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
Zephyris wrote:
Boo.

Two sets of sprites(...)

beautiful - as always :-)

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
 Post subject: Re: Brainwave
PostPosted: Sun Aug 14, 2011 10:29 pm 
Offline
Chairman
Chairman
User avatar

Joined: Thu Mar 25, 2010 1:36 pm
Posts: 786
I agree :)


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 1:45 am 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5181
Location: The Moon
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.

_________________
Pikkarail.com blog Image
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API
32bpp NewGRFs: Pineapple Trains (10cc) - Graphics Development


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 11:23 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Mar 19, 2009 7:25 pm
Posts: 2270
Location: Paddock Wood, England
True, why would the hot air balloon have to turn to change direction?

_________________
Image


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 12:37 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Nov 27, 2004 3:05 pm
Posts: 4940
Location: Canada
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?

_________________
wallyweb on tt-forums: Screenshots - Projects - Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 12:53 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed May 16, 2007 4:59 pm
Posts: 2759
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?

_________________
GRVTS/eGRVTS --- Generic Tram Set --- UK Town Set --- zBase ---RichardWheeler.net


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 1:06 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
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.

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 1:24 pm 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5181
Location: The Moon
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

_________________
Pikkarail.com blog Image
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API
32bpp NewGRFs: Pineapple Trains (10cc) - Graphics Development


Top
   
 Post subject: Re: Brainwave
PostPosted: Mon Aug 15, 2011 1:28 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Mar 19, 2009 7:25 pm
Posts: 2270
Location: Paddock Wood, England

_________________
Image


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 7:31 am 
Offline
Tycoon
Tycoon

Joined: Sun Dec 16, 2007 10:24 pm
Posts: 1598
Location: Idaho, USA
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: viewtopic.php?f=26&t=56780


Attachments:
Police car.png
Police car.png [ 1.72 KiB | Viewed 7925 times ]

_________________
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

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


Last edited by Supercheese on Mon Sep 26, 2011 6:00 am, edited 1 time in total.
Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 7:53 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
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 :-)

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 7:59 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5510
Location: Eastern KY
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.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 9:47 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sun Feb 08, 2009 6:36 pm
Posts: 2325
Location: Alberta, Canada
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.


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 12:26 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Mar 31, 2007 2:23 pm
Posts: 4202
Location: Standing by the jams
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:

_________________
Want to help OTTD development? Here's the official list of bitesize patches needed: http://wiki.openttd.org/Todo_list

FIRS Industry Replacement Set (Released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (Finished)
Squid Ate FISH (ships) (Released) | CHIPS Has Improved Players' Stations (Finished)
Iron Horse (trains, released) | Termite (tracks for Iron Horse, released) | Busy Bee (game script, released)


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 12:44 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed May 16, 2007 4:59 pm
Posts: 2759
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.

_________________
GRVTS/eGRVTS --- Generic Tram Set --- UK Town Set --- zBase ---RichardWheeler.net


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Aug 16, 2011 8:14 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
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.

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Sep 20, 2011 8:22 pm 
Offline
Tycoon
Tycoon

Joined: Sun Dec 16, 2007 10:24 pm
Posts: 1598
Location: Idaho, USA
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 7708 times ]
Purchase.png
Purchase.png [ 3.68 KiB | Viewed 7708 times ]
hotairballoon.grf [108.53 KiB]
Downloaded 1047 times

_________________
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Sep 20, 2011 8:24 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Mar 19, 2009 7:25 pm
Posts: 2270
Location: Paddock Wood, England
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


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Sep 20, 2011 8:34 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Oct 17, 2005 8:56 pm
Posts: 3227
Location: Estonia
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 :)

_________________
TT-Screenshot Of The Month - 2012 July, winner!
TT-Screenshot Of The Month - 2013 May, winner tie with Purno!
TT-Screenshot Of The Month - 2014 February, winner!
TT-Screenshot Of The Month - 2014 June, winner tie with alluke!
TT-Screenshot Of The Month - 2014 April, winner!

My screen shot thread ---> Have a look


Top
   
 Post subject: Re: Brainwave
PostPosted: Tue Sep 20, 2011 8:42 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Mar 19, 2009 7:25 pm
Posts: 2270
Location: Paddock Wood, England
/poke!!

_________________
Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 47 posts ]  Go to page Previous 1 2 3 Next

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.