Board index FlightGear Development

View different planes

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

View different planes

Postby jam007 » Sun May 05, 2013 4:06 pm

Is it possible to use a property for the at-model-idx to make it possible to switch model that you look at in flight? Or do you feed the look at positions from different models to do that? Or maybe another way?
jam007
 
Posts: 477
Joined: Sun Dec 16, 2012 10:04 am
Location: Uppsala, Sweden
Version: 2017.3.1
OS: Ubuntu 16.04

Re: View different planes

Postby Johan G » Sun May 05, 2013 4:14 pm

I'm not really sure what you are after, but if I understand you correctly you want to switch the model that is shown.

I think that rebootl had something like that for his Lockheed U-2S and its ejection seat. If I understood it right he at the time of ejection swapped the aircraft for the ejection seat and added the aircraft as a submodel.

Have a peek on this topic: Current development: U-2S droppable pogos and ejection seat.
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)
Johan G
Moderator
 
Posts: 5546
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: View different planes

Postby jam007 » Sun May 05, 2013 5:44 pm

I would like to look at an other model, selected during flight.
jam007
 
Posts: 477
Joined: Sun Dec 16, 2012 10:04 am
Location: Uppsala, Sweden
Version: 2017.3.1
OS: Ubuntu 16.04

Re: View different planes

Postby Johan G » Sun May 05, 2013 6:26 pm

Ah, sorry, my misunderstanding. Are you referring to Model view?
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)
Johan G
Moderator
 
Posts: 5546
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: View different planes

Postby Hooray » Sun May 05, 2013 6:30 pm

why exactly do you want to show a different 3D model ? LOD/performance optimizations ?
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: 11376
Joined: Tue Mar 25, 2008 8:40 am

Re: View different planes

Postby jam007 » Sun May 05, 2013 6:31 pm

As the pilot is looking towards another aircraft
jam007
 
Posts: 477
Joined: Sun Dec 16, 2012 10:04 am
Location: Uppsala, Sweden
Version: 2017.3.1
OS: Ubuntu 16.04

Re: View different planes

Postby jam007 » Mon May 06, 2013 12:02 pm

As I already had nasal code (to show the "blips" on the radar) that calculated relative angle in pitch and heading to MP-aircrafts I used that to drive the goal-offsets in a view. Now I can look at the nearest aircraft with a single button press. :)
But maybe there is some other way to do it?
jam007
 
Posts: 477
Joined: Sun Dec 16, 2012 10:04 am
Location: Uppsala, Sweden
Version: 2017.3.1
OS: Ubuntu 16.04


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest