Crisp texture in burning's video

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
FRex
Posts: 2
Joined: Fri May 12, 2017 1:04 pm

Crisp texture in burning's video

Post by FRex »

I have a crisp small (32x32, 64x64, etc.) textures and I want them to be rendered pixel perfectly to screen, without bilinear filtering. I'm also trying to stay portable between video driver types. For DirectX and OpenGL driver it works with

Code: Select all

cube->setMaterialFlag(irr::video::EMF_BILINEAR_FILTER, false);
but for Burning's software it doesn't. Is the only way to do it there recompiling it (that'd be very unfortunate because I'm using a precompiled dll)?
Also: why is batch 2D not supported in burning's but single 2D drawings are? (That's what documentation says, I'm in a hurry and didn't check on my own yet).
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Crisp texture in burning's video

Post by CuteAlien »

OK, I'm not that familiar with burnings. But from quick look at code I can tell that Burnings ignores those material settings. Instead it uses defines, so you don't get around re-compilng it to change those settings. The 2 files you can modify those defines are IrrCompileConfig.h (for different default features) and for more detail I guess you could try modifaying SoftwareDrivr2_compile_config.h (but I have no idea which features work together when changed on their own).

From what I can tell about draw2DImageBatch code it simply doesn't optimize it more on Burnings. But it should still draw (otherwise you wouldn't see fonts as those use that function).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
FRex
Posts: 2
Joined: Fri May 12, 2017 1:04 pm

Re: Crisp texture in burning's video

Post by FRex »

I see. That's too bad. Pure software real 3D is really nice choice to have, just for the sake of it, especially since I'm doing something low poly. I guess I'll stick to just GL then.

I meant this function by 'batch':
http://irrlicht.sourceforge.net/docu/cl ... 42af54d140

It says it's not supported on sw drivers.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Crisp texture in burning's video

Post by CuteAlien »

Hm, yeah - that does indeed not seem to work with software drivers.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply