• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Unused textures in sceneries

Bjoern

worst developer ever
With a secound round of apology to Randy. I can't - and won't - discuss FSX-related questions in private. Now everyone can google this problem and read along here.

Maybe you can answer this question for me: When FSX first opens an add-on scenery, I think I understand that it looks at all the textures in the texture folder and only loads the ones that are used in that particular add-on. If that's how it works, then it shouldn't matter if there are unused textures in the folder? Am I correct?

The reason I would like to know this is that in the process of updating, making changes to scenery objects, or removing some of them in some of my personal add-ons, my texture folder continues to grow with each revision. If the extra unused textures are ignored then I can forget about them. If not, then I probably need to do some house cleaning of the folder.

But before I attempt to do that, I have to wonder if removing these unused textures will substantially change my FPS. It would be great if someone has developed a program that will take a look at the texture folder and compare it to each object bgl to determine which textures are used. And then simply delete the unused textures.

Yes, you are correct. FSX only uses what it needs.

Finding out which textures are needed for a particular scenery (object) can be a bit of a chore though. If you have a library type bgl, you can open it in MCX and note each texture that is referenced by the each material in the material editor. You need to do this for every object in each library file you're using in the scenery.

Or you remove all textures from the scenery's "texture" folder, then add some parameters to the fsx.cfg and restart FSX. It should alert you about what textures are missing.
http://www.fsdeveloper.com/wiki/index.php?title=Missing_textures#Identifying

None of this is a one-stop solution but each of these gets the job done.
 
If you have a library type bgl, you can open it in MCX and note each texture that is referenced by the each material in the material editor. You need to do this for every object in each library file you're using in the scenery.

There is an easier way.

Load the library .bgl in MCX and generate an object report...
attachment.php


This will take a second or 50 and create an HTML file that will have a texture list for the entire library.

Much easier than doing it object by object, especially when multiple objects use the same textures.

cheers,
Lane
 

Attachments

  • Capture.JPG
    Capture.JPG
    49.7 KB · Views: 1
There is an easier way.

Load the library .bgl in MCX and generate an object report...


This will take a second or 50 and create an HTML file that will have a texture list for the entire library.

Much easier than doing it object by object, especially when multiple objects use the same textures.

Learn something new every day! Thanks!
 
I do that with bglscan that comes with the SDK. It is a very good tool for error checking and sorting out unused textures, expecially if you have hundreds of them in your project.

Cheers,
Mark
 
Back
Top