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

P3D v4 Effect parameters

Messages
607
Country
france
Hi guys,
I get a strange behavior with parameters and p3DV4.
In order to test I finally attached a simple light effect with a simple parameter e.g. DUSK=1;DAWN=0.
As a result the effect plays at dusk AND dawn ! o_O
Effect was added using latest release of MCX and compiled in V4
Could anybody check to ensure it is a bug to report LM or am I out to lunch ?
Thank you
 
Hi,

I have not tried this combination yet because it seems illogical.
You can put in all four (day=0, night=1,dawn=1, dusk=1) in one effect. No need to have two effect entries.
But why would you want no light at dawn?
 
Hi,
Cause in p3d I can't have (HOD=19;22) working, no effect 24/24. As i want to cast effect every evening, dusk seemed a simple workaround
Of course I tried day=0;night=0;dawn=0;dusk=1. But effect runs at dusk AND dawn.
I don't think it's illogical. It just complies with SDK
Thanks
 
Thanks it might come from MCX as Arno found some bug in visibility conditions and animations.
Gonna test and report
 
Unfortunately issue is the same after:
- updating MCX
- editing mdl through MCX and export mdl v4 format
- compiling lib with V4 sdk
I keep digging
Thank you
 
Do not attach it.
You do not have to use MCX. Make an xml like this:
<SceneryObject
lat="xx.xxxxxxxxxxxxx"
lon="xx.xxxxxxxxxxxxx"
alt="x.xM"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
<Effect
effectName="fx_xxxxxxx"
effectParams="HOD=xx,xx;MOH=xx,xx;"/>
</SceneryObject>

and compile.
 
Thanks Roby
Yes I could but the effect is attached to a 3D model so I don't want to manage the effects separately.
May be if there is no solution.
If the issue comes from MCX, I guess Arno will have a look.
 
Effects were still OK before P3Dv2 but as of v3.5 things started to change.
I am still at a loss to get the how and why some things do not work any longer and why others keep on working.
One thing I think I found is that the entries in the effect.fx are now in meters and no longer in feet but I could be wrong.
Maybe Arno's MCX attached object editor is also still in ft?
Plus the fact that the v4 hotfix1 changed some things as well.
In a nutshell, it could be that your attached effect is either underground or has become that small or big that you can no longer see it.
 
The effect is ok as I can see it running at dusk and dawn. Only the parameters have weird rendition
The syntax I use is the same than in V4's sdk examples
 
Hi Roby,
not so simple indeed. I just tried to place an effect by xml compiled V4. I took care for the params order to comply SDK (but i tried several..):
Code:
<SceneryObject lat="46.7 " lon="2.5 " alt="20" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_proj.fx" effectParams="DAWN=0;DAY=0;DUSK=1;NIGHT=0"/>
</SceneryObject>
As a result the effect plays at dusk AND at dawn which is a non sense !
Of course HOD does not work properly either

I use last 4.028 revision of p3DV4, so I guess now this is a LM bug.
You confirm you can have an effect running only at dusk, not
 
No, I have not tried to have an effect run at dusk only.
But the xml way, it should work because the effect would only show up at the time that you indicate in the xml.
The effect parameters are not day, dawn, dusk, night but HOD and MOH e.g. HOD=19,19;MOH=00,60; if the effect is to be played at 19:00h during 60 minutes.
 
Back
Top