How to make quality better in sw mode...

Started by entis, January 29, 2008, 04:33:53 PM

Previous topic - Next topic

entis

Hi,

Are there some flags, tricks in jpct that will help me to make scene looks better (make pixels smaller...)... I saw the Bloodridge game and as I understood it uses sw mode only but there are some kind of "High quality" mode and in this mode it looks much better... Does anyone know how to make such a "High quality" mode in sw mode?

Thanks.

Jonas

You could use oversampling(see framebuffer samplingmodes..) or just render a higher resolution.

Simple things should be simple, complex things should be possible - Alan Kay

EgonOlsen

In addition, Bloodridge uses the MipMapper-class that is available in the download section as a separate download. MipMapping can reduce texture aliasing in some scenes and my improve overall image quality.

Hrolf

Here's the code I used in Bloodridge;

/*****************************************************************************
****************************************************************************/
public void switchRenderQuality(boolean on)
{
    m_hiResRender=on;
renderBuffer.dispose();
    if (m_hiResRender)
    {
    bufferWidth*=2;
    bufferHeight*=2;
}
else
{
    bufferWidth/=2;
    bufferHeight/=2;
    }
    renderBuffer=new FrameBuffer(bufferWidth, bufferHeight, FrameBuffer.SAMPLINGMODE_NORMAL);
    renderBuffer.enableRenderer(IRenderer.RENDERER_SOFTWARE);
      renderBuffer.setBoundingBoxMode(FrameBuffer.BOUNDINGBOX_NOT_USED);
      renderBuffer.optimizeBufferAccess();
}