Antialiasing Problem

General discussion about Celestia that doesn't fit into other forums.
Topic author
Danial
Posts: 33
Joined: 31.03.2008
Age: 45
With us: 16 years 7 months
Location: Gold Coast, Australia

Antialiasing Problem

Post #1by Danial » 23.04.2008, 08:15

I've found that using AA is making no difference at all to Celestia's rendering and was just wondering if anyone knew why this might be. I've created a zoomed-in comparison image as proof:

Comparison.jpg


The image on the left was with AA Off and right is On, and as you can see there is no difference at all.

I'm running v1.5.1 on Vista and have a GeForce 8600M GT video card if that helps solve the problem at all.

revent
Posts: 80
Joined: 15.11.2003
Age: 47
With us: 21 years
Location: Springfield, MO, USA

Re: Antialiasing Problem

Post #2by revent » 23.04.2008, 10:02

It's not a problem with antialiasing, it's that you're looking at something where antialiasing has no effect. Unless you are actually /seeing/ aliasing, antialiasing does nothing. Go look at http://en.wikipedia.org/wiki/Antialiasing

For that matter, your images are so lo-rez that any differnce would be invisible anyway.

Topic author
Danial
Posts: 33
Joined: 31.03.2008
Age: 45
With us: 16 years 7 months
Location: Gold Coast, Australia

Re: Antialiasing Problem

Post #3by Danial » 23.04.2008, 10:06

Shouldn't the edge of the sphere be "softened" with antialiasing? That's what it does in other programs.

EDIT: Looking at that Wiki link, I was actually thinking of MSAA as opposed to just AA.

So if it doesn't remove jagged edges from objects in Celestia, what exactly does it do? And also, is it possible to enable MSAA in Celestia?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Antialiasing Problem

Post #4by selden » 23.04.2008, 10:22

Which anti-aliasing are you talking about?

Celestia implements it in two different environments.

The anti-aliasing entry (Ctrl-X) in the Render pulldown menu only affects orbital paths. It does nothing for the edges of spheres.

The entry in celestia.cfg controls full-screen anti-aliasing.
AntialiasingSamples 4
You have to delete the # at the beginning of its line to enable it. It affects everything, but only if you've enabled application controlled anti-aliasing in your grahics driver's Display Properties.
Selden

Topic author
Danial
Posts: 33
Joined: 31.03.2008
Age: 45
With us: 16 years 7 months
Location: Gold Coast, Australia

Re: Antialiasing Problem

Post #5by Danial » 23.04.2008, 10:32

Mine is set to '4', but to my eyes, the Earth sphere in the sample I posted isn't smoothed. Can I go higher than 4?

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: Antialiasing Problem

Post #6by cartrite » 23.04.2008, 10:40

Danial wrote:Mine is set to '4', but to my eyes, the Earth sphere in the sample I posted isn't smoothed. Can I go higher than 4?
As high as your card allows. This can cause the fps to drop though.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

revent
Posts: 80
Joined: 15.11.2003
Age: 47
With us: 21 years
Location: Springfield, MO, USA

Re: Antialiasing Problem

Post #7by revent » 23.04.2008, 11:11

Make sure you have enabled mipmapping and anisotropic filtering also.

BTW, blurring the edges of objects is really only a side effect of antialiasing. When you really need it is if you're seeing odd-looking moire patterns in the middle of a object that aren't in the texture.

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: Antialiasing Problem

Post #8by danielj » 23.04.2008, 15:16

It?s not really necessary to change celestia.cfg.
You can simply put the AA to 2X,4X or more in Nvidia Control Panel.To me,it always works.But for me,AA bigger than 4X causes a major dip in perfomance,so I rarely use.With a 8600 GT,MAYBE you can use 8X.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Antialiasing Problem

Post #9by chris » 23.04.2008, 16:19

Danial wrote:Mine is set to '4', but to my eyes, the Earth sphere in the sample I posted isn't smoothed. Can I go higher than 4?

You should be able to go up to 8x (possibly 16x) on a GeForce 8600M. But, it looks like even 4x isn't working. Did you uncomment the AntialiasingSamples line in celestia.cfg? As Selden mentioned, you need to delete the # at the beginning of the line.

