Changing blending mode to NEAREST_NEIGHBOR?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

TMcSquared
Just popping in
Just popping in
Posts: 2
Joined: Fri Mar 16, 2018 23:29

Changing blending mode to NEAREST_NEIGHBOR?

Postby TMcSquared » Mon Jun 04, 2018 21:53

Hello, I would like to change the Blending on the textures when they are scaled to not be blurry, how would I do that?

User avatar
Ident
CEGUI Team
Posts: 1893
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Changing blending mode to NEAREST_NEIGHBOR?

Postby Ident » Tue Jun 05, 2018 06:36

in CEGUI 0.X we use bilinear filtering for up and downscaling. For 1.X we will use trilinear filtering so that downscaling won't get blurry anymore.

I assume your issue lies with downscaling? Because with upscaling, nearest neighbor filtering wont help much.

But to answer your question: Just modify your Renderer to use nearest neighbour filtering in all cases. You did not specify anything so you need to figure this out on your own... It is easy and should be pretty safe, as long as all your widget windows are set to be positioned and sized in pixel-correct fashion, which is the default anyway..
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 1 guest