Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 13, 2017, 12:00:12 pm »
That texture has an alpha channel assigned to it that makes the white part transparent. I would guess that you actually want it the other way around?
73
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 13, 2017, 10:16:57 am »
Can you upload such a texture for me to see?
74
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on October 12, 2017, 07:41:14 pm »
The textures are right. I set transparency to 0.
75
Support / Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Last post by EgonOlsen on October 12, 2017, 07:47:52 am »
Try to disable the renderer before disposing it.
76
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 12, 2017, 07:46:52 am »
Then most likely your objects aren't rendered with transparency enabled or your textures' alpha channel is off.
77
Support / Fog Of War Transparency With Software
« Last post by AGP on October 12, 2017, 03:02:14 am »
I''m writing a strategy game and can't seem to properly paint a transparent PNG on my fog (so that its edges are rounded). The logic for the texture placement is sound and has been tested. But all I get is solid black.

Code: [Select]
if (!TextureManager.getInstance().containsTexture("fog-top")) {
     TextureManager.getInstance().addTexture("fog-top", new Texture("Assets"+File.separator+"fog-top.png", true));
     TextureManager.getInstance().addTexture("fog-left", new Texture("Assets"+File.separator+"fog-left.png", true));
     TextureManager.getInstance().addTexture("fog-right", new Texture("Assets"+File.separator+"fog-right.png", true));
     TextureManager.getInstance().addTexture("fog-bottom", new Texture("Assets"+File.separator+"fog-bottom.png", true));
}
78
Support / Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Last post by AGP on October 12, 2017, 02:57:38 am »
Code: [Select]
     private void loop() {
....
     buffer.clear(java.awt.Color.black);
     theWorld.renderScene(buffer);
     theWorld.draw(buffer);
     buffer.displayGLOnly();
     canvas.repaint();
     Thread.yield();
}
buffer.dispose();//CAUSES THE PROBLEM
this.dispose();
buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
System.exit(0);
79
Support / Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Last post by EgonOlsen on October 09, 2017, 12:55:43 pm »
I don't see how this can happen if everything happens in the same thread. Where does the actual rendering happen then?
80
Support / Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Last post by AGP on October 06, 2017, 08:36:10 pm »
Same thread as the gameloop and just before Frame.dispose().
Pages: 1 ... 6 7 [8] 9 10