Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 14, 2017, 07:34:40 pm »
I can't see anything wrong with it nor with the rendering itself in my simple test case. Do you have a screen shot that shows the problem? Just to be sure that we are talking about the same thing here.
12
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on October 13, 2017, 10:19:38 pm »
No, those are the edges of the fog of war. The fog is black, naturally.
13
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?
15
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?
16
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.
17
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.
18
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.
19
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));
}
20
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);
Pages: 1 [2] 3 4 ... 10