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

Layer with Scasm

Messages
374
Country
italy
Hi there,
I've correctly placed a ortophoto using TexPoly which produce even the source of bgl in scasm format:

Code:
Header( 1 +49:40:51.6492 +48:40:51.6492 +001:00:00.0000 -001:00:00.0000 )
LatRange( +48:40:51.6492 +49:40:51.6492 )

Area( B +49:10:32.6492 -000:26:27.8420 80 )
     AddMountain( :SHADEDTEXPOLY )
     Jump32( :fin )

     LayerCall(  :SHADEDTEXPOLY 17 )

:SHADEDTEXPOLY
     Perspective
     RefPoint( 2 :fin_POLY 1 +49:10:32.6492 -000:27:26.8420 v1= 0 v2= 0 E= 0077.0 )
     Jump( :suite )
:fin_POLY
     Return
:suite
     Transform_Mat( a 0 0 0 0 0 0 )

;## DEFPOINTS###
     VecPoints( p 0
          -922              1              1024          65            160 ; 0 
          -410              1              1024          65            160 ; 1 
           102              1              1024          65            160 ; 2 
           614              1              1024          65            160 ; 3 
           1126             1              1024          65            160 ; 4 
          -922              1              512           65            160 ; 5 
          -410              1              512           65            160 ; 6 
           102              1              512           65            160 ; 7 
           614              1              512           65            160 ; 8 
           1126             1              512           65            160 ; 9 
          -922              1              0             65            160 ; 10 
          -410              1              0             65            160 ; 11 
           102              1              0             65            160 ; 12 
           614              1              0             65            160 ; 13 
           1126             1              0             65            160 ; 14 
          -922              1             -512           65            160 ; 15 
          -410              1             -512           65            160 ; 16 
           102              1             -512           65            160 ; 17 
           614              1             -512           65            160 ; 18 
           1126             1             -512           65            160 ; 19 
          -922              1             -1024          65            160 ; 20 
          -410              1             -1024          65            160 ; 21 
           102              1             -1024          65            160 ; 22 
           614              1             -1024          65            160 ; 23 
           1126             1             -1024          65            160 ; 24 
           0   1             0             65            160 ; 25 
          )
;## POLYGONS ##

     LoadBitmap( 0 L5 EF 60 140 60 caen00.bmp )
     ShadedTexPoly( au
              15             0             255 
              16             255           255 
              21             255           0 
              20             0             0 
              )
...

As my scenery starts with 19th layer I would place this as 18th. How can I tweak this?

Another question: this will be a groundpoly which means that i cannot add autogen object. Is there a tricky way to "convert" my polygon to be autogen-friendly?
thanks!
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

This line sets your layer (17 in this case):

Code:
LayerCall(  :SHADEDTEXPOLY 17 )

But may I give you one advice. Throw away this antique code. The VecPoints and ShadedTexPoly commands you use are really old and the new floating point commands are much better. They give you better control over the texture mapping and are much likely to work in the future as well.

Another question: this will be a groundpoly which means that i cannot add autogen object. Is there a tricky way to "convert" my polygon to be autogen-friendly?

Nope, only mesh polygons can have autogen. So then you would have to use a VTP polygon (which has a texture resolution limitation).
 
Top