• 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.

Apllying a bit map to terrain

Messages
537
Country
canada
Hi, All

With so many free satellite pictures available, it is very tempting to want to place the texture of one of those photographs right where the city is.

I looked at the Terrain SDK and, to be honest, I don't know whether that would be the way to go to place a bitmap onto a specific area of terrain.

Does anyone know of a recipe or can point me in the rigth direction?

Thanks

Fern
 
There are many tools:
SBuilder, Photo Scenery Maker (?) ...
These tools are very user friendly!
Hi, Cl :) audio
 
And there is also TerraBuilder (TB Lite is free).

But allthough it should be simple I didn't manage a satellite-scenery :(

But I won't give up ;)
 
Photo ground texture

Hi, Fellows

Thanks for the answers, which created additional questions, of course.

So, I downloaded the Terrain SDK, Photo Scenery Maker and FS Resample.

I know that I will, eventually, get involved with this more seriously but, to start, I want to learn how to put my own texture on terrain.

Photo Scenery Maker and FS Resample are free and I have them downloaded.

Any of you have used either one of the tools above and can tell me which one is simpler (yet effective, ha ha ha ha ha ha)?

Thanks!

Fern
 
Well, it works but...

Hi, All

I managed to add a texture to the terrain. Well, I cheated a bit, because I used the Terrain SDK that has it almost done. But I did understand how it works and all that, and I think I can do it myself for my own areas.

However... The areas where the texture is applied loose all the trees and generic buildings.

I may be expecting too much, but I sort of wanted the buildings and trees to be there, and just the general geometry of the texture to show through, so the place would look a bit like the original.

Is that the way it is supposed to be? In other words, is there a way to leave the original objects intact?

If not, this is almost as bad as placing a plane over the ground with the new texture...

Any hints?

Thanks

Fern
 
Hi Fern,

Fern said:
However... The areas where the texture is applied loose all the trees and generic buildings.

The autogen is indeed lost on your new photo texture, but you can put it back by making a new AGN file for each texture file (can be a lot of work for a big area).
 
"Cell Size"

Thanks, Arno

It makes sense. If one is replacing the existing ground texture, one probably wants to align buildings with the "new" streets.

*************************


Do you know the unit of CellXDimensionDeg and CellYDimensionDeg?

The SDK text says "distance between each pixel in degrees longitude" (and latutude), and the numbers in the examples are 9.59.... 7.366... (page 5 of the doc), and later 4.something and 5.something for another example. This cannot possibly be in degrees. The chain of digits always seem to end in "E-005" or "E-05".

These numbers look more like the dimentions of the pixels in metres than in degrees.

Do you know what the unit of thses entries are?

Thanks!

Fern
 
Hi Fern,

These are in degrees, but in sientific notation. The E-05 means multiply by 1/100000, so you get a rather small value in the end :).
 
Fortran Notation

Thanks, Arno

I had a great laugh at myself with this one. I haven't seen this way of expressing powers of 10 since I saw FORTRAN the last time, around 1970 or so. They had to use E capital back then because the drum printers didn't have lower case, ha ha ha ha ha.

So, E-03 or E-003 is the same as X10¯³. Cool. I'll try to figure out to what my 1.417272blahblahblah metres correspond in degrees. Fortunately, for my first attemp, I am working on something near the equator and the lat and lon dimensions of my pixel with be close to the same number.

Thanks again, Arno!

Fern
 
Texture on terrain - Still trying

Hi,

Well, I'm back at trying to apply a texture to terrain.

I am using the SDK. I had a look at the other tools and they all seem to fall back on the SDK.

What is driving me to drink is the calculating the exact coordinates of the corners of the "terrain cells", or tiles that have to be re-textured.

Calculating according to the formula (360/32768 for latitude and 489/32768 for longitude) doesn't seem to work exactly. So after it shows water or black arond my texture, I have to be trying to position the plane in slew at the exact corners and read the lat/lon with Arno's ObPlacerXML.

(I seem to have understood the other calculations, such as the size of each pixel in degrees. I can actually place a texture where I want, but with way too many hit-and-miss attempts to get the coordinates of the corners correctly...)

There must be a better way...

So, how can I know exactly where the corners of the terrain cells (tiles) of the area where I want to change the texture are? I say exactly because FS seems to want it to be exactly...

Thanks!

Fern
 
Made it work, single source

Hi, All

Have to be happy... I figured out how to find the "tile" position exactly (terrain cell, as the SDK calls it). It wouldn't be much of an effort for the SDK to be just a bit more explicit in their explanation, though.

So far I can do a quite precise bit map positioning with all the numbers matching right on, even multiple terrain cells... single source, so far. Big success for me, though.

If anyone is interested in how I did, let me know.

Next stop, multiple sources (seasons and lm).


Satay tuned.

Thanks.

Fern
 
Hot Question now: Seasons at wrong dates

Hi,

