Game Development Community

Wind Direction and smoke

by Howard Dortch · in Torque Game Engine · 06/26/2004 (5:08 pm) · 19 replies

The wind direction affects the rain just as it should. When I build a fire the smoke blows INTO the wind not away from it. Any way to correct this?

#1
06/26/2004 (5:35 pm)
Are you sure the rain is going the right direction and not the wind?
#2
06/26/2004 (6:18 pm)
WEll I don't know what direction 0,1,0 is but I set the wind to that.
I can stand back so that the rain goes from upper left to lower right just as I think it should, sort of at a slant. While lookin at my camp fire I would think it would blow to the right since the wind is commin from the left. The smoke rises and travels into the wind instead.

One of them is wrong and I thought the new HEAD with the precipitation was workin properly.
#3
06/27/2004 (11:06 am)
The rain is blowing the wrong direction!
I changed the wind direction and the clouds and the smoke are traveling the same direction the rain is opposite. I tried to change the rain rotation in the editor but it keeps changing back to wind direction
#4
06/27/2004 (11:52 am)
Is this with the most recent rain code?
#5
06/27/2004 (12:23 pm)
Yes sir it is the latest if the latest is within a week.
I noticed some odd things. First if I set the first value for wind direction ( I assume X) the rain, and clouds move one way and the smoke another, I change X to 0 and Y to 1 and the clouds and the smoke are ok but the rain is wrong. Could someone verify this ?
#6
06/27/2004 (9:39 pm)
I've alerted Chris - he ought to be looking at this.
#7
06/27/2004 (10:19 pm)
I'll look into/fix this tomorrow morning first thing. I guess the wind direciton is where the wind is coming FROM not where it's going. Boo that. :(
#8
06/27/2004 (10:27 pm)
Seems like when I watch the weather, they always talk about WHERE a storm or cold front is coming from, and where it will be headed. So the prime emphisis seems to be where it originates and what will happen because of it.

So it makes sense to apply the wind FROM the desired direction. Granted pointing the wind where you want it to go could be less confusing as long as you understand the relation of it's rotation.

IMO it doesn't really matter "To or From" as long as smoke and rain react accordingly to the specified direction and speed.
#9
06/28/2004 (4:31 am)
It is true that the outside world considers wind direction as a FROM value I think we in the graphics world understand direction as a vector/velocity so my suggestion for the sake of programmer sanity is make it work in direction vectors IMO.

As stated earlier clouds, rain, smoke and dare I say waving plants should all move the same vector as the wind velocity we set is the main point.
#10
06/28/2004 (4:34 am)
Well it is a vector really, when values are mentioned its usually an X, Y or Z value.
#11
06/28/2004 (5:01 am)
Yes I understand that, the reference was
" winds are out of the south at 10 mph "
versus

Vector3F ( x,y,z)

we programmers understand Vector not "south" and vector to us is a direction. You know what I mean...
#12
06/28/2004 (1:31 pm)
Ok, fixed a crash bug, a bug where the precip would jitter a lot if using turbulence, fixed wind velocity and re-added the old storm related functions.

I got rid of stormShow because you could just as easily set percentage to 0, and I renamed stormPrecipitation to modifyStorm because I like that name better. :) The functionality should be exactly the same.
#13
06/28/2004 (2:01 pm)
Super Chris you are the man :):)
Must try this out !
#14
06/28/2004 (7:09 pm)
Does everything blow the right way now?
Thanks for gettin on this so fast....
#15
07/01/2004 (2:41 pm)
Where can I aquire this fix Chris?
#16
07/01/2004 (2:56 pm)
Just update from torque head cvs.
#17
07/02/2004 (3:01 am)
@Chris did you fix the spelling error on setPercentage
The console method one.

And another question when i use modifystorm with a trigger its not updating the client , like all other stormdata do.
Any hints ?
#18
05/10/2005 (5:12 am)
I am using some vector math, such as VectorNormalize(), according to the API, it takes a Vector3F as parameter, but i dont know how to create a Vector3F, i use something like new Vector3F() but engine complains about Vector3F is not defined something... i really appreciate anyone who can help.
#19
05/10/2005 (5:52 am)
@Liu

A little friendly hint. Try to start a new thread of your own about this problem in the correct forum.

THat will increase the chances of someone helping you _a lot_.

Also write if you are working in C++ or script