Screen_Overlay getting stretched on WideScreens

Modelling, Textures, Animating and other general engine asset topics.

Screen_Overlay getting stretched on WideScreens

Postby Mxthe on Mon Nov 29, 2010 4:19 pm

Hello !

I am having a slight issue with textures that I use with a Env_ScreenOverlay entity

For those who are not aware, an Env_ScreenOverlay is an entity that allows you to "stick" a texture on the screen of the player, useful for "reading diaries" or "reading logs", very practical indeed...

The only problem is that the texture stretches to the current Resolution.

So my question is simple :

Is there a keyvalue for texture files that overrides this "strecthing" property ?

Or if there is not, what would be my alternative ?

Thanks !
User avatar
Mxthe
Member
Member
 
Joined: Tue Dec 15, 2009 4:00 pm

Re: Screen_Overlay getting stretched on WideScreens

Postby omnicoder on Tue Nov 30, 2010 1:00 am

I use a script_intro for this.
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Re: Screen_Overlay getting stretched on WideScreens

Postby Armageddon on Tue Nov 30, 2010 2:20 am

Did you Clamp the texture?
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Screen_Overlay getting stretched on WideScreens

Postby omnicoder on Tue Nov 30, 2010 2:29 am

Armageddon wrote:Did you Clamp the texture?

That just makes the edge pixels extend infinitely off to the sides, so it'll need a transparent border then.
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Re: Screen_Overlay getting stretched on WideScreens

Postby Mxthe on Tue Nov 30, 2010 2:40 pm

omnicoder wrote:I use a script_intro for this.


Unless script intro has a flexible way to display a texture on the screen, and to allow the texture to be changed via simple Input/Outputs, then it's not what I am looking for.

Armageddon wrote:Did you Clamp the texture?


I have never really used clamping so far, but each time I used it, it bugs the textures like hell !

omnicoder wrote:
Armageddon wrote:Did you Clamp the texture?

That just makes the edge pixels extend infinitely off to the sides, so it'll need a transparent border then.



My textures have alpha channels, therefore are $translutcent on the edges...Will that suffice?

What does clamping do exactly to an UnlitGeneric texture ?

Thanks for the answers
User avatar
Mxthe
Member
Member
 
Joined: Tue Dec 15, 2009 4:00 pm

Re: Screen_Overlay getting stretched on WideScreens

Postby omnicoder on Tue Nov 30, 2010 2:52 pm

Mxthe wrote:
omnicoder wrote:I use a script_intro for this.


Unless script intro has a flexible way to display a texture on the screen, and to allow the texture to be changed via simple Input/Outputs, then it's not what I am looking for.

Armageddon wrote:Did you Clamp the texture?


I have never really used clamping so far, but each time I used it, it bugs the textures like hell !

omnicoder wrote:
Armageddon wrote:Did you Clamp the texture?

That just makes the edge pixels extend infinitely off to the sides, so it'll need a transparent border then.



My textures have alpha channels, therefore are $translutcent on the edges...Will that suffice?

What does clamping do exactly to an UnlitGeneric texture ?

Thanks for the answers

Clamping means that instead of stretching the image it takes the pixel at the far edge of each side and repeats it. It should work for you if you make a 1-pixel wide 0-alpha border around the image.
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Return to Art Creation

Who is online

Users browsing this forum: No registered users