Feature request: Reversed VT level switching

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Feature request: Reversed VT level switching

Post #1by maxim » 29.02.2004, 15:24

The current level switching algorithm for VTs keeps a certain level, until the resolution for the next one has been reached, and then switches to that one. This leads to repeated blur-unblurr views while zooming in.

Reversing this mechanism - keeping a certain level until it's original resolution is reached, and then switching to the next one, initially showing it smaller than original - would widely avoid that blurs and result in much smoother zooms.

maxim :)

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #2by Bob Hegwood » 29.02.2004, 17:39

Maxim,

I don't know if it's of any help or not, but I set the TileSize value (in the CTX file) at 1/2 of the actual tile texture size. I did this at Selden's suggestion, and I have not noticed any of the blurring you mention.

Just a thought... :wink:

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1

Topic author
maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #3by maxim » 29.02.2004, 20:48

Bob,

I haven't tried that yet. It could indeed work, thought that it's not very clean style.


Developers,

If it is so simple, wouldn't it be cleaner then to divide the tile size setting by two inside the code (well documented of course) rather than in the ctx-definition?

maxim :)

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

Post #4by chris » 29.02.2004, 21:10

maxim wrote:BobIf it is so simple, wouldn't it be cleaner then to divide the tile size setting by two inside the code (well documented of course) rather than in the ctx-definition?

It really is that simple . . . In the code, the level of detail is rounded down rather than up, resulting in slightly blurrier but better performing virtual textures. Because rounding the LOD up would result in so many more texture tiles getting loaded, I'm reluctant to change it even though it's more correct. Perhaps there should be a config file setting for virtual texture detail? I'm going to optimize the way that virtual textures are handled in 1.3.3; I'll probably wait until then before I adjust anything.

--Chris

Topic author
maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #5by maxim » 01.03.2004, 18:22

chris,

it would be sufficient for me if I could set it in the config file. ( Did I ever mention that I LOVE config files ;) )

maxim :)


Return to “Development”