question

Viktor TT avatar image
0 Likes"
Viktor TT asked Phil BoBo commented

How can I create moving information plane?

Hello!

In my model, I would like to create a moving information table connected to operators. (To show their current task over them)

Unfortunately, my solution doesn't really work.

1. I can't add any text message to "All around Billboard",

2. I moved a text into the billboard plane:


but it can't rotate together with the owner object:

Have you any idea to solve this problem?

Thanks, Viktor

FlexSim 18.0.1
operatorplanefollowinformation
bubble3.png (2.0 KiB)
bubble2.png (20.8 KiB)
bubble-1.png (105.2 KiB)
5 |100000

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

Dawid Dabal avatar image
2 Likes"
Dawid Dabal answered Viktor TT commented

Hi Viktor,

It would be much easier if you put Slide object into the operator instead of plane + text.

You can see this solution in attached model.

model-1.fsm


psc-1.png (50.4 KiB)
model-1.fsm (22.2 KiB)
· 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.

Viktor TT avatar image Viktor TT commented ·

@Dawid Dabal Thanks for your answer! You respond me as fast as usual. It's good, easy and simple! :)

0 Likes 0 ·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Phil BoBo commented

Attached is an example model (rotate-towards-viewpoint.fsm) that shows how you can rotate an object towards the camera viewpoint by using the following code in its Custom Draw trigger:

current.rotation = [90+viewpointrx(view).value, 0, viewpointrz(view).value];


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

Viktor TT avatar image Viktor TT commented ·

@phil.bobo Thank you for your idea, especially for creating some attachment! I like your solution, I will keep it in my mind!

0 Likes 0 ·
Viktor TT avatar image Viktor TT commented ·
11298-rotate-towards-viewpoint-re.fsm @phil.bobo

Update: I sent back your model, pls take a look on it. You moved the text into the operator, so FlexSim had the idea the OP is LOADED, so if the operator move in the simulation, it will use the "WalkLoaded" animation to walk.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Viktor TT commented ·

You can move the Text out of the operator and set its location and its rotation:

Object operator = model().find("Operator1");
current.rotation = [90+viewpointrx(view).value, 0, viewpointrz(view).value];
current.location = operator.location;
current.location.z += 3;

11307-11298-rotate-towards-viewpoint-re.fsm

0 Likes 0 ·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Viktor TT commented

@Viktor TT Have you tried using the ondraw of the operator and use commands like draw3Dtext and all the gl.. commands to create what you want?

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

Viktor TT avatar image Viktor TT commented ·

@steven.hamoen Many thanks for your idea. To be honest, I've never used this drawing commands before, but I will take a look on them!

0 Likes 0 ·

Write an Answer

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

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