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

A problem with separation plane

Messages
49
My task is to create REIL strobes, visible only from the approach side, like the PAPI lights, and activated by tuning a special frequency. I've made it strobing like i need by animating a light and it works just fine. Frequency activation also works just fine. But somehow I just can't get the separation plane to work fine. I use the same data string for the separation plane as i used for both PAPI lights and green/red runway threshold lights and it worked just fine there. In this case I just can't get it to work right. The strobes are disappearing from some certain angles but way not those angles i want to achieve.

Here's an excerpt of my asm file:

Code:
BGL_ZBIAS 1

SEPARATION_PLANE WrongSide, -32473, 0, -4385, 32768							


IFIN1 nolight, 07C2h, 1175h, 1175h

    BGL_LIGHT LIGHT_NAV, -0.183, 0.183, 0.000, 20, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 37


ril9_anim_3 label BGLCODE
    BGL_SET_MATRIX_INDIRECT	6
    VAR_BASE_32   VAR_BASE_PARAMS

    ; Node 11 - Tick18 transform:

     BGL_SET_MATRIX_INDIRECT	7

    BGL_LIGHT LIGHT_NAV, -0.183, 0.183, 0.000, 20, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 92
nolight label word
WrongSide label BGLCODE
    BGL_RETURN
 
Hi,

That code looks OK to me. Do you have another transformation matrices before the check? I am not sure if they affect your separation plane as well. That's the only thing I can think of right now.
 
I have this right before the section i posted above. Not sure about what doest it stand for in the code as i've never worked with animations before, maybe you'll be able to get a clue.

Thanks!

Code:
     BGL_SET_MATRIX_INDIRECT	0
ril9_anim_1 label BGLCODE
    BGL_SET_MATRIX_INDIRECT	1
    VAR_BASE_32   VAR_BASE_PARAMS

    ; Node 10 - Tick18 transform:

     BGL_SET_MATRIX_INDIRECT	2
    MATERIAL 0,0 ; <255,255,255,255> REIL.BMP;;;
    DRAW_TRI_BEGIN 110, 24
    DRAW_TRI    2,   7,  18 ; poly=80 part=10
    DRAW_TRI   18,  13,   2 ; poly=81 part=10
    DRAW_TRI    5,  16,  21 ; poly=82 part=10
    DRAW_TRI   21,  10,   5 ; poly=83 part=10
    DRAW_TRI    1,  12,  15 ; poly=84 part=10
    DRAW_TRI   15,   4,   1 ; poly=85 part=10
    DRAW_TRI   14,  20,  23 ; poly=86 part=10
    DRAW_TRI   23,  17,  14 ; poly=87 part=10
    DRAW_TRI   19,   8,  11 ; poly=88 part=10
    DRAW_TRI   11,  22,  19 ; poly=89 part=10
    DRAW_TRI    6,   0,   3 ; poly=90 part=10
    DRAW_TRI    3,   9,   6 ; poly=91 part=10
    DRAW_TRI_END
    BGL_RETURN


ril9_MasterScale_2 label BGLCODE

    ; Node 3 - RotateAroundX transform:

     BGL_SET_MATRIX_INDIRECT	3
ril9_anim_2 label BGLCODE
    BGL_SET_MATRIX_INDIRECT	4
    VAR_BASE_32   VAR_BASE_PARAMS

    ; Node 8 - Tick18 transform:

     BGL_SET_MATRIX_INDIRECT	5
 
Can you try to put your checks directly under the MasterScale_2 label? Then we know if the other transformations effect the separation plane or not.
 
I tried what you suggested Arno, but the problem is still there..

Code:
ril27_MasterScale_2 label BGLCODE

BGL_ZBIAS 1

SEPARATION_PLANE WrongSide, 32473, 0, 4385, 32768		

    ; Node 3 - RotateAroundX transform:

     BGL_SET_MATRIX_INDIRECT	3
ril27_anim_2 label BGLCODE
    BGL_SET_MATRIX_INDIRECT	4
    VAR_BASE_32   VAR_BASE_PARAMS

    ; Node 8 - Tick18 transform:

     BGL_SET_MATRIX_INDIRECT	5


					


IFIN1 nolight, 07C2h, 1175h, 1175h

    BGL_LIGHT LIGHT_NAV, -0.183, 0.183, 0.000, 20, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 37


ril9_anim_3 label BGLCODE
    BGL_SET_MATRIX_INDIRECT	6
    VAR_BASE_32   VAR_BASE_PARAMS

    ; Node 11 - Tick18 transform:

     BGL_SET_MATRIX_INDIRECT	7

    BGL_LIGHT LIGHT_NAV, -0.183, 0.183, 0.000, 20, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 92
nolight label word
WrongSide label BGLCODE
    BGL_RETURN
 
Except for the IFIN1 and SEPARATION_PLANE commands the code is as GMax made it for you? Or did you make more changes to the default code.
 
Humm, I am afraid I ran out of ideas in that case. It sounds like your approach should work fine.
 
Back
Top