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 Marius_A » Fri Mar 28, 2014 8:06 pm

Temporary solution here

Copy fgcamera folder to "../Data/Nasal/"
FGCamera should work with any aircraft now. However, the functionality will be limited (only one cockpit view and one external view (keys "1" and "2")).
To be able to customize/create new camera views, property "/sim/fgcamera-enabled" should be created (in aircraft's ...-set.xml file):
Code: Select all
<PropertyList>
   <sim>
      <fgcamera-enabled>1</fgcamera-enabled>
      <fgcamera>
         <camera1 include="fgcamera/view1.xml"/>
      </fgcamera>
   </sim>
</PropertyList>

Use dr-400_pilot_view.xml as a template for new camera views.
Marius_A
 
Posts: 92
Joined: Wed Dec 04, 2013 3:20 pm

Re: Alternative camera control

Postby flyingfisch » Sun Mar 30, 2014 2:21 am

Where should I put default_cockpit.xml and default_external.xml?
Beechcraft A35 Bonanza
Wiki Page
GitHub Repo
Improving the 737-300
Forum Thread
All my projects
User avatar
flyingfisch
 
Posts: 306
Joined: Mon Oct 07, 2013 2:11 pm
IRC name: ffisch
Version: 3.0
OS: Ubuntu 12.04

Re: Alternative camera control

Postby Marius_A » Sun Mar 30, 2014 8:04 am

default_cockpit.xml and default_external.xml should be in "../data/Nasal/fgcamera/"
Marius_A
 
Posts: 92
Joined: Wed Dec 04, 2013 3:20 pm

Re: Alternative camera control

Postby flyingfisch » Wed Apr 02, 2014 2:14 pm

Is it possible to edit the fgcamera_cfg.cfg to allow rotating view on the Z axis by button press?
Beechcraft A35 Bonanza
Wiki Page
GitHub Repo
Improving the 737-300
Forum Thread
All my projects
User avatar
flyingfisch
 
Posts: 306
Joined: Mon Oct 07, 2013 2:11 pm
IRC name: ffisch
Version: 3.0
OS: Ubuntu 12.04

Re: Alternative camera control

Postby imagio » Thu May 08, 2014 5:37 am

This is really cool! Greatly enhances realism. Will it be included in an upcoming release of FG?
imagio
 
Posts: 33
Joined: Wed Mar 19, 2014 6:31 pm
Location: Pittsburgh
OS: Win 8.1

Re: Alternative camera control

Postby Hooray » Thu May 08, 2014 11:56 am

Will it be included in an upcoming release of FG?

So far, there's been no merqe request as far I know - but If it's integrated with Marius_A's missions work, it could end up in 3.2 as an optional feature.
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: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Alternative camera control

Postby HelldiverSquadron » Fri May 09, 2014 12:50 am

Can't wait. Marius_A is a genius--just plain genius.
User avatar
HelldiverSquadron
 
Posts: 392
Joined: Sat Feb 16, 2013 7:35 pm
Callsign: Friend
Version: 3.0
OS: Windows 7 Ultimate

Re: Alternative camera control

Postby Marius_A » Mon Jul 07, 2014 4:50 pm

Development of FGCamera continues. The script is being redesigned to be compatible with default view system.
Upcoming version (FGCamera v1) will have new camera mode: "world-view".
Marius_A
 
Posts: 92
Joined: Wed Dec 04, 2013 3:20 pm

Re: Alternative camera control

Postby Hooray » Mon Jul 07, 2014 5:02 pm

for 3.2, this is obviously now too late, but afterwards it would make sense to directly integrate your changes with view.nas and modernize the file accordingly, I think Philosopher also had some changes there - so once you have completed that, I'd just file a merge request so that this functionality can be included as an optional feature in upcoming versions.

Like we previously discussed, there are quite some overlapping features in various aircraft - and unifying the whole thing would make a lot of sense, I think we even have a few AI missiles that provide custom camera views, and IIRC there's also some helicopter-mounted camera system using its own Nasal code.

Thus, someone doing camera related work, would probably be well-advised to check out what we've got so far and see if there's any useful code that could/should be generalized and unified over time.

Another user started toying with a canvas-based view manager that renders a camera view to a canvas, this would all be property based, too - so having a generic Nasal script would be kinda useful then obviously.
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: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Alternative camera control

Postby punkepanda » Mon Jul 07, 2014 10:19 pm

Marius_A wrote in Mon Jul 07, 2014 4:50 pm:Development of FGCamera continues.

Anywhere to test latest code? You might be wrong about the head auto angle (previous version). There is a correct way and a wrong way. My guess is that the correct way is what you are aiming at?
punkepanda
 
Posts: 234
Joined: Mon Nov 04, 2013 10:11 pm
Callsign: LostFlight
Version: 2.12
OS: Arch Linux

Re: Alternative camera control

Postby Marius_A » Wed Aug 06, 2014 3:26 pm

FGCamera v1 for testing purposes

Installation:
  1. Download fgcamera_v1.rar;
  2. Delete (if exist) FG HOME/aircraft-data/FGCamera;
  3. Delete (if exist) FG ROOT/Nasal/fgcamera;
  4. Copy fgcamera folder (from downloaded archive) to FG ROOT/Nasal;
  5. Use FG ROOT/Nasal/fgcamera/fgcamera_cfg as config.
Usage:
  • use number keys 0..9 to select camera views;
  • use arrow and pgup/pgdn keys to move cameras;
  • hold right mouse button to pan view;
  • goto view >> fgcamera (experimental) to create and manage camera views.
FGCamera v1 in action:

Detailed usage instructions will be added to the FGCamera wiki page later.
Marius_A
 
Posts: 92
Joined: Wed Dec 04, 2013 3:20 pm

Re: Alternative camera control

Postby Johan G » Wed Aug 06, 2014 5:41 pm

Looks very smooth! 8)
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6625
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Alternative camera control

Postby HelldiverSquadron » Wed Aug 06, 2014 8:45 pm

G'day! Looks really smooth! I love the scenery panning and whatnot. Given all of the temporary fixes in the thread, is there an all-around good download for the cam? Thanks!
User avatar
HelldiverSquadron
 
Posts: 392
Joined: Sat Feb 16, 2013 7:35 pm
Callsign: Friend
Version: 3.0
OS: Windows 7 Ultimate

Re: Alternative camera control

Postby Milo » Thu Aug 07, 2014 9:13 am

I must admit, this is what it is! Its a major step forward for FGFS.
I really love it. It gives a lot of freedom and joy to use this sim.
Thank you for such a feature that brings our beloved sim forward.

Regards
GVX0250 _ FGFS v.Git _ Win10_ Asus N76V, RAM8GB, CPU: i7 2.4
Milo
 
Posts: 48
Joined: Mon Feb 07, 2011 12:11 am
Location: Luxembourg
Callsign: GAX0250
Version: Git
OS: Win8.1

Re: Alternative camera control

Postby HelldiverSquadron » Sun Aug 10, 2014 5:39 pm

Welcome to the community, Milo! If you'd like to fly around, give me a shout at: helldiversquadron at gmail.com. Thanks!
Last edited by Gijs on Sun Aug 10, 2014 5:41 pm, edited 1 time in total.
Reason: E-mail address
User avatar
HelldiverSquadron
 
Posts: 392
Joined: Sat Feb 16, 2013 7:35 pm
Callsign: Friend
Version: 3.0
OS: Windows 7 Ultimate

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest