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

TexPoly L attribute?

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,504
Country
netherlands
While working on my ModelConverterX tool I came across a few macros that I tried to convert that use the abL (or aibL) attributes in the Poly/TexPoly commands. I know what a(i) and b do, as they are documented, but for the L option I have no idea. Does anybody know, I could not find it in the docs and I have not seen it before.
 
Hello Arno,

Here is an extract from an old SCASM DOC file. I think this is what you were looking for,

Regards,

Luis

Code:
Information about aditional texture handling options

Sometimes it is pretty difficulty to find the correct X-Y-coordinates for textured polygons. One of the most common examples for this are mountains.
If you are such an lazy scenery designer like me <g> you can try the different features of the bitmap automatic. In this version bitmaps are always aligned to the lower edge or the lowest point of the polygon.
Texture automatic is limited to polygons with a maximum of 16 vertices (vers. 2.29 and later).

        T       enables Texture Point calculation automatic
                for any ..TexPoly's. SCASM tries to use the
                whole texture map, but the aspect ratio is
                maintained. Only valid with ..TexPoly's
        B       The same as above, but texture aspect ratio
                is not maintained. This may result in a
                different scaling for the bitmap in x- and
                y- direction. Only valid with ..TexPoly's
        R       This flag reverses the bitmap in y direction
                (up/down). Only valid with ..TexPoly's. This
                works only with the T or B flag active.

                aditional flags in version 2.04

        S scale 
                maybe changed in next version !!!
                With the above flags allone you cannot
                control the size of the pixels (scaling).
                If this flag is used SCASM expects a
                scaling factor for the next parameter. The
                scaling factor can be a fractional number
                or even an expression.
                This scale factor can be calculated as:
                (last_usable_pixel
                     - first_usable_pixel) / longest_dist
                If you want to use the whole bitmap and your
                distance is 25 meters for your largest
                polygon edge, this is simply:
                  255 / 25 = 10.2
                This scale factor is used for X and Y
                scaling.

        L x1 y1 x2 y2
                This flag indicates that 4 aditioanl
                parameters follow.
                These parameters are bitmap coordinates to
                limit the usable bitmap area for this
                polygon. SCASM tries to stretch this area
                to fit the polygon. If this flag is not
                used SCASM asumes
                x1 = 0, y1 = 0, x2 = 255, y2 = 255
                for the first and the last usable pixel.
                This is the whole bitmap.
        N       No reset of the S and L values.
                Normally the scale factor and the limit
                values are resetted everytime a polygon
                is computed. If you want to use the
                values from a previously defined polygon,
                use this flag to tell SCASM not to reset
                these values.
        example:
                ...
                TexPoly( ats [127/25] L 0 0 127 127   0 1 2 )
                TexPoly( atn                          1 2 3 )
                ...
                In this example only a small part of the
                bitmap is used and the bitmap scale factor
                is calculated to fit a polygon with up
                to 25 meters width (x) and height (y).
                The second polygon is calculated with the
                same scaling and pixel limits since the
                previous values are not resetted.
 
Thanks Luis, that helps. I did not find that section in the online SCASM documentation.
 
Back
Top