--Chris

Topic author
Danial
Posts: 33
Joined: 31.03.2008
Age: 45
With us: 16 years 7 months
Location: Gold Coast, Australia

Re: Antialiasing Problem

Post #10by Danial » 23.04.2008, 22:44

I haven't changed anything in the cfg file because when I open it in Notepad it open as one large mass of text (no line-breaks) so I can't tell where the AA line starts/ends.

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Antialiasing Problem

Post #11by BobHegwood » 23.04.2008, 22:52

Danial wrote:I haven't changed anything in the cfg file because when I open it in Notepad it open as one large mass of text (no line-breaks) so I can't tell where the AA line starts/ends.

Danial,

Try using Notepad2... You can get it free of charge by clicking HERE.
Hope that helps. You can also use Wordpad if you are on Windows. Thanks, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Antialiasing Problem

Post #12by selden » 24.04.2008, 00:28

or you can use WordPad
Selden

revent
Posts: 80
Joined: 15.11.2003
Age: 47
With us: 21 years
Location: Springfield, MO, USA

Re: Antialiasing Problem

Post #13by revent » 25.04.2008, 06:29

Easiest it to open the file once in Wordpad, then immediately save it with no changes. That way, next time you doubleclick on the file (and it opens in Notepad) it will be correct in Notepad.

Kolano
Posts: 125
Joined: 15.02.2005
With us: 19 years 9 months
Location: New Jersey

Re: Antialiasing Problem

Post #14by Kolano » 26.04.2008, 02:38

Question for those suggesting the use of the Nvidia Control Panel to enable AA.

Doesn't this result in all the fonts in Celestia being oddly cropped?
System:
Asus A8N-SLI Premium nForce4 SLI
AMD Athlon 64 X2 4200+
2xeVGA GeForce 7800 GTX 256MB
2gb Dual Channel DDR (400) 3200

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 3 months
Location: Brittany, close to the Ocean

Re: Antialiasing Problem

Post #15by Boux » 29.04.2008, 18:27

There is a very good and recognized tool to get full control of most 3D app.
Try Nhancer http://www.nhancer.com/
Just create a dedicated profile for celestia.exe and tweak all possible settings to your liking, including AA, AF, SLI rendering method, just set what you are looking for.
The profile will override the driver's control panel settings.
There is a design limitation in Celestia though as someone pointed out.
Too much anti-aliasing corrupts the HUD font rendering and can make the HUD text ugly and close to unlegible.
HUD text overlay should be made independent from scene rendering in the code. Basic stuff if you ask me.
Intel core i7 3770 Ivy Bridge @ 4.4 GHz -16 GB ram - 128 GB SSD cache - AMD Radeon 7970 3 GB o'clocked - Windows 7 64 Ultimate / Linux Kubuntu

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Antialiasing Problem

Post #16by chris » 29.04.2008, 18:46

Boux wrote:There is a very good and recognized tool to get full control of most 3D app.
Try Nhancer http://www.nhancer.com/
Just create a dedicated profile for celestia.exe and tweak all possible settings to your liking, including AA, AF, SLI rendering method, just set what you are looking for.
The profile will override the driver's control panel settings.
There is a design limitation in Celestia though as someone pointed out.
Too much anti-aliasing corrupts the HUD font rendering and can make the HUD text ugly and close to unlegible.
HUD text overlay should be made independent from scene rendering in the code. Basic stuff if you ask me.

At what level of antialiasing do you begin to see troubles with font rendering?

--Chris

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Re: Antialiasing Problem

Post #17by Adirondack » 02.05.2008, 08:48

With 6600GT: 8
Font rendering is still readable but looks ugly though.

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Avatar
fsgregs
Posts: 1307
Joined: 07.10.2002
With us: 22 years 1 month
Location: Manassas, VA

Re: Antialiasing Problem

Post #18by fsgregs » 06.05.2008, 23:57

Boux:

Try Nhancer http://www.nhancer.com/
Just create a dedicated profile for celestia.exe and tweak all possible settings to your liking, including AA, AF, SLI rendering method, just set what you are looking for.

