Kronos Posted January 9, 2010 Share Posted January 9, 2010 I made a program that generates an 4 colour (rgba) alphamap as a jpg/png. The transitions between the colours are nice and smooth. However when I convert them to dds using Leadwerks tool the transitions are no longer smooth. Using the transformed DDS alphamap for a terrain results in obvious blocking on the terrain surface. This happens whether I use compressed or uncompressed DDS output. Its worse with compression. I have included a before and after in the attached zip. The difference is subtle but when you zoom in on the DDS you can see the blockier look. Just wondering whether the quality of translation could be improved a bit or whether this is a limitation of the DDS format. MARKLEAD_Alpha.zip Quote intel i5 2500k, ram 16gb, nvidia Geforce GTX570, asus xonar sound card. Windows 7 64 bit Link to comment Share on other sites More sharing options...
Canardia Posted January 9, 2010 Share Posted January 9, 2010 I think it's a bug in the DDS converter. When I opened your DDS file in Paint.NET, I could see those 4x4 pixel blocks clearly. Then I did a Gaussian Blur with radius 8 and saved the DDS and reopened it, and the blocks were gone and all was smooth. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
TylerH Posted January 9, 2010 Share Posted January 9, 2010 I always convert via Paint.NET to dds because it has the format drop down box, I can select the error metric, a checkbox to generate mipmaps, it has a preview window, and I can choose to weight the color by the alpha. It is a pretty great program. Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 9, 2010 Share Posted January 9, 2010 It is a pretty great program. That it is, and was in my price range too Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Josh Posted January 10, 2010 Share Posted January 10, 2010 Use uncompressed DDS format. DXTC1 is the worst format you can use. It should never be used. Use DXTC5 for compressed textures. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Kronos Posted January 10, 2010 Author Share Posted January 10, 2010 Josh, Sorry to harp on about this but I don't know how you are getting that result. Here is what I get using uncompressed, save mipmaps options using the texturetool downloaded from the site. Its nowhere near as smooth as your one. Its no biggee I can use other progs for the conversion as mentioned above. aargh..file is too big to upload.. (edit:these files are rather big aren't they:() Quote intel i5 2500k, ram 16gb, nvidia Geforce GTX570, asus xonar sound card. Windows 7 64 bit Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.