• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Is there program to generate library in simple way?

  • Thread starter Thread starter igr
  • Start date Start date

igr

Messages
113
Is there program which could generate library with objects based on txt file or some very basic xml? My idea is to create polygons based on ground plans of buildings. If I could have a script which detects the lines or corners of building and then computes the points/coords for the building and its height, I would write it to txt file. I could do such program, but my question is if there is some program which could be run from command line, so it doesn't need gui. Its use should be as simple as possible just like resample.exe is. So I would just pass the file to the program and it would generate my library file. I am not that kind of person who would build houses manually, howerver if I can identify the building on map by program, then I would like to build library. Such objects should use default texture, so all the need is to define ground polygon based on txt file, height of the building, location of object, and some number to identify textures to use.
 
I hope to add something like that to scenproc in the future. But it's not there yet.

Have you considered using autogen? Or is this not for a photo scenery?
 
It is for photoscenery but I would try to add the houses exactly to fit their's exact positions and possibly houses. I hope I could calculate height of building from the length of its shadow (based on idea that you can select light colors of photo, remove them, and then make threshold to get shadows. When you got shape of foundation than we can calculate height of building from the length of shadow. Autogen generates thing randomly and that would not be nice for high resolution sceneries.
 
I expect placing all buildings as custom objects will affect performance quite a bit. To optimise it you probably would need some custom coding, I'm not aware of general tools for that.

Just calculating the height will be quite hard already I think. But would be interesting if it can be done from the shadows.
 
Well, some things are harder, other things not so much as could seem. My biggest issue when dealing with analysis of image is how to detect the certain group of white pixels which are of the building. I have some ideas, but will need to think about it yet. Yet I am C++ beginner so it could take some time to complete such program to work succesfully. But if I would do it, still I miss the tool to create library.
 
One more thing which I was interested if it is possible to project ground texture into the roof of the building. So while sides of the object would be taken from default textures, the roof would be those of the photoscenery.
 
I guess technically it could be done, but that would result in a lot of textures I think. So a lot of drawcalls and that might affect performance.
 
Back
Top