I figured out Weather Raw
Posted: Wed Jan 07, 2009 7:09 pm
Well I have been working on Weather Raw today, and it's surprisingly very easy. It's based on two blocks, Placement, and Rotation. When the map loads, it places particles in all of the placement spots. They then fall a ramdom distance, pick a random rotation chunk, rotate, and repeat.
I wrote some ghetto code to simulate this, although I used verts and did not implement the rotation proccess due to my limited knowledge of Xna. Here is a video. Sorry for the horrible frame rate.
Here is the weather raw layout.
I wrote some ghetto code to simulate this, although I used verts and did not implement the rotation proccess due to my limited knowledge of Xna. Here is a video. Sorry for the horrible frame rate.
Here is the weather raw layout.
Code: Select all
Header
HeaderBlock - chars[4]
DataSize - Int32
PlacementCount - Int32
Null - Int32
RotationCount - Int32
Placement Block
X - Float
Y - Float
Z - Float
Unknown - Int32
Null - Int32
Rotation Block
Null - Byte[12]
l - Float
j - Float
k - Float
w - Float
Null - Byte[4]