I would like to do this with my 3600 GT card. Would you be willing to share what the recommended "tweaks" should be? I have no idea what mipmapping is, or what the settings should be for Celestia, etc. I would be happy to use your recommended settings for maximizing Celestia's performance on Nvidia cards. :)

Would it be difficult to post them, or direct us to some place where the best settings are recommended?

Thanks

Frank

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Antialiasing Problem

Post #19by chris » 07.05.2008, 00:31

Adirondack wrote:With 6600GT: 8
Font rendering is still readable but looks ugly though.

Adirondack

I think this may be due to the way 8x antialiasing is done on the 6600: instead of just multisampling, I believe that the 6600 uses a combination of 2x supersampling and 4x multisampling. I'll have to look into this more and see if there's a workaround. It may be possible to make the text looking better by fine-tuning the subpixel offset for text.

--Chris

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 3 months
Location: Brittany, close to the Ocean

Re: Antialiasing Problem

Post #20by Boux » 07.05.2008, 17:08

fsgregs wrote:Boux:

Try Nhancer http://www.nhancer.com/
Just create a dedicated profile for celestia.exe and tweak all possible settings to your liking, including AA, AF, SLI rendering method, just set what you are looking for.

I would like to do this with my 3600 GT card. Would you be willing to share what the recommended "tweaks" should be? I have no idea what mipmapping is, or what the settings should be for Celestia, etc. I would be happy to use your recommended settings for maximizing Celestia's performance on Nvidia cards. :)

Would it be difficult to post them, or direct us to some place where the best settings are recommended?

Thanks

Frank

Hi, Frank,
Try this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<FILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <INFO Number="0" Version="3" />
   <PROFILESET>
      <PROFILE Label="celestia.exe">
         <APPLICATION Label="celestia.exe" />
         <PROPERTY Label="aa_default" Value="0x00000027" Default="0x00000000" />
         <PROPERTY Label="aa_selector" Value="0x10000000" Default="0x00000000" />
         <PROPERTY Label="af_default" Value="0x00000010" Default="0x00000001" />
         <PROPERTY Label="aniso_selector" Value="0x10000000" Default="0x00000000" />
         <PROPERTY Label="vsync_default" Value="0x60925292" Default="0x60925292" />
         <PROPERTY Label="triple_buffering" Value="0x00000001" Default="0x00000000" />
         <PROPERTY Label="image_settings" Value="0xFFFFFFF6" Default="0x00000000" />
         <PROPERTY Label="trilinear_optimization" Value="0x00000001" Default="0x00000000" />
         <PROPERTY Label="aniso_optimization" Value="0x00000000" Default="0x00000000" />
         <PROPERTY Label="aniso_sample_optimization" Value="0x00000000" Default="0x00000000" />
         <PROPERTY Label="conformant_texture_clamp" Value="0x00000000" Default="0x00000000" />
         <PROPERTY Label="multi_cpu" Value="0x00000001" Default="0x00000001" />
         <PROPERTY Label="multi_mon_config" Value="0x00000000" Default="0x00000003" />
         <Manual>False</Manual>
         <Customized>True</Customized>
         <Shadowed>False</Shadowed>
      </PROFILE>
   </PROFILESET>
</FILE>


This is a profile for a very good rendering.
Copy/paste the XML code in an editor and save as "celestia.nhprofile" then open nhancer and import the profile.
It will be immediately applied and visible in the various options.
From there you will be able to adjust the settings individually.

Note to Chris: sorry for being late for replying, I have been away for the last ten days.
From 16x and up, the overlay fonts starts to blur and look dirty (9800GX2 and 174.74 drivers on Vista 64).
BTW, and this is good news, there is no longer any font blurring with the latest Nvidia beta drivers in Linux.
Intel core i7 3770 Ivy Bridge @ 4.4 GHz -16 GB ram - 128 GB SSD cache - AMD Radeon 7970 3 GB o'clocked - Windows 7 64 Ultimate / Linux Kubuntu


Return to “Celestia Users”