|
From: Stuart B. <stu...@gm...> - 2023-12-22 09:51:29
|
Hi Nia, On Thu, Dec 21, 2023 at 11:51 PM merspieler wrote: > Question is now on the resolution. > I didn't run any tests yet and didn't bother making calculations for > resolution either but one thing that immediately came to mind is > which resolution to make the new textures in. > Personally I'd like the best possible result (16k wide textures > possibly) but some may not have that much VRAM or their GPU doesn't > support this big textures and want lower res. > How hard would it be to have textures in different resolutions and load > these depending on settings? > Thanks to the DDS image caching code in simgear/scene/model/ModelRegistry.cxx (kudos Richard Harrison), we should be able to do one better and have FG downsize _any_ texture to a user-configurable maximum size. This looks just it would just require tieing SGSceneFeatures::instance()->setMaxTextureSize() and SGSceneFeatures::instance()->getMaxTextureSize() to appropriate properties and then letting the resizing code in simgear/scene/model/ModelRegistry.cxx lines 428-450 do its stuff. Richard - any reason this wouldn't Just Work? -Stuart |