plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

Mugz avatar image
Mugz asked MagnanimousHippo answered

Strange VFX problem in SU8

I have created heat effect for aircraft.
If i start aircraft on runway - VFX render correctly.
If i shut down engine and then start engine again - VFX ignore any parameters and render incorrectly.

This happen only with VFX_HeatEffect or VFX_Afterburner_heat matterial. With VFX_Debug_Particle i dont have any problem.


Screens for example:

1. Started on RunWay

111.jpg2. Started on Appron (or shutdown engine on runway and start it again)

222.jpg

vfxsu8
111.jpg (641.1 KiB)
222.jpg (838.3 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MagnanimousHippo avatar image
MagnanimousHippo answered Mugz commented

Hello Mugz,

I have been investigating the issue you reported and found the source of the problem. As you noted it only happens when using CODE_HEATDEFORM or CODE_AFTERBURNER materials. This is because they use the material specific parameters on the Output block. These parameters refer to a material instance that is used for a whole instance of the effect, not to a material instance used for a single particle, so you cannot use particle specific computations inside a graph and plug it in these inputs (a GetParticleAttribute node for example). Such a setup would cause an invalid cache entry to be created and reused for a part of the graph, instead of dynamically computing it when it is required, therefore feeding a static value to other parts of your effect graph.

I will make sure the documentation is updated so this specificity of material parameters is made clear.

I will also keep you updated when a fix to prevent this setup to mess with the rest of the graph will be released.

Regards,
Matthieu

4 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Great, I understand you.

Do you currently have any workaround? Or do I need to wait for a fix?

0 Likes 0 ·

For the moment if you want the rest of the graph to behave properly you need to unplug any particle-related computation from the material parameters inputs on the Output block.

For example: simple effect setup with Size and Blur both depending on the same GetParticleAttribute node

1647442685605.png

The result shows a size not varying because the GetParticleAttribute result has been cached with the value 0.

1647442816325.png



Now with a graph plugged into the Blur parameter that does not depend on a particle specific computation ...

1647442984740.png

... and the particle size behaves as intended :)

1647443057926.png

0 Likes 0 ·
1647442685605.png (116.2 KiB)
1647442816325.png (1.0 MiB)
1647442984740.png (119.0 KiB)
1647443057926.png (716.6 KiB)

There is no workaround to have the material parameters affect particles individually. This will not be supported, the fix will only prevent a incorrect graph setup for the material parameters to mess with the whole graph.

0 Likes 0 ·
Mugz avatar image Mugz MagnanimousHippo ♦ ·

It's sad. Because in SU7 it works.

0 Likes 0 ·
Mugz avatar image
Mugz answered Mugz commented

After diging - issue exist with any matherials with CODE_HEATDEFORM type


7 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

any chance it's your project issue? I've made variable jet engine heat with default material, I think it works properly https://github.com/thealx-eech/msfs-effects-lib/tree/main/HeatBlur
also Asobo announced blur visual improvements (probably in SU8 if I remember correctly)

0 Likes 0 ·

Look to picture.

If effect start immediately - it works, but if i restart - it's not work.
Effect ignore all additional properties. Only for materials with CODE_HEATDEFORM

And it's for HEAT effects only, not for smoke.

0 Likes 0 ·

Okay. My effect uses default VFX_HeatEffect material, appearance code is
<FX_CODE>(A:APU PCT RPM, percent) 10 &gt;</FX_CODE>
Started flight on apron - no effect visible, sstarted APU - effect appears. Maybe you discovered some specific VFX bug, hard to tell without XMLs

0 Likes 0 ·
Show more comments
Mugz avatar image
Mugz answered Boris_ commented

Any news, info?

11 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Hello @Mugz,


Can you send us your effect file so we can have a look?

Regards,
Sylvain

0 Likes 0 ·
Mugz avatar image Mugz FlyingRaccoon ♦♦ ·
Can you give me mail/or something for send project privately?
0 Likes 0 ·

Check item 3, you can adjust the visibility of your comment so that only Asobo people can see it

How to report a bug or crash - MSFS DevSupport (flightsimulator.com)

0 Likes 0 ·
Show more comments
MagnanimousHippo avatar image
MagnanimousHippo answered

Hello,

I am happy to report that the issue will be fixed with the release of SimUpdate 10 :)

Regards,
Matthieu

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.