I need a super texture filtering, don't know if it is possible
Hi, in the game "how to survive 2" the health bar of the companions is at the same depth of the hud, I used texture filtering to get the health (of the companions)bar more depth but all the boxes in the game use the same texture even the user menu... I need to isolate the health bar of the companions without affecting the others boxes in the game. In this picture is more explained. Maybe is impossible. [url]https://drive.google.com/open?id=0B7-C-G8Te2HbZW9kQ203NV93Tkk[/url]
Hi, in the game "how to survive 2" the health bar of the companions is at the same depth of the hud, I used texture filtering to get the health (of the companions)bar more depth but all the boxes in the game use the same texture even the user menu... I need to isolate the health bar of the companions without affecting the others boxes in the game. In this picture is more explained. Maybe is impossible.
https://drive.google.com/open?id=0B7-C-G8Te2HbZW9kQ203NV93Tkk

#1
Posted 04/22/2017 02:59 PM   
I believe that 4everAwake is currently working on this games as well. I only say that because he posted a pic the other day. http://photos.3dvisionlive.com/4everAwake/image/58f8e237e7e564d8270000dc/ You might PM him to see if he is and the current status.
I believe that 4everAwake is currently working on this games as well. I only say that because he posted a pic the other day.


http://photos.3dvisionlive.com/4everAwake/image/58f8e237e7e564d8270000dc/


You might PM him to see if he is and the current status.

#2
Posted 04/22/2017 03:59 PM   
Ok, now we're getting in the really fun stuff. Think of the screen as being a 2D plane, where X & Y goes from -1 to 1, like so: <----screen top border----> _____________1___________ | | | ^ | | | | | | | | | | | | -1|____________|____________|1 screen | |(0,0) | side | | | border | | | | | | | | |____________|____________| \/ -1 Edit (apparently forums don't like spacing, so in case the above doesn't look right, here's a different approach): ..<----screen top border----> .. _____________1___________ ..|.................|.................|..^ ..|.................|.................|..| ..|.................|.................|..| ..|.................|.................|..| -1|____________|____________|1..screen ..|.................|(0,0)...........|...side ..|.................|.................|...border ..|.................|.................|..| ..|.................|.................|..| ..|____________|____________|..\/ ....................-1 and lets say the health is at the bottom, while other stuff is at the top, like so: _____________1___________ | | (other | | | stuff) | | | | | | | -1|____________|____________|1 | |(0,0) | | | | | | | | (health bars) | |____________|____________| -1 Edit: (also providing alternative here): .. _____________1___________ ..|.................|.......(other...| ..|.................|....... stuff)...| ..|.................|.................| ..|.................|.................| -1|____________|____________|1 ..|.................|(0,0)...........| ..|.................|.................| ..|.................|.................| ..|..........(health bars)..........| ..|____________|____________| ....................-1 and assuming the sv_position is o0, you can do the following to only affect the health bars: if (o0.y < 0) { <code> } This is a really basic example, sometimes you'll need to do way more checks to isolate, like if (o0.x > -0.6 && o0.x < 0.6 && o0.y < -0.5 && o0.y > -0.8) would really isolate a bounding box around a specific area of the screen.
Ok, now we're getting in the really fun stuff. Think of the screen as being a 2D plane, where X & Y goes from -1 to 1, like so:

<----screen top border---->
_____________1___________
| | | ^
| | | |
| | | |
| | | |
-1|____________|____________|1 screen
| |(0,0) | side
| | | border
| | | |
| | | |
|____________|____________| \/
-1

Edit (apparently forums don't like spacing, so in case the above doesn't look right, here's a different approach):

..<----screen top border---->
.. _____________1___________
..|.................|.................|..^
..|.................|.................|..|
..|.................|.................|..|
..|.................|.................|..|
-1|____________|____________|1..screen
..|.................|(0,0)...........|...side
..|.................|.................|...border
..|.................|.................|..|
..|.................|.................|..|
..|____________|____________|..\/
....................-1

and lets say the health is at the bottom, while other stuff is at the top, like so:


_____________1___________
| | (other |
| | stuff) |
| | |
| | |
-1|____________|____________|1
| |(0,0) |
| | |
| | |
| (health bars) |
|____________|____________|
-1

Edit: (also providing alternative here):

.. _____________1___________
..|.................|.......(other...|
..|.................|....... stuff)...|
..|.................|.................|
..|.................|.................|
-1|____________|____________|1
..|.................|(0,0)...........|
..|.................|.................|
..|.................|.................|
..|..........(health bars)..........|
..|____________|____________|
....................-1

and assuming the sv_position is o0, you can do the following to only affect the health bars:

if (o0.y < 0)
{
<code>
}

This is a really basic example, sometimes you'll need to do way more checks to isolate, like

if (o0.x > -0.6 && o0.x < 0.6 && o0.y < -0.5 && o0.y > -0.8)

would really isolate a bounding box around a specific area of the screen.

3D Gaming Rig: CPU: i7 7700K @ 4.9Ghz | Mobo: Asus Maximus Hero VIII | RAM: Corsair Dominator 16GB | GPU: 2 x GTX 1080 Ti SLI | 3xSSDs for OS and Apps, 2 x HDD's for 11GB storage | PSU: Seasonic X-1250 M2| Case: Corsair C70 | Cooling: Corsair H115i Hydro cooler | Displays: Asus PG278QR, BenQ XL2420TX & BenQ HT1075 | OS: Windows 10 Pro + Windows 7 dual boot

Like my fixes? Dontations can be made to: www.paypal.me/DShanz or rshannonca@gmail.com
Like electronic music? Check out: www.soundcloud.com/dj-ryan-king

#3
Posted 04/22/2017 05:44 PM   
@DJ-RK Thanks!!!! that's what I need!!! I'm going to try it. update: I made it, I could make a box at the top left of the screen but this f...cking texture appears everywhere in the screen: every time you are near something the box appears so it's impossible make it by isolation :( At least I've learnt how to make isolations boxes ;). Finally I decided to add in "cycle hud depth" another constant 0.50, I think is balanced between hud depth and the texture of the boxes. When there's a companion in the screen I will use this constant.
@DJ-RK Thanks!!!! that's what I need!!! I'm going to try it.
update: I made it, I could make a box at the top left of the screen but this f...cking texture appears everywhere in the screen: every time you are near something the box appears so it's impossible make it by isolation :(
At least I've learnt how to make isolations boxes ;).
Finally I decided to add in "cycle hud depth" another constant 0.50, I think is balanced between hud depth and the texture of the boxes. When there's a companion in the screen I will use this constant.

#4
Posted 04/22/2017 06:36 PM   
Scroll To Top