DoomGLES data converter
-----------------------

DGLESConvert is a modified version of DoomGL. It converts Doom datas to OpenGLES compatible ones.

1- Unzip "Converter" folder to your hard drive.
2- Add Doom IWAD & PWADS you wish to convert.
3- If you wish to convert main Doom IWAD, use the bat files provided:
	+ DoomConvert.bat: Convert Ultimate Doom IWAD (V1.9).
	+ Doom2Convert.bat: Convert Doom2 IWAD (V1.9).
	+ Doom2Convert_nomd2.bat: Convert Doom2 IWAD (V1.9), if you don't plan to use MD2s.
4- If you wish to convert PWADs, use DGLESConvert with the -file & -warp parameters. The -iwad parameter can be used if you have several iwads in the same folder.
Example: mypwad.wad contains 2 levels E1M1 & E1M2 for Doom 1:
	DGLESConvert -iwad doom.wad -file mypwad.wad -warp 1 1
	DGLESConvert -iwad doom.wad -file mypwad.wad -warp 1 2
In OpenGLES folder, a "mypwad" subfolder will be created. Copy it to your PocketPC, and launch DoomGLES with the "-file mypwad.wad" parameter.

----------------------------------------------------------------------------------

To optimize texture memory, each level has its own sprites pages. Two problems may occur when you convert datas:

1- "Sprite not converted (lump:??)" error
-----------------------------------------
Some sprites aren't precached and dynamically spawned (monsters fireballs, explosions, etc.). The lumps of these sprites are listed in the Mlump??.txt files.
MlumpD2.txt: for Doom2.
MlumpUD.txt: for Doom1 (ultimate Doom).
MlumpDS.txt: for Doom1 shareware.
I may have forgotten some lumps. In this case, simply add the lump number in the error message in the corresponding Mlump??.txt file, delete E?M?_spr?.pvr (or MAP??_spr?.pvr) in your OpenGLES/<wadfolder>, and relaunch conversion of the map(s).
Also, send me a email with the lump number, so it will be fixed in the next released version.

2- White sprites on screen
--------------------------
It means the texture memory is full. So we have to scale down some sprites. Use the -maxsprsurf parameter.
Example (from Doom2Convert.bat):
DGLESConvert.exe -warp 27 -sprmaxsurf 2048
In Doom2 MAP27 there is too much textures (MD2s, world, sprites), so, each sprite which surface size will be greater than 2048 will be scaled down by 2.
You could also use the "-sprscale" parameter, it specifies the scale the sprite will be scaled down (0.5 by default).
Before you reconvert a map, think to delete OpenGLES/<wad>/E?M?_spr?.pvr files (or OpenGLES/<wad>/MAP??_spr?.pvr for Doom2 wads).