blitting not showing texture on quality change

Started by zammbi, August 28, 2010, 07:33:37 AM

Previous topic - Next topic

zammbi

Having a little trouble with blitting.
It's not showing the texture on quality change with software mode. Doesn't matter if its transparent or not, what file type it is, tried different textures, setMipmap to false, etc..
It will only show for 'SAMPLINGMODE_NORMAL'. Nothing else is effected, only blitting. No problems at all when I switch to hardware mode.

Anyone else having this issue?
A forum search didn't show anything. So any help will be great...

EgonOlsen

Keep in mind that blitting with the software render happens into the front buffer by default. When using AA, the front buffer is the one that contains the post processed results. If you need blitting into the (higher res) backbuffer, you can set the blitting target to it by using Framebuffer.setBlittingTarget().

zammbi

Thanks, that did the trick.
Another slight issue. When changing quality the text gets smaller. What's the best way to stop this behaviour?

EgonOlsen

That's caused by the downsampling. Use larger texts, blit to the front buffer if possible (i.e. after the update()-call) or use scaled blitting (might look at bit fuzzy in software mode). Or live with it. It will happen on higher resolutions anyway unless you are using scaled blits all the way.

zammbi

Quoteblit to the front buffer if possible (i.e. after the update()-call)
Ah cool, that worked. Its perfect now  :D