Advertisement

weather simulation

Started by July 25, 2000 12:50 PM
5 comments, last by firecrystal 24 years, 5 months ago
hi there! does any1 noe how to program in a weather factor? so that the weather can affect the game? eg. rainy weather, cars easier to skid... thanx!
Well weather is a VERY big topic... you have to implement it pretty much your self. It depends what your using for a graphics API, wheather it''s 2D, or 3D, and all that other stuff. Lot''s of it can be rapped up with a few kinematic physics equations. Grab yourself a Physics 11 Text Book and take a look at the formulas, most of them have to do with forces. So if the vehicle is moving 100km/h north and there''s a winding coming 20km/h from the east where is the car actually moving and stuff like that. There''s also things like Calculating friction forces depending on the weight of the object and such.

Yah it really does take A LOT of work to implement everything properly.

Best of luck!
See ya,
Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
Advertisement
Well, weather can be as simple or as complex as you like.

If you are interested in making it as real as possible, it''s probably going to take a long time to design and implement, and you might find that it''s slowing down your game to snail pace.

-Mezz
is there any resources on the Net for this topic??
i just wan a simple system....
mebbe just some basic weather factors built in...
i will be using Direct3D...

thanx!
For the skidding effect induced from rainy weather. You could just reduce/increase your Friction Constant/varible (if you have one .

One way of making rain is to just draw the water droplets on the screen as 2D sprites. Maybe it''ll look good, maybe it won''t. I''m sure theres some information on this site about implementing a rain system.

If you want to make it windy. Just make a wind vector which points in a 3D direction, with a certain strength. Then apply this force onto the car (If you want it really accurate then you can make the traction of the tyres a factor, and the weight/mass of the car/ ''wetness'' of the road).

If your making a badass AAA racing title, then you''ll need it to be perfect. Otherwise don''t get too stressed out with the Weather. I think people prefer a nice Sunny day

/Memir
Flash Pool - Pool/Billiards game for Facebook (developed by Memir).
Weather is but not limited too:
Ocean currents
Latitude
Axis tilt
Altitude

The above cause:
Temperature
Precipitation
Low pressure zones vs. high pressure zones
Snow melt rates
Water evaporation

And the above cause and are caused by:
Mountain ranges blocking inland movement of precipitation
Humidity
Aridness
Wind

And the above cause:
Water levels
Flora growth
Snow coverage

And the above cause:
Erosion

And the above causes:
Terrain shape

And the above influences:
Water passage
Erosion

And on and on and on and on.


_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
Advertisement
hehe, weather systems are really really complex... that''s how chaos was first discovered....

This topic is closed to new replies.

Advertisement