OldUnreal / UnrealTournamentPatches

Other
975 stars 29 forks source link

Add in support for toggling on and off line occlusion in the editor, per viewport (for renderers that support it) #1451

Open metallicafan212 opened 10 months ago

metallicafan212 commented 10 months ago

A common complaint I've seen about the newer renderers (including my ICBINDx11 driver) is that lines are occluded by default in 3D views (which doesn't happen in DX7, Software, etc.). However: tons of people (myself included) find the occlusion very helpful for placing actors, lining up specific brushes, etc.

My suggestion: add a SHOW flag for toggling this on and off, which the render device can test for. A possible additional option (to make it easier for renderers to add) is to add a LINE flag that's added to the line when drawing, and the renderer can just do

if(LineFlags & LINE_DrawOver)

In my HP2 editor, I implemented this as a button on the viewport bar, allowing the user to quickly turn this on and off.

image

image

metallicafan212 commented 10 months ago

Here's what my button does in my UnrealEd. This is how I imagine it (should) work when added to the editor:

image image

If an icon is needed, Omega59 can help, he did all the icons for the HP2 editor, and he's good at matching the original style Epic had. We just went with a Windows 7 style as we liked it.