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

Tweaked 2004 LIGHT_NAV code...not working

Messages
69
Thanx Arno for your replies. But, there is something peculiar with the following:

Code:
    ; Node 182 - LIGHT_NAV_dblue11 transform:

     BGL_SET_MATRIX_INDIRECT	13

    IFIN1 nolights11, 028ch, 2, 6

    BGL_LIGHT LIGHT_NAV, -0.337, 0.337, -0.337, 20, 0.60, 0.40, 0B206007Eh, 0.000000, 0.000000, 1.000000 ; source poly num = 11

nolights11 label word

    ; Node 183 - LIGHT_NAV_dblue12 transform:

     BGL_SET_MATRIX_INDIRECT	14

    IFIN1 nolights12, 028ch, 2, 6
	IFIN1 LOD_12, 033Bh, 0,599
    BGL_LIGHT LIGHT_NAV, -0.337, 0.337, -0.337, 20, 0.60, 0.40, 0B206007Eh, 0.000000, 0.000000, 1.000000 ; source poly num = 12
        LOD_12 LABEL WORD
nolights12 label word

Node 182 works without a problem. The light is off during the daytime, but the visual distance is somewhere near 9000-10000m.

Node 183 has an individual refDistance check applied to it. This one refuses to show during day OR night.

This code was exported using the 2004 MakeMDL and cleaned up.
Both compile without error in BGLC_9 to create the MDL.

I have also tried a variation where it checked for 028ch for the whole group first and this works. But, once I go in and put an individual refDistance on a light, it quits showing.

Any thoughts?

Thanx in advance

Sean E.
 
Hi Sean,

Are you sure that the object is not further away from the 0,0 point in GMax than the 600 meters of the LOD check? The 33B varaible is always measured from the 0,0 point in GMax.
 
Once again Arno you are correct.
It's always the simplest things that befuddle me..... :D

Ciao

Sean E
 
Back
Top