www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: entis on January 29, 2008, 04:33:53 pm
-
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.
-
You could use oversampling(see framebuffer samplingmodes..) or just render a higher resolution.
-
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.
-
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();
}