www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: entis on January 29, 2008, 04:33:53 pm

Title: How to make quality better in sw mode...
Post 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.
Title: Re: How to make quality better in sw mode...
Post by: Jonas on January 29, 2008, 08:13:40 pm
You could use oversampling(see framebuffer samplingmodes..) or just render a higher resolution.

Title: Re: How to make quality better in sw mode...
Post by: EgonOlsen on January 29, 2008, 08:34:46 pm
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.
Title: Re: How to make quality better in sw mode...
Post by: Hrolf on January 30, 2008, 07:07:31 am
Here's the code I used in Bloodridge;

Code: [Select]
/*****************************************************************************
 ****************************************************************************/
  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();
  }