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

FSXA MCX Ground Polygon Conditional Display

mendiola_loyola

Resource contributor
Messages
520
Country
peru
I have modified the .sca file generated by MCX GP Wizard, the ground polygon has Layer 12.
The Marked code in Red is the code added to activate the conditional display logic, it hides the ground polygon at day. The .sca file was compiled with scasm version 2.96.

It works fine on FSX, Prepar3D v1.4, Prepar3D v.2.5 and Prepar3D v.3.35

Could you validate if the tweaked scasm code is right?

upload_2016-8-17_19-18-19.png


Source:
http://www.fsdeveloper.com/wiki/index.php?title=Conditional_display_(SCASM_tweak)

Arno, Could you add a CheckBox on MCX GP Wizard to activate this tweak ?

Regards
Alfredo.
 
Last edited:
Yes, this tweak is right. You could also do it like this:

Code:
Area( .... )
IfVarRange( :nolight 28C 2 4 )
LayerCall( :Lay12 12 )
:nolight
Jump32( : )

I would have to check how this can be added to the wizard. Just a checkbox to display only at night won't work, because then somebody else will want only at day later on, etc.
 
Excellent info... many thanks to Alfredo for testing this, and to Arno for considering implementation of this in the MCX G-Poly Wizard ! :)

GaryGB
 
Thank you Arno, Gary.
I also made a Polygon with a Material and a night texture _LM.dds and the Polygon light up the apron at Night, Dawn and Dusk. The _LM texture has a yellow color background and the alpha channel set the light opacity.

Regards.
Alfredo Mendiola
 
???
I thought that scasm code was not supported any longer in P3D ?
No. It works fine with P3D versions 1.4, 2.5 and 3.35.
I have tested my polygons with conditional display code.
The fsx generated polygons with the MCX gp wizard are created with scasm code.

You can use sode or simconnect to apply conditional display to ground polygons generated from MCX gp wizard with the option P3D v2 checked.

Regards.
Alfredo
 
Last edited:
Thanks, that clarifies things a bit.
I understand you mean that you use the P3Dv2 GPW rendered mdl and xml and then use SODE or SimConnect to make the conditional display in P3D?
 
Thanks, that clarifies things a bit.
I understand you mean that you use the P3Dv2 GPW rendered mdl and xml and then use SODE or SimConnect to make the conditional display in P3D?

No. I used the ground polygons generated for FSX in P3D v.1.4, v2.5 and v.3.35 to test the Conditional Display. Just with the FSX option checked MCX GP wizard generates the .sca file.

Regards.
Alfredo
 
It is interesting to see that LM has (thus far... :alert:) opted to continue support for "certain" types of SCASM / ASM code in P3D 3.x even though they had previously indicated that they would not continue to support SCASM / ASM: :scratchch


http://www.prepar3d.com/forum/viewtopic.php?t=12857


http://www.fsdeveloper.com/forum/threads/p3d-v2-2-issue-or-a-ground-poly-wizard-issue.430103/page-2


http://www.uk2000scenery.org/forum/index.php?action=printpage;topic=8548.0


http://forum.aerosoft.com/index.php?/topic/82019-prepar3d2-support-once-more/


Some additional links on this topic
:

https://www.google.com/#q=Prepar3D+SCASM+/+ASM+support


Personally, I'm very pleased to see that (thus far) one can utilize "certain" types of SCASM / ASM code in P3D 3.x. :)


However, considering LM's history of persistent and pervasive change to the P3D 2.x / 3.x code base and feature implementation techniques, IMHO, one must beware of the eventual risk of one's existing add-on scenery content creation efforts no longer working, or periodically requiring substantial modification to stay compatible with ...the "moving target" that characterizes P3D development. :pushpin:


PS: For those who prefer to utilize the newer P3D MDL-based methods for G-Polys and other MDL / SimObject conditional display, here is a discussion regarding freeware and payware tools already available: :idea:

http://www.fsdeveloper.com/forum/threads/simobject-display-engine-released.428131/


GaryGB
 
Last edited:
Gracias, Alfredo.
Interesante y sorprendente (como dijo Gary/Gregorio/Geraldo/...)!
(Estoy praticando el Castellano para mudar este otoño otra vez hacía un país más cálido, incluido la puesta de varios acentos en un teclado QWERTY, ejemplo: ALT>Num Lock>164 para la ñ:)).
Why don't we inquire about their intentions for the next update on the P3D forum? Funnily enough I hardly see any questions there from FS scenery developers!
 
I will make my night Lighting with the SCASM code generated wth MCX GP, for FSX and P3D, then I will research conditional display using simconnect to be ready in case LM change the game rules. However, we can also apply apron night lighting using FSX Models...

Regards.
Alfredo
 
Yes I know. But I did not as far as other conditionals were concerned. And that was what surprised me.
My question remains though: how come we do not see any threads in the P3D forum about this subject?
Guess I will do it myself by just referring to this thread (and some more as well on FSDeveloper).
Or maybe Gary can do it because he is better at that than I am?
 
I would like that the P3D SDK gives us an option to add conditional display to models, maybe via xml.

If we have to use simconnect or SODE for dynamic display it will be complicated to make an scenery installer, and even a user could uninstall SODE and the display conditions would not work anymore.

Regards
Alfredo
 
Adding conditional logic support to ScenarioVariables is on our roadmap, but we have no projected release date for its inclusion. Be sure to check the What's New for each of the new Prepar3D releases for updates.

As a workaround, you can use a ScriptTrigger to accomplish what you're trying to do. The ScriptTrigger can check the variables and trigger different actions via Lua or RPN scripting. The full documentation for the ScriptTrigger can be found in our Learning Center under Prepar3D Product > Getting Started > Scenarios > Scenario Tools > References > Scenario Objects.

- Mike
Prepar3D® Software Engineer
https://www.prepar3d.com/forum/viewtopic.php?t=118328
 
Rick, I think that refers to Missions and not to scenery elements. It would indeed be great to have more flexibility for conditional display like we had in FS2004.
 
Back
Top