• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

[Help]Mirrored Textures

slavek

FNG / Fresh Meat
May 4, 2006
3,075
943
0
UnrealEd: Viewport #1
I know mirrors are technically obsolete in UE2 however I have got them working to an extent. The only problem I have run into is that when a mirrored surface is above a nearby adjacent area, the area under the mirror will be rendered. Curious to know if anyone has worked around this besides smart level planning.

In SDK

Spoiler!


Spoiler!

 

PiX

FNG / Fresh Meat
Mar 20, 2009
306
69
0
Sweden
Good job! I've tried and failed many times.

All I can think of right now is to simply make a mimicked mirrored space of bsp and meshes underneath.
 

Murphy

FNG / Fresh Meat
Nov 22, 2005
7,071
743
0
32
liandri.darkbb.com
Don't they only work ingame if the UseStencil setting in the ini is changed from its default to True?
I'm not sure you can expect this from players. Barely from players who download the map manually, even less from the workshop people and not at all from someone who got it from playing on a server that had it in rotation.:(

Anyway. Sorry I can't help with the problem. Nice looking map though! Very Doom 3 like.
 

slavek

FNG / Fresh Meat
May 4, 2006
3,075
943
0
UnrealEd: Viewport #1
That did it! Can no longer see through walls and such. Cheers! :D

Now this leads me to question; What are the detrimental effects of having bUseStencil set to true? Maybe its not stable in certain situations? Does it affect more than what we currently see? I'd like to see a TWI member with Engine experience chime in here. Is there a reason it has not been set to true by default or is it just something that has never been thought about?
 

Murphy

FNG / Fresh Meat
Nov 22, 2005
7,071
743
0
32
liandri.darkbb.com
As far as I know it only makes the game not work on certain ancient graphics cards. They were recent enough for UT99 and still a possibility on the lower end users when UT2003 came out, I suppose. I'm fairly sure that's the only reason it defaults to False. To ensure maximal compatibility.

Nowadays you won't find anyone with a GeForce 1 anymore and if you did they couldn't play Killing Floor on that toaster anyway.
 

slavek

FNG / Fresh Meat
May 4, 2006
3,075
943
0
UnrealEd: Viewport #1
Might be something to bring up with TWI. If there are no practical disadvantages to having it on by default then it would give mappers more bling for their maps. ;)
 

forrestmark9

FNG / Fresh Meat
Nov 29, 2011
1,110
40
0
Might be something to bring up with TWI. If there are no practical disadvantages to having it on by default then it would give mappers more bling for their maps. ;)
This is still probably old or solved already but there's code that can be added into weapons to prevent problems with bUseStencil and scripted textures

Code:
simulated event RenderTexture(ScriptedTexture Tex)
{
    local RenderDevice rDev;
    local string sInitVal;

    // Lovely hack for scripted textures :)
    rDev = GameEngine(FindObject("Package.GameEngine", Class'GameEngine')).GRenDev;

    sInitVal = rDev.GetPropertyText("UseStencil");
    rDev.SetPropertyText("UseStencil", "False");

    // Draw stuff

    rDev.SetPropertyText("UseStencil", sInitVal);
}