i compiled and ran the latest svn with a test mod that uses green -> blue -> red -> yellow tiles to represent most -> least resolution (using attached video for reference), and have a few questions:
why do some tiles not blend? in the video you can distinctly see some tiles that do not ever change in appearance, yet i'm sure each resolution-centric directory has 90 images, and each resolution contains purely solid-color tiles.
also, it would seem prudent to increase the threshold for using the highest resolution tiles by about 15%, as they are almost never used, even at reasonably high yet usable zoom levels, however, i don't know how this would affect performance, especially on older systems, so if testing has been done to this effect, i withdraw the suggestion. also, out of interest, does anyone have any figures for mem-usage and rendering speed with/without use of mipmapped tiles?
i must say, aside from the single problem witnessed, i'm very impressed with the algorithm used to choose the resolution for any given tile: not only does it factor in distance, as some games seem to be limited to, but also by relative angle.
mipmapped tiles
-
kage
- Regular

- Posts: 751
- Joined: 05 Dec 2006, 21:45
mipmapped tiles
You do not have the required permissions to view the files attached to this post.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: mipmapped tiles
I am not sure what you mean by blending. We just use the standard OpenGL settings for mipmapping. We could change the mipmap "bias" to favour either using smaller or larger textures, if desired, though.
"Make a man a fire, you keep him warm for a day. Set a man on fire, you keep him warm for the rest of his life."
-
kage
- Regular

- Posts: 751
- Joined: 05 Dec 2006, 21:45
Re: mipmapped tiles
in the video attached to the first post (xvid encoded, no audio), you can see that some of the tiles use the standard alpha campaign tertiles, and are possibly not being mipmapped like the rest of the tiles. since i replaced all of the tiles ranging from 16-128 resolution with solid color versions, all i should see are pure shades of color. if i am doing it correctly, then this is obviously a bug that'll make it difficult for modders.
-
Sonsalt
- Trained

- Posts: 114
- Joined: 25 Jul 2007, 22:10
Re: mipmapped tiles
I just saw the movie. How did you manage to zoom out that much ??? I have a resolution of 1920x1200 and I can't even go half the way. Besides my tool bar is tiny