question

Robin Brunner avatar image
3 Likes"
Robin Brunner asked Patrick Cloutier commented

Show State Pie and Statistics in 3D Model?

Is it possible to position my State Pie's and other Statistical Charts in my 3D Model? That would be really cool in combination with Oculus Rift.

Regards Robin

FlexSim 17.0.2
oculus riftstate piestatistic
5 |100000

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

Phil BoBo avatar image
12 Likes"
Phil BoBo answered Patrick Cloutier commented

Starting in FlexSim 2018 Update 1, you can unload textures from the media list using the command unloadimage().

Using that functionality, you can do what @Allister Wilson is doing using FlexScript without custom C++ code. You can use viewtofile(), unloadimage(), loadimage(), and setobjecttextureindex() to do what you want.

See the attached example model (render-stats-test.fsm).

It is on the dev list to create an easier way to render stats charts in the 3D view, but in the meantime, this method can be used.


· 3
5 |100000

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

Clair A avatar image
3 Likes"
Clair A answered Phil BoBo converted comment to answer

Hi Robin,

We recently had the same question from a user. So a colleague @Allister Wilson has built a proof of concept.

Here is a screenshot:

And an animated gif of visualizing this chart inside the 3D view with the Oculus Rift:

This is custom development though, there is currently no built-in feature in the software. Feel free to ask @Allister Wilson if you want to know more about this proof of concept.


· 3
5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented

There is still the old Recorder Object in the library tree.The Recorder can show data, but the standard data structure has changed. Thus you can only show table data in the Recorder. You have to convert the State Data into the old data structure in a suitable table and you can use the table in the recorder.

  1. createinstance(library().find("/Recorder"),model());

The code creates the old Recorder object. The States are ordered in an one column tables


recorder-reuse.fsm (22.7 KiB)
· 2
5 |100000

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

David Seo avatar image
1 Like"
David Seo answered David Seo edited

3D Pie Charts, Histogram and trend Charts were possible in old version some years ago but these are changed to charts in dashboards.

But the numeric Statistics of 3D text type are possible in 3D model.

5 |100000

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

Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Matt Long commented

Hi Robin. I don't think this is currently possible, but I'm sure that if you were to post this as an idea it would get some upvotes.

· 1
5 |100000

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