After much hair pulling, I can actually change the ground texture with multiple sources! I can make the borders match, using the multiple source for the seasons, despite the SDK documents not telling the most basic secrets... The truth is out there...

So, it all works from a geometry point of view.

However, no matter what I try, with hard winter or without, the spring in my patch is late to arrive and winter arrives way too early compared to the surrounding area!

How do I manage that, fellows? Is there a way?

Thanks

Fern
 
Season ground textures solved

Hi,

I found the answer or, at least, it worked for me.

(Using the Terrain SDK only)

Considering that even some payware scenery doesn't know how to solve this problem and tell you to fly in the summer only, perhaps this is not as common knowledge as we would like it to be.

If anyone is interested, the problem is caused by three things, and it is not so hard to solve once you know.

1. The dates for season textures change are not the traditional, of course.

2. The "winter" texture, xxxxx_wi.bmp, comes on twice in the year, but not during the winter. Also, it really isn't wintery a lot of times in the FS default textures. This makes our own _wi textures, that we believe should be wintery, clash with the surrounding default texture which is still not snow-covered.

xxxxx_wi.bmp comes on from 20-October to 19-November and re-appears from 17-April to 19-May.

The xxxxx_hw (hard or harsh winter) only appears from 20-November to 16-April in most areas (more on this to follow).

For most areas, problem solved if your _wi texture looks like the surrounding default FS _wi texture.

Now, if the area you are trying to work on is right on the latitude division above which FS decided winters are harsher, there is a minor complication. This HAD to be my case, of course.

3. Below a certain latitude, around 43 degrees north, FS considers a jagged horizontal line of tiles below which it uses _hw only after 21-Dec. In the tiles that fall right on the line, FS has transition _wi tiles where the snow-covered area blends nicely with the no-snow texture below the line.

If you want your transition to be perfect, you will need to know which of your tiles are in the transition line and make those as a separate job, with its _wi textures half-snow and half-no snow.

This only happens from 20-Nov to 21-Dec, though, and only if you are right on the line. That is a lot better than "Fly in summer only".

The defalut xxxxx_wi.bmp has transition textures for those ground texture tiles on the dividing line, with the top snowy and the bottom grassy, with a granulated separation - quite clever, really. In this case you either create a separate band of tiles with a similar transition in your _wi texture to match or your tiles will have a short straight line for that one-month period.

This third issue does not occur at the end of the wintery season, as all latitudes transition from _hw to _wi on 17-April.

The change dates are:

Summer _su 18-June

Fall _fa 19-September

Winter _wi 20-October

Harsh Winter _hw 20-November above ~43° Lat
21-Dec below ~43 Lat

Winter again _wi 17-April

Spring _sp 19-May

Note that I only worked on North America, but I believe that Europe and Asia will be similar. I don't know how FS does it in the south of South America. Not much winter in Africa and Oceania, so not much to worry for folks doing ground textures for those areas.

Fern
 
Simply load the seasons.bgl into microsoft's tmf viewer, and note the numbered seasons for your latitude/longitude.

Dick
 
Very good research Fern. Very impressive.

I too wished to attach a satellite photo to my recent airport release but couldnt understand the jargon in the Terrain SDK. Even in your explanations above, comparing it to computer Fortran language, X10 to the third power, eeeks!

It would be nice if someone came out with a simple program similar to AFCAD that could simply attach a sat photo to your FS terrain. arrghh.....

Bill
 
Terrain, Seasons, etc.

Thanks, Dick and All.

Dick, I didn't know about the Microsoft tmf viewer and the seasons.bgl. Thanks! Actually, I still don't know. I must admit I never heard of either, and I will be trying to find both. I had to do it the hard way.

Bill and Bob, I am adding some notes to my copy of the Terrain SDK doc, because I think the original is pathetic. As in a lot of cases, it was written by someone who assumes the reader already knows the subject or can read minds. In some cases, they may be trying to impress the readership with their knowledge, in the style of "I find this, oh, so trivial...".

Anyway, the SDK doc has errors, serious ones, and if you follow what they tell you, it won't work. But if you correct the errors, it does a good job.

The best part is that, after knowing how to do it, the SDK works quite well and is not difficult at all. It comes with one multi-season sample that can be used as "seed" for your own terrain texture modifications by changing relatively few things (plus your own textures, of course).

If you fellows are interested, I will give you my notes. I don't know whether there is a place in this forum to upload them to (It is not a "tuturial", really, and it is 25 pages long). So, either you tell me where to send the notes or tell me where to upload them, and I will be glad to do it.

I must admit I am very happy to have made the Terrain SDK work. It is the latest in a long list of things that were mysterious to me, but that I managed to figure out, with a lot of help from this amazing bunch.

Thanks!

Fern
 
Hi Fern.

The best info about Microsoft's resample program is Christian Stock's TMF Manual ( AVSIM Library -- tmfmanual.zip )

tmfviewer is contained in the FS2004 Terrain SDK, in the Terrain_Tools folder.

Dick
 
Back
Top