WLW: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (formating.)
(Added information about the height maps in each chunk)
Line 14: Line 14:


*nCount blocks of 0x168 bytes.
*nCount blocks of 0x168 bytes.
<pre>Type Name Description
float[16][3] heights a height map for this section of the water
uint16[54]? unk ?</pre>
===Height Map===
The first 0xC0 bytes are made of 48 float's that make up 16 vertices ( z-up ) arranged in a grid that starts in the lower right corner.
<pre>15 14 13 12
11 10 9 8
7 6 5 4
3 2 1 0</pre>
When all the chunks are combined, they form a height map of the water, similar to those in the ADT's
--[[User:Riraito|Riraito]] 03:00, 25 July 2008 (CDT)


= Speculation! =
= Speculation! =

Revision as of 10:01, 25 July 2008

These files are used for all of World of Warcraft's water. For each contained body of water in the game (except for the oceans) there exists one of these files. There is also a WLQ file located at the exact same file and pathname as the .wlw files. Little else is known about this file format...

Header

Type		Name			Description
char[4]		Identifier		"*QIL"
int16		Used			1 if data is in the file.
int32		Version			always 01000400
int16		Unknown			always 0
int32		nCount			how many liquids are in this chunk
int32?		Unknown			?

Data

  • nCount blocks of 0x168 bytes.
Type		Name			Description
float[16][3]	heights			a height map for this section of the water
uint16[54]?	unk			?

Height Map

The first 0xC0 bytes are made of 48 float's that make up 16 vertices ( z-up ) arranged in a grid that starts in the lower right corner.

15	14	13	12

11	10	9	8

7	6	5	4

3	2	1	0

When all the chunks are combined, they form a height map of the water, similar to those in the ADT's

--Riraito 03:00, 25 July 2008 (CDT)

Speculation!

Expamles (Header)

  • 2a 51 49 4c 01 00 01 00 04 00 00 00 3d 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 01 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 1f 01 00 00
  • 2a 51 49 4c 00 00 01 00 04 00 00 00 02 00 00 00
  • 2a 51 49 4c 00 00 01 00 04 00 00 00 0c 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 0d 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 06 00 00 00
  • 2a 51 49 4c 00 00 01 00 04 00 00 00 00 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 00 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 03 00 00 00
  • 2a 51 49 4c 01 00 01 00 04 00 00 00 31 00 00 00

Examples (Data)

  • Example 1
2f 4d d4 c4 dd 49 ee 40 9f cd 25 c5 85 42 d3 c4
dd 49 ee 40 9f cd 25 c5 da 37 d2 c4 dd 49 ee 40
9f cd 25 c5 2f 2d d1 c4 dd 49 ee 40 4a 48 25 c5
2f 4d d4 c4 dd 49 ee 40 4a 48 25 c5 85 42 d3 c4
dd 49 ee 40 4a 48 25 c5 da 37 d2 c4 dd 49 ee 40
4a 48 25 c5 2f 2d d1 c4 dd 49 ee 40 f5 c2 24 c5
2f 4d d4 c4 dd 49 ee 40 f5 c2 24 c5 85 42 d3 c4
dd 49 ee 40 f5 c2 24 c5 da 37 d2 c4 dd 49 ee 40
f5 c2 24 c5 2f 2d d1 c4 dd 49 ee 40 9f 3d 24 c5
2f 4d d4 c4 dd 49 ee 40 9f 3d 24 c5 85 42 d3 c4
dd 49 ee 40 9f 3d 24 c5 da 37 d2 c4 dd 49 ee 40
9f 3d 24 c5 2f 2d d1 c4 dd 49 ee 40 00 00 00 40

00 00 80 3f 01 00 00 00 03 00 00 00 07 00 00 00
01 00 00 00 08 00 00 00 02 00 00 00 01 00 00 00
02 00 00 00 03 00 00 00 00 00 00 00 05 00 00 00
03 00 00 00 02 00 00 00 01 00 00 00 03 00 00 00
03 00 00 00 04 00 00 00 00 00 00 00 02 00 00 00
00 00 00 00 06 00 00 00 01 00 00 00 07 00 00 00
02 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00
03 00 00 00 02 00 00 00 00 00 00 00 07 00 00 00
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 9f 5d 27 c5
  • Example 2
00 ea f6 c3 b3 78 47 42 b9 a1 a0 c4 55 bf f2 c3
b3 78 47 42 b9 a1 a0 c4 ab 94 ee c3 b3 78 47 42
b9 a1 a0 c4 00 6a ea c3 b3 78 47 42 0e 97 9f c4
00 ea f6 c3 b3 78 47 42 0e 97 9f c4 55 bf f2 c3
b3 78 47 42 0e 97 9f c4 ab 94 ee c3 b3 78 47 42
0e 97 9f c4 00 6a ea c3 b3 78 47 42 64 8c 9e c4
00 ea f6 c3 b3 78 47 42 64 8c 9e c4 55 bf f2 c3
b3 78 47 42 64 8c 9e c4 ab 94 ee c3 b3 78 47 42
64 8c 9e c4 00 6a ea c3 b3 78 47 42 b9 81 9d c4
00 ea f6 c3 b3 78 47 42 b9 81 9d c4 55 bf f2 c3
b3 78 47 42 b9 81 9d c4 ab 94 ee c3 b3 78 47 42
b9 81 9d c4 00 6a ea c3 b3 78 47 42 00 00 80 3f

00 00 80 3f 01 00 00 00 01 00 00 00 02 00 00 00
03 00 00 00 ff ff ff ff 00 00 00 00 02 00 00 00
02 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff
00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff
00 00 00 00 ff ff ff ff 00 00 00 00 01 00 00 00
02 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff
00 00 00 00 02 00 00 00 02 00 00 00 ff ff ff ff
00 00 00 00 ff ff ff ff 00 00 00 00 01 00 00 00
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 b9 a1 a0 c4

--Schlumpf 00:30, 12 August 2007 (CEST)