Board index FlightGear Development Aircraft

JSBSim Piper J-3 Cub  Topic is solved

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Thu May 20, 2021 4:50 pm

I actually looked at that and decided I will change the logic to take you to heli view when coming from the front seat and the payload is in the way. I vaguely remember when first adding the feature that I figured you could just go around the opposite way to get to heli view. But that is a pain, there is no reason it can't be made to skip over the payload. Now that I know other notice the hassle, I'm more motivated to fix it. I wanted to change the loop to a listener thinking it may be causing some delay, but after testing it, it really didn't make any noticable differance that I could tell. But I still think it should be changed.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby D-ECHO » Thu May 20, 2021 4:53 pm

I agree ;)
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Thu May 20, 2021 10:29 pm

Well the loop was more of an issue to remove than I realized. It needs a loop for the water portion, especially the sprayer. Like I said before, removing the entire loop really isn't changing performance anyway, so I;m leaving it.
I think I fixed the view issue completely, but I didn't test every iteration.
Also I wasn't sure if there was a reason you changed the current-view to current-view-raw? But I changed it back because it was slightly easier for me to follow the logic that way. If there is a reason I should be using "raw" please explain!
Thanks
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Thu May 20, 2021 10:31 pm

During this issue I realized I really need to update the "Aircraft Help". It's missing keyboard functions available in the craft
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby D-ECHO » Fri May 21, 2021 4:27 am

As far as I understand -raw is the view number you use to define the view (e.g. view n="100" has view-number-raw=100) whereas the normal view-number is assigned based on which views are loaded and may change again in future FG versions (e.g. when a new view is introduced like the Still view). I'm not 100% sure about this though.
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Fri May 21, 2021 5:22 am

Ah, OK, if it's working correctly, I'll leave it alone for now. I may revisit it when I start back up on enhancements.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby Volador » Mon Jul 05, 2021 11:24 am

I don't know if any of the recent updates to the Piper cub have affected fps - there seems to have been a big drop. I've included some screen shots comparing fps here https://forum.flightgear.org/viewtopic.php?f=37&t=39382#p388526
User avatar
Volador
 
Posts: 1140
Joined: Tue Sep 01, 2020 4:58 pm
Callsign: Volador, G-VLDR
Version: 2020.4
OS: Windows 10, 64 bit

Re: JSBSim Piper J-3 Cub

Postby TheEagle » Sat Nov 20, 2021 3:39 pm

D-ECHO wrote in Fri May 21, 2021 4:27 am:As far as I understand -raw is the view number you use to define the view (e.g. view n="100" has view-number-raw=100) whereas the normal view-number is assigned based on which views are loaded and may change again in future FG versions (e.g. when a new view is introduced like the Still view).

Yes, that's right - I read it somewhere on the Wiki, only where exactly I don't remember … :mrgreen: :roll:
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: JSBSim Piper J-3 Cub

Postby TheEagle » Sat Nov 20, 2021 4:52 pm

I'm having a big problem with the J3Cub - I basically cannot use it, because it puts my frame rate down to 1 FPS. I get (for me almost normal) 6 - 8 FPS if I put the simulation speed down to ½. Can you try to find the culprit ? I've already tried scaling down the large texture, which had no effect at all. I saw many interpolation tables in the main FDM file where there is just a number in other aircraft - could that be the cause ? I also tried commenting out the systems, but that obviously resulted in JSBsim not finding properties and subsequently shutting down.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: JSBSim Piper J-3 Cub

Postby Ysop » Sat Nov 20, 2021 5:06 pm

There are FDM-files having three times the lines and having implemented large look-up tables, this is usually of no impact on the frame rate. Certainly there is a limit, but taking into account for what JSBsim is designed for, those tables shouldn't be an issue. Compare with F-16 or E500.

Just my 2cts to prevent investigating into an unlikely cause.
User avatar
Ysop
 
Posts: 1348
Joined: Thu Oct 25, 2018 10:06 pm
Version: 2020.3.18
OS: ubuntu 22.04

Re: JSBSim Piper J-3 Cub

Postby TheEagle » Sat Nov 20, 2021 5:29 pm

Hmm … well, I have similar problems with the F16 and the Extra500 … they both get me FPS around the 3 - 4. Well, maybe my hardware is simply too old.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Sat Nov 20, 2021 7:43 pm

The Cub has both hi-res textures and lo-res textures accessed through the "Select Livery" GUI. Try using the low-res textures. If that doesn't help let me know.

I am working on the view issue as we speak. It needs some updating. I also just fixed a bug in the Amphibious variant startup and tutorials. I should be pushing all the fixes and new work in an hour or so.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Sun Nov 21, 2021 3:21 am

Well I didn't get anything pushed to the repository because I ran out of time, but I did get some issues resolved and I will push them hopefully tomorrow.
Fixed an issue with the amphibious variants toggle switches not working.
View changes system upgraded.
Some various variant refactoring.
Power of 2 textures fixed.
I'll try to push changes tomorrow.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby wlbragg » Sun Nov 21, 2021 8:58 am

Changes pushed to svn, git and datcom repositories. Please report back any issues.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: JSBSim Piper J-3 Cub

Postby TheEagle » Sun Nov 21, 2021 12:39 pm

Okay, I will give it another try in the evening !
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 13 guests