Falcon BMS Forum
    • Register
    • Login
    • Search
    • Categories
    • Unread
    • Recent
    • Unsolved
    • Popular
    • Website
    • Wiki
    • Discord

    Saving DDS - proper settings

    Community Mods & Tools
    8
    17
    615
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JanHas
      JanHas last edited by

      From time to time I get questions about saving in dds and seeing skins saved with wrong settings I thought it was time for a simple example.
      By the way, you can get the Nvidia dds tools on their website. https://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop
      Maybe we can make this thread sticky…?

      1 Reply Last reply Reply Quote 0
      • Arty
        Arty last edited by

        In OPTION 2 what does the
        transparency but a hard pixel fill/empty pixel
        mean???

        (Grey/white=empty pixels=transparency in sim) I thought it was the opposite… Grey=semitransparent white=no transparency Black=transparent - empty.
        l

        Edit: disregard what I wrote above. :lol: probably too hungry when I read Jan’s post and the brain was not having enough energy. :rofl:

        HOT LISTalt text

        System Specs:

        i7-2600K @ 4.8 Ghz WaterCooled / 16GB Ram. 128GB SSD/1TB SSD / GTX980Ti 6GB DDR5 / HOTAS COUGAR. TrackIR 4 / 3x24" Mon. (res:5760x1200) / Cougar MFD's / Wheel Pedals / Win 10 64 bit.

        alt text

        JanHas 1 Reply Last reply Reply Quote 0
        • JanHas
          JanHas @Arty last edited by

          @Arty:

          In OPTION 2 what does the
          transparency but a hard pixel fill/empty pixel
          mean???

          (Grey/white=empty pixels=transparency in sim) I thought it was the opposite… Grey=semitransparent white=no transparency Black=transparent - empty.
          l

          Option 2 - You have a pixel that is 100% filled (100% opacity). With brushes you can decrease the opacity but then you need to save in DXT5. If you save it in DXT3 the pixel will be made 100% or 0% opacity in the dds -> pixelated edge result. With DXT5 saving with a value between 0 and 100% become possible = soft edge. So with DXT3 you have either used 100% or 0% opacity. If not, dxt5.

          Grey/White background in Photoshop means no filled background. (White background = filled with color white = non transparent).

          biker 1 Reply Last reply Reply Quote 0
          • biker
            biker @JanHas last edited by

            Hi Jan,

            @JanHas:

            Option 2 - You have a pixel that is 100% filled (100% opacity). With brushes you can decrease the opacity but then you need to save in DXT5. If you save it in DXT3 the pixel will be made 100% or 0% opacity in the dds -> pixelated edge result. With DXT5 saving with a value between 0 and 100% become possible = soft edge. So with DXT3 you have either used 100% or 0% opacity. If not, dxt5.

            that information is wrong!

            With DXT1 you have 100% or 0% opacity (per pixel).
            With DXT3 you can have values between 0% and 100% for alpha, but the values are not interpolated between pixels.
            With DXT5 you have intepolated values betwenn 0% and 100% of alpha.

            You can easily check *.dds files in BMS DB, which are DXT1 but have opacity also (e.g. 3977.dds or 578.dds) with NVIDIA texture viewer:
            http://www.nvidia.de/object/windows_texture_viewer.html

            We have quite some textures in DB which are DXT3 or DXT5 for no reason, so please don’t spread such wrong information!

            Cheers
            Biker

            P 1 Reply Last reply Reply Quote 0
            • P
              PALUX @biker last edited by

              Hello, when i am saving a .dds file which was 4.00 MB before its now 5.33 MB (DXT3). I guess some settings are not correct? i use the newest version of the nvidia dds tool with your settings as far as i can get them from your screenshot. The new GUI looks a bit different.

              Planehazza lazystone 2 Replies Last reply Reply Quote 0
              • Planehazza
                Planehazza @PALUX last edited by

                @PALUX:

                Hello, when i am saving a .dds file which was 4.00 MB before its now 5.33 MB (DXT3). I guess some settings are not correct? i use the newest version of the nvidia dds tool with your settings as far as i can get them from your screenshot. The new GUI looks a bit different.

                Alpha channels and MipMaps accounted for?

                Harry (Formerly Amraam at Frugals etc.)

                (I'm not currently active with ViperDrivers, but these guys are the best BMS school out there!)

                BMS Reshade Preset

                1 Reply Last reply Reply Quote 0
                • lazystone
                  lazystone @PALUX last edited by

                  My guess is that you’ve saved your new .dds file with mipmaps,
                  where the old one was saved without mipmaps.

                  Cheers, :yo:
                  LS

                  my Rig:
                  Alienware "Aurora" I7-960 3,2 GHz / 18 GB DDR3 / GeForce 1070 GTX 8GB /
                  1x500 GB SSD / 1x2 TB SATA II (1x1,5 TB SATA II for backup)
                  Hotas Cougar Nr.:16387 / FCC-3 / Elite Rudder pedals / TrackIR4 / Win10 x64 Home

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    PALUX @lazystone last edited by

                    Thank you guys!
                    Correct, it was saved without mipmaps, now its correctly 4.00MB

                    Download link for the glare MFDs, if someone is interested (8005.dds goes into …\Falcon BMS 4.33 U1\Data\Terrdata\objects\KoreaObj): https://files.fm/u/rtbpnftw

                    Arty 1 Reply Last reply Reply Quote 0
                    • Arty
                      Arty @PALUX last edited by

                      mipmaps are a must… eases the gfx usage and memory usage.

                      LMAO on my previous post. :rofl:

                      HOT LISTalt text

                      System Specs:

                      i7-2600K @ 4.8 Ghz WaterCooled / 16GB Ram. 128GB SSD/1TB SSD / GTX980Ti 6GB DDR5 / HOTAS COUGAR. TrackIR 4 / 3x24" Mon. (res:5760x1200) / Cougar MFD's / Wheel Pedals / Win 10 64 bit.

                      alt text

                      P I-Hawk 2 Replies Last reply Reply Quote 0
                      • P
                        PALUX @Arty last edited by

                        If mipmaps are a must, why are the bms cockpit .dds files without mipmaps? I am just curious.

                        Arty 1 Reply Last reply Reply Quote 0
                        • Arty
                          Arty @PALUX last edited by

                          cause the cockpit actually doesn’t need mipmaps u are very close compared to a tank that can be from few feet to some xx.xxx ft away.

                          HOT LISTalt text

                          System Specs:

                          i7-2600K @ 4.8 Ghz WaterCooled / 16GB Ram. 128GB SSD/1TB SSD / GTX980Ti 6GB DDR5 / HOTAS COUGAR. TrackIR 4 / 3x24" Mon. (res:5760x1200) / Cougar MFD's / Wheel Pedals / Win 10 64 bit.

                          alt text

                          1 Reply Last reply Reply Quote 0
                          • I-Hawk
                            I-Hawk @Arty last edited by

                            @Arty:

                            mipmaps are a must… eases the gfx usage and memory usage.

                            Yes, textures sampling is probably the most expensive single operation that the GPU does in a shader, as memory bandwidth didn’t advanced so much compared to computation power. When you have texture with mipmaps then you:
                            1. Have better rendering at distance as the texture will not need to be downscaled so much when a pixel is far away - Otherwise without mipmaps at distance shimmering may be seen.
                            2. Ease on sampling operation - As the GPU can inside the pixel shader (And ONLY there) tell how much screen space is covered by a given pixel and use the best mipmap level accordingly. This way distanced pixels use lower mipmaps for faster sampling.

                            However, generally mipmaps have no effect on memory. As when the GPU needs a texture, it’s loaded to VRAM as-is (i.e full texture with the mipmap chain), because at load time the GPU has no way to know where the texture will be needed and what mipmap levels will be necessary (e.g a F-16 model 3 feet from you will use the same textures as the same model 10NM out, but mipmap levels will be different).
                            That said, for some advanced engines which manage a kind of smart “texture LODing”, the engine can tell which distance will be used for the texture and then load only the appropriate mipmap level, then when geometry get closer, a bigger mipmap is loaded. But this is the exception, usually mipmaps are used in the general manner and by the pixel shader only.

                            As a general rule:
                            ALL textures in Falcon MUST have mipmaps.
                            The exception are indeed cockpit textures which with mipmaps may be downscaled unnecessarily by the GPU (Where actually in the cockpit we need the extra details)

                            I-Hawk 1 Reply Last reply Reply Quote 0
                            • I-Hawk
                              I-Hawk @I-Hawk last edited by

                              As for the main topic:
                              Regular skins –> DXT1 ONLY
                              Transparency textures --> DXT5

                              I think DXT3 isn’t needed and all urban legends that used to run around about DXT3 has better look on skins than DXT1 are nothing but the placebo effect. RGB data of DXT5 and DXT3 are EXACTLY same as DXT1 and the only difference between the three is about the Alpha channel.

                              Lukas 1 Reply Last reply Reply Quote 0
                              • Lukas
                                Lukas @I-Hawk last edited by

                                Is it possible to make pixels hard ? (I mean no interpolation among opaque pixels, I am not talking about tranparent layer)

                                I-Hawk 1 Reply Last reply Reply Quote 0
                                • I-Hawk
                                  I-Hawk @Lukas last edited by

                                  @Lukas:

                                  Is it possible to make pixels hard ? (I mean no interpolation among opaque pixels, I am not talking about tranparent layer)

                                  If I understand correctly you want a hard “stairway” like behavior? if yes then sure it can be done but it’s not under responsibility of the texture, texture is just the data, it’s the responsibility of the rendering engine to decide how to use that data. Setting a sampler state to POINT sampling will give just that, no interpolation. Usually art textures use interpolation to smooth colors so normally such textures will be sampled by a linear or anisotrophic sampler state.

                                  Lukas 1 Reply Last reply Reply Quote 0
                                  • Lukas
                                    Lukas @I-Hawk last edited by

                                    Yes, I mean stairway appearance (right image).

                                    I tested many VRML viewers in the past - they were able to load JPG, PNG and GIF textures.
                                    If JPG or PNG loaded, I had blended edges. If GIF texture used, the result was sharp edges.
                                    I was able to mix blended terrain textures with sharp bilding textures in one scene.

                                    So I am interested, if it is possible in BMS as well.

                                    I-Hawk 1 Reply Last reply Reply Quote 0
                                    • I-Hawk
                                      I-Hawk @Lukas last edited by

                                      @Lukas:

                                      Yes, I mean stairway appearance (right image).

                                      I tested many VRML viewers in the past - they were able to load JPG, PNG and GIF textures.
                                      If JPG or PNG loaded, I had blended edges. If GIF texture used, the result was sharp edges.
                                      I was able to mix blended terrain textures with sharp bilding textures in one scene.

                                      Must be then some sort of viewer/renderer settings (i.e maybe the SW reading the images has specific instructions per image type?). Again, eventually a texture is just data, some textures don’t even save color values at all (e.g normal maps or displacement/Height maps). So there is data and the way you interpret it depends totally on the renderer.

                                      So I am interested, if it is possible in BMS as well.

                                      No it’s not. The terrain just tile textures on the surface using Linear/Aniso sampler settings, in order to get an additional layer on top of those textures will mean new code that will take care of that (e.g this could have been done by creating such “buildings” image with transparency around the buildings and then using that texture over some existing terrain textures when appropriate).

                                      I really hope though that future will allow us to not count on textures for buildings.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      44
                                      Online

                                      10.7k
                                      Users

                                      21.1k
                                      Topics

                                      349.2k
                                      Posts

                                      Benchmark Sims - All rights reserved ©