Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   IL-2 Sturmovik (http://forum.fulqrumpublishing.com/forumdisplay.php?f=98)
-   -   Anisotropic Filtering in IL-2 (http://forum.fulqrumpublishing.com/showthread.php?t=17557)

zaelu 12-05-2010 04:11 PM

Anisotropic Filtering in IL-2
 
Hello...

This problem "tortures" me for quite a while and I still haven't found a solution.

Description/reproduction of the problem:

I have a GF 460GTX card (old one was a 8800GT) a 3GHzs C2D (non OC), 4GB ram, Win 7 config and I am running the game "at max settings" with the latest drivers configured for high quality image, 8xAA and 8xAF at 1920x1080 resolution.

Almost any plane but especially those with similar cockpits like A-20 have a ugly rescaling problem of cockpit gauges. Meaning when I am zoomed back furthest I can't read the gauges cause instead of filtering resize the game apparently only make rescaling by simple interpolation... destroying the image. If I zoom in... no problem... the gauges are exquisite beautiful and quite sharp.

Anyone else have the same problem?

Here are two screenshots to exemplify my problem and a quote of my conf.ini

crop from full image at 1920x1080

cockpit gauges of A20
http://img543.imageshack.us/img543/8609/grab0000.jpg

icons on map that have strange square artifacts at transparency around the aircraft sign... like in no filtering or something.
http://img827.imageshack.us/img827/8353/grab00010.jpg

and the full versions... jpg... originally they were TGA
http://img213.imageshack.us/img213/5...0000big.th.jpg http://img18.imageshack.us/img18/381...0001big.th.jpg

Quote:

[il2]
...

[window]
width=1920
height=1080
ColourBits=32
DepthBits=24
StencilBits=8
ChangeScreenRes=1
FullScreen=1
DrawIfNotFocused=0
EnableResize=0
EnableClose=1
SaveAspect=0
Use3Renders=0

[GLPROVIDER]
GL=Opengl32.dll

[GLPROVIDERS]
Open GL=Opengl32.dll
DirectX=dx8wrap.dll

[NET]
speed=8000
routeChannels=0
serverChannels=31
localPort=21000
remotePort=21000
SkinDownload=1
serverName=zaelu's
serverDescription=
remoteHost=
localHost=188.26.152.48
socksHost=
checkServerTimeSpeed=1
checkClientTimeSpeed=1
checkTimeSpeedDifferense=0.02
checkTimeSpeedInterval=3
checkRuntime=0
remoteHost_000=

[MaxLag]
farMaxLagTime=0.5
nearMaxLagTime=0.5
cheaterWarningDelay=3.0
cheaterWarningNum=3

[chat]
...

[game]
Arcade=0
HighGore=1
mapPadX=0.3
mapPadY=0.50648147
viewSet=41
Intro=0
NoSubTitles=0
NoChatter=0
NoHudLog=0
NoLensFlare=0
iconTypes=3
eventlog=eventlog.lst
eventlogkeep=0
3dgunners=1
TypeClouds=2
ClearCache=0
SubTitlesLines=1
HakenAllowed=0


[HotKey game]
...

[HotKey gui]
...

[HookViewFly Config]
timeFirstStep=4.0
deltaZ=15.0

[HookView]
MouseLeft=Len

[HookView Config]
AzimutSpeed=0.1
TangageSpeed=0.1
LenSpeed=1.0
MinLen=1.0
DefaultLen=20.0
MaxLen=3000.0
Speed=6

[HotKey builder]
...

[MouseXYZ]
...

[MouseXYZ Config]
...

[HotKey Console]
...

[sound]
...

[rts]
ProcessAffinityMask=2
mouseUse=2
joyUse=1
trackIRUse=1
DisableIME=0
locale=

[rts_mouse]
...

[rts_joystick]
...



[Render_DirectX]
TexQual=3
TexMipFilter=2
TexCompress=0
TexFlags.UseDither=1
TexFlags.UseAlpha=0
TexFlags.UseIndex=0
TexFlags.PolygonStipple=1
TexFlags.UseClampedSprites=0
TexFlags.DrawLandByTriangles=1
TexFlags.UseVertexArrays=1
TexFlags.DisableAPIExtensions=0
TexFlags.ARBMultitextureExt=1
TexFlags.TexEnvCombineExt=1
TexFlags.SecondaryColorExt=1
TexFlags.VertexArrayExt=1
TexFlags.ClipHintExt=0
TexFlags.UsePaletteExt=0
TexFlags.TexAnisotropicExt=0
TexFlags.TexCompressARBExt=1
TexFlags.TexEnvCombine4NV=0
TexFlags.TexEnvCombineDot3=0
TexFlags.DepthClampNV=0
TexFlags.SeparateSpecular=0
TexFlags.TextureShaderNV=0

HardwareShaders=0

Shadows=2
Specular=2
SpecularLight=2
DiffuseLight=2
DynamicalLights=1
MeshDetail=2
VisibilityDistance=3

Sky=2
Forest=2
LandShading=3
LandDetails=2

LandGeom=3
TexLarge=1
TexLandQual=3
TexLandLarge=1

VideoSetupId=4
ForceShaders1x=0
PolygonOffsetFactor=-0.15
PolygonOffsetUnits=-3.0

[Render_OpenGL]
TexQual=3
TexMipFilter=3
TexCompress=0
TexFlags.UseDither=1
TexFlags.UseAlpha=0
TexFlags.UseIndex=0
TexFlags.PolygonStipple=0
TexFlags.UseClampedSprites=0
TexFlags.DrawLandByTriangles=1
TexFlags.UseVertexArrays=1
TexFlags.DisableAPIExtensions=0
TexFlags.ARBMultitextureExt=1
TexFlags.TexEnvCombineExt=1
TexFlags.SecondaryColorExt=1
TexFlags.VertexArrayExt=1
TexFlags.ClipHintExt=0
TexFlags.UsePaletteExt=0
TexFlags.TexAnisotropicExt=1
TexFlags.TexCompressARBExt=0

TexFlags.TexEnvCombine4NV=1
TexFlags.TexEnvCombineDot3=1
TexFlags.DepthClampNV=1
TexFlags.SeparateSpecular=1
TexFlags.TextureShaderNV=1

HardwareShaders=1

Shadows=2
Specular=2
SpecularLight=2
DiffuseLight=2
DynamicalLights=1
MeshDetail=2
VisibilityDistance=3

Sky=2
Forest=3
LandShading=3
LandDetails=2
LandGeom=3
TexLarge=1
TexLandQual=3
TexLandLarge=1

VideoSetupId=17
Water=4
Effects=1
ForceShaders1x=0


PolygonOffsetFactor=-0.15
PolygonOffsetUnits=-3.0

[DGen]

...

MD_Titus 12-05-2010 04:43 PM

put AA and AF at x16 in the nvidia control panel, and have it set to override application settings.

also, soomed out view isn't actually representative of correct field of view, i believe that fov35 is most representative.

zaelu 12-05-2010 06:05 PM

Thank you for your answer Titus, I will try those settings.

Also, regarding the FOV... I observed that as FOV increases the filtering get's worse... I would expect it would stay the same for the whole game no mater the zoom/FOV setting.

True... I have an enlarged FOV to 106° (max) through an external mean to fit the view on my 16/9 monitor. same thing I think happens for triple head view users that are "officially" supported.

Les 12-06-2010 04:34 PM

I get the same aliasing effect on the cockpit gauges in wide angle view, and with the little plane icon on the map.

I'm using a GTX285 with 16xAF & 8xQAA at the moment, but the image has always been like that as far as I can rememeber, with other cards and settings too. Tried 16xAA and it didn't make any difference.

If you zoom in on the gauges and look at where a white needle or pointer crosses over another white marking you can see a black edge to it that's aliased even in the closest zoomed in view. This doesn't get corrected when you go into a wider view, and so the dials and number just become messed up. I don't think there's a video-setting that can correct it, it's just that the dials themselves are made with too low a resolution.

If you memorize roughly where the needles and pointers should be pointing, you can still guess your speed and altitude etc. while in wide view without actually being able to read the numbers. When I want to see them in more detail, I just zoom in and tell myself it's like leaning forward in the cockpit to look closer.

Hopefully BOB will have all these guages and dials and pointers made with a higher resolution so we don't have to do that anymore. They should just get smaller but still be readable using a wider angle view, not get smaller and then distorted because of their original blockiness.

At the same time, compromises have to be made and there is a limit to how readable these things can be when depicted on a computer monitors screen. When using the widest angle view, you really should be using a projector to blow the image up to life-size scale. If not, it's actually the compressing of the size of the image down to fit onto your monitor that makes things hard to read/see.

I actually tested out IL-2 on a projector once, measuring the cockpit gauges so that they they were life-size when using wide-angle view and placed the same distance from my seating position that they would be in real life. It was @#@%ing amazing. But! Everything was too blurry when blown up like that, because of the low resoution of the projector, and the low resolution of the image itself as described above, so...

Until many many years from now when the in-game art and the means of viewing it have improved enough, I guess we're stuck with using narrower fields of view and/or zooming in a lot.

EJGr.Ost_Caspar 12-07-2010 12:47 PM

You need to set AA-mode to supersampling and use either 8x or higher, or SSAA won't work with newer Nvidia cards. Before the 8800 series and respectivly drivers came out, SSAA did work on lower AA settings too. No idea, why Nvidia changed that.

You can get better results (more options than normal Forceware driver menue) with a nice tool, called 'nHancer'.
Also Rivatuner could show more options.

Les 12-07-2010 11:54 PM

Quote:

Originally Posted by EJGr.Ost_Caspar (Post 202965)
You need to set AA-mode to supersampling and use either 8x or higher, or SSAA won't work with newer Nvidia cards...

You can get better results (more options than normal Forceware driver menue) with a nice tool, called 'nHancer'.
Also Rivatuner could show more options.

I was going to mention 'nHancer' myself as I already use it and can recommend it. Just had a look at the supersampling options in the main AA section though, and it says it only works for directX applications, and the highest setting was 4x4.

I do already have supersampling ticked in the Transparency AA section though, with 8xQ multisampling in the main Anti-aliasing options. No luck with that.

Flanker35M 12-08-2010 05:09 AM

S!

nHancer is pretty much discontinued. Nvidia Inspector is a new tool done by a guy that has a lot of options to tweak things. For example Rage3D or Guru3D have the links to it, worth giving a try. I am still tweaking IL-2 to run on the 580GTX ;)

julian265 12-08-2010 06:41 AM

I always had trouble reading the A20's gauges in wide view mode, with both 4870 and 9800GTX+. I never used much AA though, by preference.

zaelu 12-08-2010 08:51 AM

What I noticed is that high rez gauges (those from mod packs for example) have same or even worse filtering effect. For example the FW with 1024x1024 texture size in every gauge is worse than that with 512. Cause instead of filtering when doing a downsize is making simple resizing with interpolation.

It seems to be from filtering and not antialiasing. If is antialiasing is the transparency antialiasing that I believe doesn't work more than multisampling in IL-2... IRC.

JAMF 12-08-2010 05:22 PM

Quote:

Originally Posted by zaelu (Post 203142)
It seems to be from filtering and not antialiasing.

IIRC the dials have a filtering type assigned to them. People complained about the shimmering and readability of some of the dials, so someone changed something to (activate?) mipmapping.

EJGr.Ost_Caspar 12-08-2010 06:16 PM

Quote:

Originally Posted by Les (Post 203096)
Just had a look at the supersampling options in the main AA section though, and it says it only works for directX applications, and the highest setting was 4x4.

I do already have supersampling ticked in the Transparency AA section though, with 8xQ multisampling in the main Anti-aliasing options. No luck with that.

Use 'Multisampling/Supersampling combined'. I cannot name it correctly now, as I do not have it installed currently.


EDIT: with combined, you can even antialiase the river edges (flickering).

EJGr.Ost_Caspar 12-08-2010 06:19 PM

Quote:

Originally Posted by Flanker35M (Post 203117)
S!

nHancer is pretty much discontinued. Nvidia Inspector is a new tool done by a guy that has a lot of options to tweak things. For example Rage3D or Guru3D have the links to it, worth giving a try.

I will. Too bad, nHancer is getting lost.

zaelu 12-09-2010 08:42 AM

how is possible tu use them combined? in my driver they are on a drop down list... is either one or the other.

with a tool?

Flanker35M 12-09-2010 08:45 AM

S!

I think Caspar meant the nHancer tool where you can do this. On NV control panel you can not do this.

Les 12-09-2010 05:52 PM

Thanks for the tips guys.

I downloaded NVIDIA Inspector 1.9.4.2.

Tried a lot of different settings and found IL-2 wouldn't load up to the menu screen a lot of times, it'd just flash Il-2's main menu then crash back to desktop and I'd have to use Windows Task Manager to shut it down. Sometimes on repeated tries the settings would stick and sometimes they wouldn't. I don't know why, but I've seen that sort of thing before when adjusting driver settings so I just put it down to the temperamental nature of such things. I wouldn't blame it on the 'NVIDIA Inspector' program itself, which I found to be a good program, well set out and easy to use, with lots of settings available to adjust. I'll still keep 'nHancer' installed as it has some other features I might use, but 'NVIDIA Inspector' is definitely a keeper.

In terms of the settings themselves, changing the Antialiasing setting to '8xSQ [Combined: 2x2 SS + 2x MS]' was enough to practically eliminate the jaggies on the cockpit instrument dials, while still giving me about 40-50fps looking at the panel, and 30-40fps looking around outside the plane.

However, with a GTX285 and using my preferred in-game settings, my frame-rate drops to the mid-teens over the more graphically demanding terrain (eg. over palm trees on the Pacific Islands QMB map). So, I'll probably just stick to jaggy old 8xQ AA and getting 40-60fps everywhere. I couldn't find a lower setting or combination of settings than '8xSQ [Combined: 2x2 SS + 2x MS]' that would fix the aliasing on the cockpit dials.

Anyway, thanks again, now I've got a way to get higher quality screenshots, and another way to justify upgrading my video-card (damn it :grin:).

EJGr.Ost_Caspar 12-09-2010 07:03 PM

Yes, I meant nHancer. But Nvidia Inspector can do it just as fine... but only with latest drivers. Thanks again for that suggestion!

@Les... I have an 9800GT, but I get the same framerates as you with 8xS. But I use stock game, so maybe any mods influence framerate? BTW, I use to set Anisotrophic filtering to OFF, as I do not see such a big impact on eyecandy like with Antialiasing. So I grab a few more frames.

zaelu 12-09-2010 10:54 PM

Quote:

Originally Posted by Les (Post 203407)
Thanks for the tips guys.

...
Tried a lot of different settings and found IL-2 wouldn't load up to the menu screen a lot of times, it'd just flash Il-2's main menu then crash back to desktop and I'd have to use Windows Task Manager to shut it down. Sometimes on repeated tries the settings would stick and sometimes they wouldn't. I don't know why, but I've seen that sort of thing before when adjusting driver settings so I just put it down to the temperamental nature of such things. I wouldn't blame it on the 'NVIDIA Inspector' program itself, ...

Hm... I had a lot of similar problems lately and I didn't used the "inspector". I guess there is a relation between tweaking the video driver and the IL-2 suddenly failing to start.

I will investigate. I have some starting points.

Les 12-10-2010 01:06 AM

Quote:

Originally Posted by EJGr.Ost_Caspar (Post 203424)
...@Les... I have an 9800GT, but I get the same framerates as you with 8xS. But I use stock game, so maybe any mods influence framerate? BTW, I use to set Anisotrophic filtering to OFF, as I do not see such a big impact on eyecandy like with Antialiasing. So I grab a few more frames.

No mods, using the GeForce 260.99 WHQL drivers.

I usually have Anisotropic filtering on and set to 16X because it's frame-rate impact is minimal and it sharpens up the grass runways to one consistent level. Without it I'd look down the runway and there'd be a solid block of softened grass textures up ahead, moving away from me as I approached it, or towards me as I moved away from it. Thing is, that effect seems to be greatly reduced now anyway with Antialiasing set to '8xSQ [Combined: 2x2 SS + 2x MS]'. It's still there as I come in to land on the runway, but I think I can put up with it.

Anyway, I went back and turned off Anisotropic filtering altogether just to have a look, and pretty much got my normal frame-rates back! In some places that added up to about 20fps regained (from 17fps to 38fps)!

But just as much as turning off the Anisotropic filtering helped boost framerates, in one case (in the Hurricane), turning off the mirrors gave me up to 20(!) more fps. I'm sure they, Anisotropic and mirrors, never used to have that much of an impact just using 8xQ Multisampling.

Whatever the case, for me, it's worth losing the mirrors and Anisotropic filtering just to have anti-aliasing working on the cockpit gauges, while still getting playable frame-rates over stuff like palm trees on the islands. The mirrors were just ornamental and I see much more of the cockpit gauges than I do of the things Anisotropic filtering now effects.

I did some of my testing in the F4U and the difference in the way the gauges look without all the jaggies is huge. There is still some minor aliasing going on, but there's no going back from here. For me, this kind of improvement in image quality ranks right up there with the way IL-2 Mat replaces the default aircraft insignia with better looking ones. This info should be stickied somewhere and made common knowledge for all.

I've got to say again though, it's an absolute pain in the arse trying to get these setting changes to stick sometimes. I couldn't even Alt+Tab out of the game and get back into it again, Il-2 would just flash up then crash back to desk-top again and refuse to respond to normal closing down.

I do seem to be able to exit and restart, and Alt+Tab in and out of it as normal now though, as long as I don't adjust anything inbetween. So I seem to be set up okay.

Thanks again, Il-2's never looked better.

EJGr.Ost_Caspar 12-10-2010 07:25 AM

Quote:

Originally Posted by Les (Post 203470)
Without it I'd look down the runway and there'd be a solid block of softened grass textures up ahead, moving away from me as I approached it, or towards me as I moved away from it.

Never saw any difference there - I just thought, that it was normal like that.
Will try to change it.


Quote:


But just as much as turning off the Anisotropic filtering helped boost framerates, in one case (in the Hurricane), turning off the mirrors gave me up to 20(!) more fps. I'm sure they, Anisotropic and mirrors, never used to have that much of an impact just using 8xQ Multisampling.
Thats quite natural. Mirrors have been always a 'fps-drag queen' on my systems. Also AA makes heaviest framerates dropping at places with transparent objects, especially with many layers of transp. objects (like clouds, smoke etc.) You can have 50fps normal, but when a plane in front of you is starting, frames drop to 15fps! I always have to wait untill the dust is settled in front of me. :rolleyes:


Quote:


I've got to say again though, it's an absolute pain in the arse trying to get these setting changes to stick sometimes. I couldn't even Alt+Tab out of the game and get back into it again, Il-2 would just flash up then crash back to desk-top again and refuse to respond to normal closing down.

I do seem to be able to exit and restart, and Alt+Tab in and out of it as normal now though, as long as I don't adjust anything inbetween. So I seem to be set up okay.

IMHO settings shouldn't be changable with the game running anyway, at least it should not have an impact, as the settings get loaded with the application (esp. if you use profiles, but also global).

I'm glad I could help. Tweaking the 'Old Lady' ist still a science, even after 10 years. There was a time before Oleg implemented the 'new clouds', when I could play it on a GeForce 4 with 1024x768 and 16xAA enabled.
It looked smooth as hell. :cool:


All times are GMT. The time now is 05:44 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.