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

GMAX Alignament Problem

Messages
18
Country
argentina
Hi all:

I am working on an Arequipa Scenery Proyect (SPQU) originaly I was working whit FSArquitec (photo texture grid), but now I decided to try to work whit GMAX (just to make it a more complicated and learn on the development)

I created an similar phototexture grid which works perfectly, using ground poligons as stated on the Wiki.

Also I added using the loft method, lines for the taxyways...

but here is the problem, when I compile the 2 asm, joining them in one, (as in the wiki again), the Ground Polys and the Lines, does not match the place were they were drawm on GMAX, they are displaced form each other.

Although I can correct this on GMAX (grouping the lines, lofts and then move them to a displaced location so when I compile there are now aligned) I wanted to ask what could be the cause of the displacement, before trying to move then away.

Here is a couple of screenshots becose an image is worth millons of words, one from GMAX and other from FS.

Besides this it works.

In GMAX, Lines correctly aligned:


On FS Lines Displaced from it position:


This is the ASM Code used for Compile:
Code:
header label word
    dw      0001            ; 00 World set number   
    dd      0FFE45144H          ; 02 North bound        
    dd      0FFE43E98H          ; 06 South bound        
    dd      0CD1AB66DH          ; 10 East bound         
    dd      0CD1AB66BH          ; 14 West bound         
    dw      20 dup(0)                               
    dd      (offset OBJECT_DATA) - (offset header)
    dw      33 dup(0)                               

OBJECT_DATA label word                                  
    db  21              ;;LATBAND_REL                   
    dw  0F220h          ;;lat min (inclusive) 512M units
    dw  0F22Ah          ;;lat max (exclusive)        
    dd  (offset OBJECT_0) - (offset OBJECT_DATA)        
    db  0               ;;EOL                           
OBJECT_0 label    BGLCODE
    db  12                      ; NEAR_FAR_HUGE_OBJECT_HEADER
    dd  0FFE447EEh,0CD1AB66Ch           ; latitude,longitude        
    db  100                     ; image power                 
    dd  (offset OBJECT_0_END) - (offset OBJECT_0)             

OBJECT_0_START label word
    ADDCAT      OBJECT_0_PHOTO, 8
    ADDCAT      OBJECT_0_APRON, 12
    BGL_JUMP_32 OBJECT_0_END  

OBJECT_0_PHOTO label    BGLCODE
    SCALE_AGL   OBJECT_0_RETURN, 20000, 2390, 131072, 0FFE447EEh, 0C80Ch, 0CD1AB66Ch, 09F9Dh, 0, 0
    include    aqp_grd_0.asm

OBJECT_0_APRON label    BGLCODE
    SCALE_AGL   OBJECT_0_RETURN, 10000, 2390, 131072, 0FFE447EEh, 0C80Ch, 0CD1AB66Ch, 09F9Dh, 0, 0
    include    aqp_lines_0.asm
    
OBJECT_0_RETURN label word
    BGL_RETURN

OBJECT_0_END label word
EOF

Thanks a lot for your help, and thanks to everyone wich help on this community.
 
Have you scaled your background image correctly? I think the best way is to scale it using the runway meters x width then using the runways co-ordinates to put it into fs, keep in mind that the runway in gmax is your reference runway so it has to stay 0,0,0 meaning it stays in the center of your gmax scene.
 
The Background image you see on GMAX, are indeed the Ground Polys for the ground, plataform, to which I overlay (for simplicity) the lines and lofts for the Taxyways Lines.

At the moment of BGL Generation, I compile the Ground polys (planes in this case) to one file (aqp_grd_0.asm) and the lines to another (aqp_lines_0.asm).

The strange from the case, is tha given the amount of lines created, I have to split the compilation of the lines trought several files (aqp_lines_0.asm, aqp_lines1_0.asm aqp_lines2_0.asm), ando also to create separetes BGL for the lines, just modifying the code I posted above to use the diferent asm). This causes that all lines, showed aligned between them, but no between the Ground Polys.

Also to add mystery to the proyect, I added more Planes just for the main plataform (from which I have better resolution images) and they align correctly whit the other planes.

The only thing that cames to my mind is an rendering diference in the same GMAX, of the images, but Don't Know what could be done.

Thanks for the Help.
 
Hi,

How big is the offset between the two files?

In GMax the maximum texture resolution is not always displayed (depends on your settings). So if you have drawn your lines based on what you see in GMax that might not always what you see in FS.

Also are you sure that you used the same coordinates when exporting both files?
 
Hi Arno:
Yes I use the same coordinates when I export in MakeMDL.
The alignament problem, was solved by just moving to the right position all the packages of lines.

Also, as Arequipa scenery was ended, and at the moment is on beta testing (installer beta testing) I steped to make another Scenery, now Trujillo (SPRU), (to which plataform is already done :eek: -thanks to GMAX), It also have some misalignament, but it is not that much, and also was corrected moving the lines to a calculated position, where it will match.

By the way, my textures in GMAX apear in negative, (the bitmaps are 24bits):
Here is a Screenshot of it:


In this you could also see the diference between the Lines placed on LOFTs and the Lines that are on the Ground Poly:


Thanks a lot for your Help
 
Back
Top