Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on Today at 09:42:10 pm »
The solid-color ones are semi-transparent (and where they belong).
2
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on Today at 09:10:21 pm »
I don't think so. As long as it's transparent AND on top of the rest, it should work. What happens if you use a texture in another color? Does it show?
3
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on Today at 07:07:41 pm »
I tested both the application logic (by replacing them with solid-color textures) and the same loading line (TextureManager.getInstance().addTexture("fog-left.png", new Texture("Assets"+File.separator+"fog-left.png", true))). Could it be relative to the number of polygons, or the sheer scale of the world? Maybe force-sorting the transparency list would fix it. Because number of polygons and size of the world are the only two different things between my test and the actual game.
4
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on Today at 09:54:39 am »
Maybe the texture itself hasn't been loaded properly? Albeit that doesn't explain why it's pitch black, but just to be sure...
5
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on October 19, 2017, 08:30:59 pm »
I wrote a simple test and transparency worked. So then I wrote the following method, and all I get are "End of printOddTransparencies()" prints. So now I'm stumped.

Code: [Select]
     public void printOddTransparencies(World theWorld) {
for (int y = 0; y < planes[0].length; y++)
     for (int x = 0; x < planes.length; x++)
if (theWorld.containsObject(planes[x][y]) && planes[x][y].getTransparency() != 0)
     System.out.println("Odd transparency at ("+x+", "+y+"): "+planes[x][y].getTransparency());
System.out.println("End of printOddTransparencies()");
     }
6
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 17, 2017, 10:01:53 am »
Doesn't look like it. Do you have a test case?
7
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on October 16, 2017, 10:21:38 pm »
They are set to 0.
8
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 16, 2017, 11:59:08 am »
There quads don't seem to have any transparency applied to it. Alpha channel aside, they should be transparent anyway with a value of 0.
10
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.
Pages: [1] 2 3 ... 10