Page 1 of 1

[1.1.0.4] Translucent line rendering bug

Posted: Fri Jul 04, 2008 15:21
by Alter
Basically, when you execute a script which sets line's translucency (Setlinespecial(5,208,5,128,0,0,0);) for example, the lines aren't translucent after executing the script, weird, when i'm coming into those translucent lines, they become translucent, wtf! and lines are just marked with LineIDs. Here's how it works in screens and script itself (unfinished but does the bug):
ImageThe location before script is executed

ImageLocation after the script is executed with setlinespecial etc. the walls are still not translucent

ImageThat's what happens when i come into translucent walls which weren't translucent because of bug

ImageSee? Both sides are TRANSLUCENT if i come into those walls first, something's wrong with rendering those after executing script

Here's the script

Code: Select all

SCRIPT 11 (void)
{
AmbientSound("misc/laugh", 127);
Sector_setfade(202,255,0,0);
Sector_setfade(200,255,0,0);
Sector_setfade(201,255,0,0);
ChangeFloor(200, "BLOOD1");
ChangeFloor(201, "BLOOD1");
ChangeFloor(202, "BLOOD1");
ChangeCeiling(200, "BLOOD1");
ChangeCeiling(201, "BLOOD1");
ChangeCeiling(202, "BLOOD1");
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "BFALL1"); //remove middle 
SetLineTexture(1, SIDE_BACK, TEXTURE_MIDDLE, "BFALL1"); //floating texture
SetLineTexture(1, SIDE_FRONT, TEXTURE_BOTTOM, "BFALL1"); //remove middle 
SetLineTexture(1, SIDE_BACK, TEXTURE_BOTTOM, "BFALL1"); //floating texture
SetLineTexture(1, SIDE_FRONT, TEXTURE_TOP, "BFALL1"); //remove middle 
SetLineTexture(1, SIDE_BACK, TEXTURE_TOP, "BFALL1"); //floating texture
SetLineTexture(3, SIDE_FRONT, TEXTURE_BOTTOM, "BFALL1"); //remove middle 
SetLineTexture(3, SIDE_BACK, TEXTURE_BOTTOM, "BFALL1"); //floating texture
SetLineSpecial(1,208,1,64,0,0,0);
}
Look, setlinespecial is PROPERLY done

Posted: Fri Jul 04, 2008 17:42
by Graf Zahl
This is not a bug. You can't set translucency like this. What you are doing is setting the lines to execute the special when crossed. If you want to make it translucent you have to call TranslucentLine directly, not setlinespecial.