[1.1.0.4] Translucent line rendering bug

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Alter
Posts: 851
Joined: Wed Oct 05, 2005 8:55
Location: Poland, Lodz

[1.1.0.4] Translucent line rendering bug

Post 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
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
Locked

Return to “Closed Bugs”