Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Problem with edited terrain textures

  1. #1

    Problem with edited terrain textures

    Hi

    I've done some terrain texture tests using DXTbmp, but the result hasn't been satisfactory.

    Here's what I've done:
    I open a default CFS3 city terrain dds texture in DXTbmp and use "Send to editor" - which is PSP in my case - and save it as bmp without doing any changes.
    In DXTbmp I select Export Alpha channel and save it as another bmp.
    Then I open the first bmp in DXTbmp and then select "Import Alpha Channel" and save it as a dds dxt3 file format since DXTbmp shows that the default
    terrain texture was in that format. The "new" dds file looks OK in DXTbmp, exactly the same as the original texture and also the transparency looks
    identical.

    But when I check in CFS3 ETO Expansion the new texture looks like this:

    Attachment 33488

    Close to my plane it looks OK but further away the texture becomes very blurred. In the top of the picture you can se the difference very clearly where the edited texture meets another city texture which is much sharper at that distance.

    I also tested Pat Pattle's BoB city textures and they suffered of the same problem. Very clear close to the plane but very blurred further away.

    Attachment 33489

    What is the reason the textures get that blurry in game? What have I done wrong?
    Please advice!

    Thanks!

    vonOben

  2. #2
    Members + dancat's Avatar
    Join Date
    Apr 2007
    Location
    USA baby!
    Age
    36
    Posts
    353
    mipmaps??

  3. #3
    Hi

    I’m a newbie in CFS3 modding, so please explain more.
    What is mipmaps and what has that to do with an edited texture?

    Cheers
    vonOben

  4. #4
    Charter Member 2011 MajorMagee's Avatar
    Join Date
    Nov 2007
    Location
    Dayton, OH
    Age
    55
    Posts
    673
    Mipmaps are a technique used to reduce the workload on the rendering engine by prerendering a set of reduced size textures that represent the steadily decreasing level of detail required at increasing distances from the viewer. Creating Mipmaps is an option that you can select when you save the dds file and shows up as a stepped down series of the primary texture and doubles the width but not the height of the file.
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  5. #5
    Charter Member 2011 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    49
    Posts
    1,820
    Blog Entries
    1
    Blurry textures are a part of cfs3 how works. There are 'rings' around your viewpoint wherin the level of detail can be set. There are various tweaks around (check the SoH archive) which extend the range of these, you'll need a good pc though.

    Another tweak for general texture detail is here, this works wonders:

    http://www.regshanger.com/Groundcrew...20settings.php

    One other thing is in the mos file itself you can set the mip level, Frosty is your man for this, I've never got my head around it!

    Last but not least, try editing the .dds directly rather than converting which carries the risk of corrupting the image. I use 'Paint dot net' but I thought PSP could do this?

    Keep up the good work Von Oben, it's great to have another modder amongst the ranks
    CFS3 Battle of Britain Website: http://cfs3bob.wix.com/battle-of-britain
    CFS3 Battle of Britain install: http://aussiex.org/forum/index.php?/...tain-for-cfs3/
    CFS3 ACC Member & ETO Expansion Group

  6. #6
    Hi

    I’ve done some more tests now.

    If I save without mipmaps the terrain tile looks sharper.

    If I compare with the original (default CFS3) the file size becomes smaller and the first version with mipmaps was the same size as the original, which indicates that the original file was saved with mipmaps.

    I did the same test with an ETO terrain tile and one of Pat’s BoB terrain tiles, the files without mipmaps become smaller so it seems also ETO and Pat’s BoB files have mipmaps.

    Is it possible to check if a dds has mipmaps?

    If the default terrain tile has mipmaps and looks reasonable sharp and my saved copy of the same terrain tile with mipmaps is much blurrier, could it be something else causing this?

    Since mipmaps are used to increase rendering speed and reduce aliasing artifacts I hesitate not to include them.

    Please enlighten me!

    Thanks!

    Cheers

    vonOben

  7. #7
    Hi Pat

    Quote Originally Posted by Pat Pattle View Post
    Last but not least, try editing the .dds directly rather than converting which carries the risk of corrupting the image. I use 'Paint dot net' but I thought PSP could do this?

    So 'Paint dot net' can open dds files directly and also handle Alpha channel?
    I have PSP 7 and I've used DXTbmp and the "Send to editor" feature.

    Quote Originally Posted by Pat Pattle View Post
    Keep up the good work Von Oben, it's great to have another modder amongst the ranks
    Thanks, but I'm still trying to figure out how things work in CFS3 and I haven't actually achieved much so far.

    Does your BoB city look as blurry as it does on my PC?
    The above screenshot had terrain setting on 4 and I've also tested on 5 but that doesn't make much difference.

    I would be happy if my edited terrain tile had the same sharpness as the original, that look quite OK to me.

    Cheers

    vonOben

  8. #8
    Hi

    Some more tests done!

    I changed all settings according to http://www.regshanger.com/Groundcrew...20settings.php
    But it didn’t make any difference.

    It’s very evident where the first ring is and where the transition to the next mipmap is, probable because the city textures have more details than other terrain tiles where I haven’t noticed this or the blurry problem.

    Pat’s BoB City texture is high res so I don’t understand why it’s so blurry. The default texture is only 512x512, but I still don’t understand why the quality becomes so bad when resaved by DXTbmp.

    Am I doing anything wrong?

    Wrong settings in DXTbmp perhaps?

    Wrong CFS3 config settings?

    Wrong video card settings (Radeon HD 5770, 1GB)?

    Is there a better way of opening, editing and saving dds files with alpha channel and mipmaps?

    Cheers

    vonOben

  9. #9
    Charter Member 2011 MajorMagee's Avatar
    Join Date
    Nov 2007
    Location
    Dayton, OH
    Age
    55
    Posts
    673
    There are a couple of files behind the level of detail rings. If you had been messing with those parameters I might think you just got those too far off from the original for your system, but that would effect all ground textures, not just your modified ones.
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  10. #10
    Hi

    I only modify one thing at the time and what I’ve done is:

    1. Re-save one default city dds tile and test and remove the file before next test.

    2. Testing Pat’s BoB city terrain tile dds files with the corresponding mos files.

    Everything else is default ETO and the default city tiles look OK without any problem.

    Ideas and suggestions to what might be the cause would be very welcome!

    Cheers

    vonOben

  11. #11
    Charter Member 2011 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    49
    Posts
    1,820
    Blog Entries
    1
    Von Oben you have hit upon something here! I've just re-saved all of the city and rural textures in my BoB install without mipmaps. The result is quite clear, the mipmaps create a blurry image. I think it maybe that the lower res textures in them are being stretched over the terrain tile.

    taken at Northolt, 10,000ft clear summer day.

    With mipmaps



    without mipmaps - still not great but definately better.

    CFS3 Battle of Britain Website: http://cfs3bob.wix.com/battle-of-britain
    CFS3 Battle of Britain install: http://aussiex.org/forum/index.php?/...tain-for-cfs3/
    CFS3 ACC Member & ETO Expansion Group

  12. #12
    Charter Member 2011 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    49
    Posts
    1,820
    Blog Entries
    1
    Also, what type of dds are you saving them as VonOben? I use DXT5 literitive fit / highest quality.
    I have little experience of PSP but in paintdot net you work directly in the .dds and alpha, you don't have to save a seperate channel.
    CFS3 Battle of Britain Website: http://cfs3bob.wix.com/battle-of-britain
    CFS3 Battle of Britain install: http://aussiex.org/forum/index.php?/...tain-for-cfs3/
    CFS3 ACC Member & ETO Expansion Group

  13. #13
    Hi Pat

    Thanks for listening and testing in your end!

    I saved as DXT3 because the original file was in that type, I haven’t tried any other types.

    Can Paint dot Net also make mipmaps?

    Is it a good idea to have terrain tiles without mipmaps?
    Isn’t that going to lower the framerate and create more shimmering?

    Cheers

    vonOben

  14. #14
    Charter Member 2011 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    49
    Posts
    1,820
    Blog Entries
    1
    Can Paint dot Net also make mipmaps?
    Yes


    Is it a good idea to have terrain tiles without mipmaps?
    Isn’t that going to lower the framerate and create more shimmering?
    Pc's have come on a ways since cfs3 came out and what was necessary then may be ok without now. I couldn't see an fps hit or any change in shimmering so will keep testing.
    The ETO & BoB mos files are far simpler with only 2 layers compared to many in the stock ones, whether or not this has had an effect or not also needs to be looked at.

    cheers,

    Pat
    CFS3 Battle of Britain Website: http://cfs3bob.wix.com/battle-of-britain
    CFS3 Battle of Britain install: http://aussiex.org/forum/index.php?/...tain-for-cfs3/
    CFS3 ACC Member & ETO Expansion Group

  15. #15
    Hi

    I've downloaded a program to investigate dds files and done some more research:

    ETO terrain tiles: dds Dxt1 2048x2048, don't have mipmaps, Mem usage: 2048 kB
    OFF 3 terrain tiles: dds Dxt1 1024x1024, have mipmaps, Mem usage 512 kB
    BoB City terrain tiles: dds Dxt5 2048x2048, have mipmaps, Mem usage 4096 kB

    Pat,
    since you don't have any alpha channel in the terrain texture they don't need Dxt5 AFAICT. With Dxt5 instead of Dxt1 you get an unneeded alpha channel that doubles the used video memory for each terrain tile....

    I did some tests converting BoB City terrain tiles in DXTbmp to dds Dxt1 without alpha channel and I also copied the CompositeSceneryBudgets.xml and compositescenerytextures.xml from my OFF installation.
    Here's a screenshot showing how it looked without mipmaps. The city textures gets blurry at distance which looks rather realistic:

    Attachment 33835

    Here's a screenshot showing how it looked with mipmaps. The city textures looked slightly sharper at distance but there was to much shimmering dispite of maximum AA and AF in the CCC.


    Attachment 33836

    The CompositeSceneryBudgets.xml and compositescenerytextures.xml from my OFF installation made a big difference since they displayed the high res tiles further out.

    Cheers

    vonOben

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Stupid question about the terrain textures...
    By Daube in forum FSX General Discussion
    Replies: 6
    Last Post: November 19th, 2012, 17:42
  2. Ground Terrain Textures
    By Lionheart in forum X-Plane
    Replies: 2
    Last Post: March 22nd, 2009, 19:41
  3. terrain texture problem
    By Jerm in forum CFS2 General Discussion
    Replies: 5
    Last Post: March 12th, 2009, 13:55
  4. Terrain Color Problem
    By stovall in forum FSX General Discussion
    Replies: 17
    Last Post: January 6th, 2009, 09:16
  5. Terrain SDK Problem
    By Thone2000 in forum CFS3 General Discussion
    Replies: 1
    Last Post: October 4th, 2008, 06:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Avsim - Flightsim - SimFlight - Simviation - iflyonline - CFS IP - Quarter Moon Saloon - Com-Central