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.


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


Idea

runshotgun avatar image
runshotgun suggested Simbol commented

[VFX] GroundAttributeType > Position under particle in addition of under the emitter

Currently GroundAttributeType > Position can only return the position under the emitter.

In order to prevent a particle from going under ground around a hill, mountain or angled terrain it would be useful to get the position under the particle so we can clamp it.

While this would be fairly computationally intensive to get on every frame, here are a few ideas to optimize this:

  • Having the data computed every second or so;
  • Compute as a function of how many particles are currently emitted (more particles increases the delay between updates);
  • Only compute/update if the particle moved move than a meter (or other unit) since the last update
  • Divide a group of particles into a grid projected on the ground (or use the topography grid) and extract 2, 9, 16 or 25 ground positions instead of getting it for every particle

Thank you!

Ref: https://docs.flightsimulator.com/html/Developer_Mode/VFX_Editor/Nodes/GetGroundAttribute.htm

vfx
10 |10000

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

1 Comment

·
Simbol avatar image
Simbol commented

Great idea.

Regards,
Raul

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 a Comment

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

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.

Related Ideas