Skip to content

WIP: Visualisation metadata sharing with simulation. - #1366

Draft
Robadob wants to merge 5 commits into
masterfrom
visinfo
Draft

Robadob wants to merge 5 commits into
masterfrom
visinfo

Conversation

@Robadob

@Robadob Robadob commented Mar 17, 2026

Copy link
Copy Markdown
Member

In development as part of CrisisTrack, interface needs review.

In order for simulations to appropriately scale models, this feature passes back limited visualisation metadata (e.g. orthographic projection zoom value, and view position/direction). It would be possible to do this in shader, but allowing it to be handled at a model level enables more complex scaling behaviours to be represented.

Current implementation works, and will suffice for CrisisTrack however I'm regretting the decision to hide it inside the host environment interface, as it won't be consistent with device environment.

  • Protect against race conditions (they seem unimportant in this context, worst case a single simulation step sees a junk value)
  • Finalise/refactor interface
  • Fix CI (the current error seems spurious at first glance)

Matching visualiser PR: FLAMEGPU/FLAMEGPU2-visualiser#152

@Robadob Robadob self-assigned this Mar 17, 2026
Robadob added 2 commits March 17, 2026 14:39
This is a limitation of graphs exported by nlohmann::json

Requires checking the test suite, and potentially adding an additional test.
@Robadob

Robadob commented Apr 28, 2026

Copy link
Copy Markdown
Member Author

I've also now added a bugfix that allows JSON Graph files to have links before nodes, as I hit this limitation exporting a graph from nlohmann::json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant