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

The surface type for ground polygons.

GIS

Messages
8
Hi, this is my first post here and first question.
I know that the command for setting the surface looks like this

SET_SURFACE_TYPE 0, 273, 232, 0

The first digit after all words means concrete/asphalt. But what mean the second two digits? And how can I calculate them if I have many polygons?

Ерун must have depending on the Vertex list. But there are so many Vertex in my asm, do I need to summ all of them?

Thank you!
 
Looking at the definition of the command it seems the second and third parameter set the size of the area. The last parameter is the altitude.
 
Thats right, but how they have been calculated from all vertex? I mean second and third parameters. For example, shall we say I have next vertex list:
VERTEX_DEF -6.000000, 0.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0,0.0 ; 0 part= 1 prim=0
VERTEX_DEF -6.000000, 10.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0,1.0 ; 1 part= 1 prim=0
VERTEX_DEF -2.000000, 0.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0625,0.0 ; 2 part= 1 prim=0
VERTEX_DEF -2.000000, 10.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0625,1.0 ; 3 part= 1 prim=0
VERTEX_DEF 2.000000, 0.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0,0.0 ; 4 part= 1 prim=0
VERTEX_DEF 2.000000, 10.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0,1.0 ; 5 part= 1 prim=0
VERTEX_DEF 6.000000, 0.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0625,0.0 ; 6 part= 1 prim=0
VERTEX_DEF 6.000000, 10.000000, 0.000000, 0.000000, 0.000000,-1.000000, 0.0625,1.0 ; 7 part= 1 prim=0

How can I calculate second and third parameters?
 
I am not 100% sure, but I think it is half of the size (that is how it is in SCASM). So then you would have to find the maximum value (absolute) of these coordinates.

In your case that would be 6 and 10 I guess. Did you write this VertexList yourself? GMax uses a different coordinate system for ground polygons.
 
Right! Thanks a lot. That was not a ground polygon, but if it is then I have to take the second param from first column (absolute maximum) and the third param from 3d column (also absolute maximum).
Thank you!

The example was as in your tutorial about VGDS.
 
Back
Top