Board index FlightGear Development New features

Alternative camera control

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Re: Alternative camera control

Postby SkagenAirShuttle » Mon Apr 10, 2017 7:01 pm

I cant turn FGCamera on, when I press 8 the yoke on the plane just go down.
SkagenAirShuttle
 
Posts: 1
Joined: Mon Apr 10, 2017 6:58 pm

Re: Alternative camera control

Postby wkitty42 » Tue Apr 11, 2017 3:50 am

are you sure that's the proper key? 8 is the key to push the yoke in and point the nose of the craft down...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4630
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Alternative camera control

Postby jarl.arntzen » Tue Apr 11, 2017 9:38 am

http://wiki.flightgear.org/FGCamera#Controls lists 8 as a preconfigured view key.
Frequent Flyer. Occasional Lander.
jarl.arntzen
 
Posts: 106
Joined: Thu Jan 03, 2013 9:43 pm
IRC name: Jarl Arntzen
Version: 2017.1.1
OS: Ubuntu 14.04

Re: Alternative camera control

Postby wkitty42 » Thu Apr 13, 2017 3:08 am

is your number lock on or off?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4630
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Alternative camera control

Postby Torsten » Wed Jul 19, 2017 6:07 pm

Hi,

is Marius_A still around here?
If so: If you don't mind, I'd like to add your FGCamera as an addon to our FGAddon repository and make the required changes to make it compatible with the --addon= command line feature.
For that, I'd need an explicit statement that the code is licensed under GPL2+ if that is the case.

Thanks, Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 612
Joined: Fri Feb 01, 2008 9:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Alternative camera control

Postby Marius_A » Thu Jul 20, 2017 9:16 am

Hello,

The code is licensed under GPL2+

Current (development) version is here:
https://drive.google.com/open?id=0B7ZpQgmbsSZGNkJOYzZFb1RZUnc

  • FGCamera uses its own config fgcamera_cfg.xml
  • original mice.xml in FGData has to be replaced with modified mice.xml
Last edited by Marius_A on Thu Jul 20, 2017 12:57 pm, edited 1 time in total.
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: Alternative camera control

Postby www2 » Thu Jul 20, 2017 11:44 am

Marius_A wrote in Thu Jul 20, 2017 9:16 am:The code is licensed under GPL2


is the code only GPLv2 or GPLv2 and later (e.g. we can use in GPLv3)?
www2
 
Posts: 224
Joined: Thu Apr 16, 2009 1:58 pm

Re: Alternative camera control

Postby Marius_A » Thu Jul 20, 2017 12:59 pm

GPL v2 and later. I have edited my previous message.
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: Alternative camera control

Postby www2 » Thu Jul 20, 2017 5:24 pm

thanks, just for clarity and keep the good work.
www2
 
Posts: 224
Joined: Thu Apr 16, 2009 1:58 pm

Re: Alternative camera control

Postby vanosten » Sun Sep 03, 2017 10:03 am

I am using FG version 2017.2.1 on Windows 10. Unfortunately I have some problems:

If I use the latest stable version (fgcamera_v1_2)
  • I cannot adjust the current view with the keyboard. Using the mouse works.
  • Changing the FOV works in the CFG dialog
  • When I try to save (no matter in which sequence having used "store" button in FGCamera CFG and "save" in FGCamera main window it will not keep the view positions - neither within the FGFS session or between session. The same applies to the name of the camera positions.

I I use the latest development version (fgcamera_201706)
  • I cannot adjust the current view with the mouse (yes, I have replaced the mice.xml, too). Now the keyboard keys left/right/up/down seem to work, but PgUp and PgDown does not seem to work - i.e. because the mouse does not work and the PgUp/PgDown does not work I am stuck. Edit:Sometimes the mouse works (but then I cannot pan the view) and sometimes it does not - within the same FGFS session. When the mouse works, then the keyboard stops working. I guess there is something about the sequence of stuff, where I have clicked last?
  • Changing the FOV in the main dialog does not work (e.g. clicking into next field, pressing Enter, clicking into background).

PS: what does "spring loaded mouse" mean?

Is there some way to get by these problems?
[/list]
Maintaining osm2city
vanosten
 
Posts: 312
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Alternative camera control

Postby Marius_A » Mon Sep 04, 2017 3:17 pm

  • "Click right mouse to cycle mouse behaviour" should be selected in Mouse Input Options dialog (File > Mouse configuration);
  • Up/Down camera motion is controlled by Shift + PgUp/PgDown
  • FOV is controlled by Shift + Up/Down
  • To register current camera view shortcut key, click on selected slot (bottom left screen corner) while holding Shift (use Ctrl to remove camera view from the slot).
  • In "Spring loaded mouse" mode mouse look will work while right mouse button is down. When RMB is released, mouse will return to its previous mode.
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: Alternative camera control

Postby vanosten » Mon Sep 04, 2017 5:26 pm

Works great (I use the newest version). Thank you very much.
Maintaining osm2city
vanosten
 
Posts: 312
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Alternative camera control

Postby slawekmikula » Tue Oct 03, 2017 8:53 pm

Torsten wrote in Wed Jul 19, 2017 6:07 pm:Hi,

is Marius_A still around here?
If so: If you don't mind, I'd like to add your FGCamera as an addon to our FGAddon repository and make the required changes to make it compatible with the --addon= command line feature.


Ok, i've created working implementation of the latest code of FGCamera as addon. Everything is on the repository: https://github.com/slawekmikula/flightg ... n-fgcamera
- base code was code marked as 201706 from Marius
- i've refactored the code to run as an addon
- added TODO with information about my next steps (mostly refactoring as I do not know every aspect of the addon)
- fixed/implemented overview mini-panels with configuration
- changed vfr panel selection from editbox to combobox

During this i've found one issue with flightgear addon registration. I'll post it on devel list and cross-link with addon thread here.

I'll be most grateful if Marius could take a look at the code if the implementation/changes are OK. Everything is in commits from base source code. Mostly i've added code to register cameras as "slots" in fgcamera.nas (marked as FIXME).

For everyone interested take a look at the implementation.
Simple running:
- get the addon
- copy from contrib/mice.xml to fgdata/mice.xml (overwrite - make backup first !)

Have fun !
- start flightgear with commandline (!) parameter e.g. --addon="<path to fgcamera addon>"
slawekmikula
 
Posts: 48
Joined: Sun Feb 19, 2017 9:31 am

Re: Alternative camera control

Postby Hooray » Tue Oct 03, 2017 9:00 pm

having to overwrite files sounds like another unnecessary issue to me, given that this is exactly what a plugin/module or "addon" framework is intended to address.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11114
Joined: Tue Mar 25, 2008 8:40 am

Re: Alternative camera control

Postby slawekmikula » Tue Oct 03, 2017 9:06 pm

Hooray wrote in Tue Oct 03, 2017 9:00 pm:having to overwrite files sounds like another unnecessary issue to me, given that this is exactly what a plugin/module or "addon" framework is intended to address.


Yes, that is in todo list, but i think Marius and others should look into it and provide some feedback.
slawekmikula
 
Posts: 48
Joined: Sun Feb 19, 2017 9:31 am

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 3 guests