question

Tomi Kosunen avatar image
1 Like"
Tomi Kosunen asked Sam Stubbs commented

How to locate the viewpoint to transporter

I'd like to attach the viewpoint to a transporter so that the viewpoint would follow the transporter driver: see the simulation from the drivers perspective.

FlexSim 17.0.1
viewpointcamera
5 |100000

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

Ralf Gruber avatar image
0 Likes"
Ralf Gruber answered

Marco with Flexcon has created a module to do that:

https://answers.flexsim.com/content/kbentry/34012/cams-module-1.html

Good luck

Ralf

5 |100000

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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Sam Stubbs commented

@tomi.kosunen the solution that @Ralf Gruber gives does follow one transporter with a fixed camera. If you want the camera to follow an object maybe this post give you some ideas: Follow a transporter around

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

Tomi Kosunen avatar image Tomi Kosunen commented ·

Thanks @steven.hamoen and @Ralf Gruber for the answers. I have explored the examples but I still don't know how to set the camera location to certain xyz position, that's basically what I need to do. Then I can set the code to transporters custom draw trigger and that's it.

0 Likes 0 ·
Arun Kr avatar image Arun Kr Tomi Kosunen commented ·

Hi @tomi.kosunen,

If you want to follow a transporter the spatial co-ordinates of the transporter is the x,y,z position you need to point.

Regards,

Arun KR

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Tomi Kosunen commented ·

@tomi.kosunen I think you should take a look at the command setcameradirection but I'm not very familiair with this view stuff but I guess that is the function you could use to set the camera the way you want. If somebody else can correct me please do.

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.