Reco Posted February 15, 2022 Report Posted February 15, 2022 Hi I want to set up a view from the virtual cockpit and move my eye point to looking down to an underslung load. I know FSUIPC has predetermined views but can I set up my view and assign it so I can cycle through the 2d cockpit view and my new virtual cockpit view When I set up my button I get my 2 views but the virtual cockpit view will always go back to virtual cockpit view looking forward Regards Rhys
John Dowson Posted February 15, 2022 Report Posted February 15, 2022 8 hours ago, Reco said: I know FSUIPC has predetermined views No it doesn't. FSUIPC knows nothing about the views you have set-up, it only send controls to the FS to change and set views, as you have defined them. 8 hours ago, Reco said: When I set up my button I get my 2 views but the virtual cockpit view will always go back to virtual cockpit view looking forward It sounds like it is going back to the default cockpit view for that aircraft. Have you changes this (in the camera.cfg file)? I really can't help you with setting up custom views - try looking on avsim.com, I think there are several posts / tutorials on how to set this up, otherwise try asking on that forum. John
aua668 Posted February 15, 2022 Report Posted February 15, 2022 Hi, There are two options, how to set different views of the VC View with the help of FSUIPC. Option 1: You can define custom cameras and assign some of the free hotkey numbers to them. But you are limited to only a few setups. And you have to avoid conflicts with existing assigned hot keys for cameras. You can map then these hotkeys directly to buttons. Option 2: You could control the camera of the current view via LUA programs by using offset 0x8680 / 0x86A0. You have to put your actual window title as a string into offset 0x8680 and write then your view parameters to 0x86A0. A sample function shows the correct way to control the camera. -- function to set cockpit camera for VC function setCameraVC ( pX, pY, pZ, pPitch, pTilt, pHeading ) ipc.writeSTR ( 0x8680 , "***Your window title go here***" ) -- select view to manipulate ipc.writeStruct( 0x86A0 , "6FLT" , pX -- X , pY -- Y , pZ -- Z , pPitch -- Pitch , pTilt -- Tilt , pHeading -- Heading ) ipc.sleep(100) end a little history about the implementation of the offset control can be found here: https://forum.simflight.com/topic/80484-simconnect_camerasetrelative6dof-not-working-as-expected/ Rgds Reinhard 1
Reco Posted February 15, 2022 Author Report Posted February 15, 2022 Hi Thank you John and aua668 for your help much appreciated Rhys
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now