1
Support / strange blitting artefacts with software renderer
« on: September 20, 2014, 04:23:05 pm »
dear all,
I get strange artifacts when blitting, as seen in the attached image, which shows that this happens both with billboards as well with text rendered through glFont.blit which uses Framebuffer.blit().
Details: I am using the software renderer in java, established through
Adjusting framebuffer size by a few pixels plus or minus does not help (this is, the assumption that it could be an issue with the passed-in size or of size being odd or even [as given in this post: http://www.jpct.net/forum2/index.php/topic,3158.msg23122.html#msg23122], does not hold).
I render using
any suggestions?
I get strange artifacts when blitting, as seen in the attached image, which shows that this happens both with billboards as well with text rendered through glFont.blit which uses Framebuffer.blit().
Details: I am using the software renderer in java, established through
Code: [Select]
FrameBuffer buffer = new FrameBuffer(width, height, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.enableRenderer(IRenderer.RENDERER_SOFTWARE);
buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
...
World world = new World();
world.addObject(...billboarded object...)
Adjusting framebuffer size by a few pixels plus or minus does not help (this is, the assumption that it could be an issue with the passed-in size or of size being odd or even [as given in this post: http://www.jpct.net/forum2/index.php/topic,3158.msg23122.html#msg23122], does not hold).
I render using
Code: [Select]
public void paintComponent(Graphics g) {
buffer.clear(java.awt.Color.DARK_GRAY);
world.renderScene(buffer);
world.draw(buffer);
buffer.update();
glFont.blitString(buffer, "this is a blitted text", 200, 100, 0, Color.ORANGE);
buffer.display(g);
repaint();
}
any suggestions?