If you want to email me the files I will check them out. Is the glass mesh two sided by chance?
It is about rendering order in the engine. There was a description of what each number does. I will try and locate it.
Ok Found it.
DARKSDK_DLL void SetTransparency ( int iID, int iTransparency )
{
// Transparency Modes
// 0 - first-phase no alpha
// 1 - first-phase with alpha masking
// 2 and 3 - second-phase which overlaps solid geometry
// 4 - alpha test (only render beyond 0x000000CF alpha values)
// 5 - water line object (seperates depth sort automatically)
// 6 - combination of 3 and 4 (second phase render with alpha blend AND alpha test, used for fading LOD leaves)
// 7 - very early draw phase no alpha
This is from Lee In the thread below.
http://fpscrforum.thegamecreators.com/?m=forum_view&t=208916&b=1
About halfway down Posted: 10th Jun 2014 04:00 Lee Bamber
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 4gb RAM, Nvidia gtx660, Windows 7 Pro 64bit