-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Night illumination for the panel #438
Comments
In the JAA/EASA countries (ie, Europe), night operations under VFR (VFRN) are a pain in the ass. The normal pilot license is not enough. You need a special license, an aircraft certified for IFR, an authorization from the local authorities (revised monthly) and many nearby airports prepared for VFRN: your origin, your destination and all the alternate airports. Old c172 are usually not certified for IFRs, even if they have the instruments: maintaining the certification for the aircraft is too expensive. In Spain, airports are usually not prepared for VFRN: the authorities are not very supportive of VFR operations in large airports and much less VFRN operations, and preparing private airports for VFRN is insanely expensive. As a result, VFRN operations in Spain are extremely rare. I honestly have no idea about the cabin lights on a real c172, even if I have booked more than 50 hours in one of them. My only landing experience at night was in a Piper PA28 and I was a passenger (I was the pilot in command until the nightfall) This is much easier in the FAA countries. |
@Juanvvc Thanks for all the info, I think you had mentioned before all the trouble about VFRN in Europe. But isn't the 172 P also certified for IFR flights? If so, then night flying should be possible, right? |
For instance, these guys have two 172 model P certified for IFR: http://ifrsolutions.com/aircraft/ |
Most c172 have the instruments, but they are usually not certified for IFR. For example, the VORs must be accurately calibrated and this is expensive. Cessna has already increased the official maintenance old c172 need to be flyable (specially regarding rust), and many operators of old c172 decided they are not paying the extra costs of an IFR certification for old instruments. Notice all the aircraft in your link use glass cockpits. My flight club sold "my" c172 because the extra maintenance required by Cessna was very expensive. Imagine an IFR certification! In any case, IFR certification for the aircraft is not really needed for VFRN. Apparently, having the instruments is enough... In any case, IFR in a small aircraft is very uncommon, at least in Spain. Too much trouble to get anywhere under IFR if you use a small, slow aircraft. Pilots under IFR in small aircraft are usually training to be commercial pilots, and they are usually clever enough to fly a two-engine aircraft. In this case, they can book hours both under the IFR and two-engine columns :) |
Thanks for all the information Juan, I understand all your points. Just a small comment though:
Are you sure? I don't seem to find a mention of glass cockpit for the second aircraft in that link which is a P model. Anyway, let's change the focus of the question then: in your opinion, should we implement some sort of night illumination to the cockpit beyond the flashlight or not? |
when the work on the flashlight came into being, we had also discussed about a done light in the overhead... there was also mention of a light on the rear door post of the pilots doorway that shone on the panel... |
@wkitty42 Yes, we discussed that but it would have involved another ALS light. I am proposing an easier and probably less expensive solution of using a lightmap on the panel when the dome light is on. |
What we have in the c172p-detailed is definitely valid for night VFR also in Europe. I do have a night rating, which I did at the same time as my PPL, though I do not really have much night flying hours logged. This was before EASA, nowadays night rating (NF) is mandated to be a separate training course in EASA, and perhaps rightfully so, as night flying does involve many risks and pitfalls you don't have when flying in daylight. But it is more common here, as our days are so much shorter during winter. Nevertheless our trusty old FlightGear C172 has what it takes to get flying in the night: navigational lights, pitot heat, more or less IFR avionics with two VORS, DME and an ADF, even artificial horizon and directional gyro, so it is totally doable. In more densely populated areas it is not really that big of a deal as the ground is pretty much lit with street lights and houses, but this does change quite dramatically when you fly cross-country at night: https://www.youtube.com/watch?v=MTTenj5jSaU Nowadays there's GPS but before that, and also now as a backup, in case it fails, you fly VOR radials, and follow bigger roads that are lit, to find your way around. The 172 has a red floodlight in the roof panel pointing at the panel, so it is more or less like that flashlight except that it does not move with your head - and it is dimmable. There is also sometimes a small map light on the left window post that has a "spotlight" cone and the switch is on the left window post as well. Lights in OH-CTLRoofhttp://tigert.1g.fi/kuvat/Simulators/Flightgear/C172-dimensions/abk.jpg
http://tigert.1g.fi/kuvat/Simulators/Flightgear/C172-dimensions/aaz.jpg
In any case, I think we need the dimmable red spotlight. That is what makes the labels of switches and breakers and such visible at night (since there is no backlighting on the 172 panels) - the map light is kind of weird since you don't really have a 3D map on your lap in the sim cockpit anyway, and the cockpit white light is also a bit strange since if you need to fly at night in the sim, you likely should fly in a dark room and have a red-lensed flashlight at hand to look at your map with. |
Newer 172s have flood light strips on the undersurface of the glareshield, which lit the panel (adjustable) and a special map light built in to the left yoke handle. This is OH-SRH, a 2000'ish C172SP, with the new panel and lights: https://www.youtube.com/watch?v=MTTenj5jSaU - we have the floodlight off to see better to the outside - you want to maximize your night vision when flying VFR in darkness, to spot other traffic and landmarks. Also https://www.youtube.com/watch?v=N2ZB8h-G88Q (same OH-SRH with diesel engine in case you wonder the weird sound of the engine :-)) This is from an old night flight on the C152 our club had, it has the similar panel lighting as the C172P: https://www.youtube.com/watch?v=xJCQ6hxAJ9U - also a GPSMap196 :-) Pardon the elevator muzak :-) |
@tigert thanks for the detailed post, I really appreciate it! So, I am all up to implement at least the red spotlight. For that we will need:
Any suggestions? @onox what do you think? We can probably decide on this thread what to do and work on the light itself here, and maybe create a new issue for the top panel improvement if that's judged to be necessary. And thanks once again to both @tigert and @Juanvvc for the detailed answers. |
The only suggestion I have is to ask @wlbragg what's best. The lightmap looks cool though. |
For night flight it would also be nice if the strobes would be visible inside - they are not directly visible, but they show via reflection:
This moisture-reflection likely should be gradual and increase in intensity based on the amount of air moisture (this could be derived from the distance of temperature vs dewpoint I guess) but I have no idea how this could be done through an effect - ideally FG could do this automatically for strobes and landing lights, but maybe we can prototype something on our Cessna and perhaps submit it "upstream" to flightgear..? Could perhaps ask Thorsten in the forum. This similar effect could also be used for lightning strikes I guess - I would thin we don't currently have those implemented in FG? |
FG does not have lightning strikes implemented. As for the lights reflecting from the ground and in the moisture, it may be a bit tricky since ALS does not use real light sources but actually a trick that makes it look like a regular 3D light. So I believe that to have the strobes reflecting in the ground we would need to fake them just like with the current shadow and I doubt it would look realistic. As for the strobes while inside a cloud, maybe there is a way of tricking FG into creating a sudden spike of brightness in those conditions but applied only to the exterior world, but it also looks tricky to me. Anyway, these effects wouldn't be completely related to this issue and if they are possible to implement I would open a new issue and create a new branch for them.
That would be ideal! He would give a more precise opinion about what is possible and what is not, and what he is willing to implement as well. |
Sorry for the late reply, I've been on vacation for the past couple weeks. A lightmap might work for this, but I am not sure we can turn it on and off in real time. I'll investigate. |
@wlbragg Great, let me know about it once you think of a plan 😄 |
We have lightning now in git. I wonder if that effect could be used for strobes though? |
OK, this is doable, we need to decide what lights we want then we can create the lightmaps and add the properties to control them. A small map light or something of that sort should be easy to do so don't "not" decide to make one because you think it hard to do. |
Great! Would we need one light map for each panel or just one for all of them? So now we "just" need to decide how to implement it, i.e. how the lights behave in the 172. |
As far as I know that GC should work fine. @dany93 can you run the shuttle? IF so do you get any interior lighting in it. As @gilbertohasnofb indicated, if the "instrument light" knob is at 100% and you have power to the buss, you should see something in the way of lighting on the panel no matter the configuration of the overhead switches. The one slider on the overhead only controls the dome lighting so it isn't a factor for our testing/debugging purposes. I am squeezed for time until tonight, let me think about this and see if I can come up with a foolproof test to help debug this. In the meantime, if you can, please try the shuttle. Or any other aircraft that we can determine is using a light map. I can't off the top of my head think of any other, but there has to be others. Does the 182 have any light map lighting? |
Are you saying that aircraft has light maps and that they worked? |
Rembrandt lights are yet another technique which is different than using light maps AFAIK. |
No, that is a different technique. |
@wlbragg yes, the c182 uses lightmaps. We have for each of the three dome lights one lightmap, one for the glareshield light, and one for the center pedestal light. Just the instruments doesn't use lightmaps and that's o.k. for me. |
@dany93 please give the c182s a spin then and tell us what you can see. I will switch to my Nvidia card and test both the c172p and the c182s later tonight and let you know of what I can see. |
Just confirming that the light maps of both the c172p as well as the c182s work fine on my laptop regardless of the video card I use (tested with both a NVIDIA GeForce GTX 1050 and an Intel HD Graphics 630). |
@dany93 could you try turning the GLARESHIELD knob (bottom knob, rotate the inner part) all the way to 100% and post an image? |
@dany93 Yeah, the light map is definitely broken for you. You should see something like this: Since this happens with aircraft from both projects I suspect this issue is related to your video card and/or to the implementation of the light maps in the source code rather than anything we did here locally. Maybe we could raise this issue with Thorsten. |
@dany93 can you also post your log using loglevel = debug |
@gilbertohasnofb I wonder if we shouldn't include an option in the GUI to use integral lighting (material animation) instead of post lighting (light maps) for those with weaker GPU's. I know this is probably the 3rd time I have suggested this and we keep deciding against it. But I am concerned that we are going to catch flack from the dev list folks if we get very many reports of the light maps not working and users have no panel lighting It would be a GUI option similar to the shadow VS no shadow. Or complex engine VS easy. Or we just add integral lighting to the entire panel under the "Panel lighting" rheostat, instead of only the compass and the RMP. Think about it! @dany93 I didn't see anything out of the ordinary in your log, thanks for posting it. |
Surely we can consider doing that in this case if you want to go through the trouble, but personallyI would rather focus on developing more interesting things for the major upcoming release. Our aircraft is already quite heavy so that folks on very low end PCs might not be able to fly it any longer (though they have the option of reverting to any old state of our master if that's the case). We need to make a simple decision: do we try to cater for everyone including those with very low end PCs or do we focus on new features and showcasing what the sim is capable of as of 2018? There is nothing wrong with the first but I thought we all kind of agreed on the second. And implementing two systems (a pretty one for high end PCs and a simpler one for low end) could end up adding more stuff to the code which might in turn make the performance of the aircraft even more problematic (though it might be negligible in this very case, I am writing as a general approach, ok?).A better approach would possibly be to alert Thorsten and see if he can fix the issue on his side. But if that doesn't solve anything and you don't think this is too much trouble then by all means let's do it, I would be happy to help with testing or with the dialog part of the issue. |
I wholeheartedly disagree with this suggestion. We haven't seen a single model P having that and I would find it sad that we would compromise a proper simulations just to hack our way around a graphic bug. This would also teach people that the RADIO LT would control all panel lights and that PANEL LT would do nothing, which is unrealistic. IMO that's a big no no. edit: |
Some more info about my config, in case Thorsten would ask for it.
|
If, unfortunately, the decision is to include an option, I think that the setting would be better at the FlightGear level (before launching, like Rembrandt ON / OFF) because it will concern several aircraft. |
My first fgfs.log was not at debug level. Here is one at debug level. Sorry. |
@dany93 still nothing noticeable or wrong that I expected to see in the logs, thanks. I looked up some details on that card and I am convinced that it should be working if everything is current and nothing is broken. You can try a long shot and change the version numbers on the shader being used, (remember to change it back if it doesn't work). At the top of the shader files in fgdata/Shaders/ Try changing the line in each of those files to Again, remember to change it back if it doesn't work. It's a long shot and more for my curiosity.
@gilbertohasnofb it's not much trouble or work, and I'm no where near adamant about it. I am only trying to head off any future negative critiques from the dev list folks and also cater to the wider audience who may still be able to run this aircraft. I don't necessarily look at this graphics issue as a less powerful hardware case as we don't really know the scope of the issue. If it is only a few systems that have this problem then maybe it is not a good idea. I guess we need to gather some more information as to the scope of the problem before deciding a fix, if any. |
This. Agreed 100%. So let's see what comes out from the mailing list and from Dany's tests and then we see what to do. I sympathize as well with avoiding future negative critiques, but let's keep in mind that this is a problem with the light map system not our aircraft. So let's wait for some more information and then we decide how to proceed -- I would be happy to help if we decide to implement the fix you mentioned. |
@wlbragg |
@wlbragg My potato is 5 years old. And it can run the c172p with the light maps just fine. Maybe not 60 fps (rather 20 to 25), but it's still flyable (as long as I avoid certain scenery). Do we really want to support videocards that are over a decade old and have 6x less GFLOPS than my Intel card? I say those people can use the basic renderer instead. @dany93 Have you tried running the space shuttle as @wlbragg suggested? Light maps should be broken there too. Do you have some Nvidia control panel program on Linux to set certain settings? |
@onox I agree with you on this.
That could be useful, dany. If by any change the shuttle runs fine then the issue would be with how the light maps are implemented in the c172p and c182s, though I find that to be very unlikely to be the problem. |
On 16 jul 2018, I wrote:
I asked in FGDevel mail list, Thorsten lead me to the the solution. In Rendering Options > Shader Effects , Custom settings was unchecked (probably by default). With Shader effects are at 4 (from 0 to 4 / 4), but it was not enough. Solved for my question, thank you for your responses. |
Glad you found that, @dany93 ! This is one of the types of things that I hate having to dig around to find and fix. There are numerous pieces of eye-candy in the sim and many craft. Without certain higher shader effects being enabled, those pieces are not rendered. Turn up the setting and they appear but may cause some FPS loss. This type of thing is why my Additional Settings in the launcher is 150+ lines where I set properties to my defaults and comment about them 😸 |
I wrote it too quickly... I didn't find the solution by myself, Thorsten lead me to it. |
Wow, how'd we all miss that, it was to simple? 😆 |
I noticed this while loading flightgear "Next" today:
ignoring unknown axis-alignment'yx-plane'.
ignoring unknown axis-alignment'yx-plane'.
ignoring unknown axis-alignment'yx-plane'.
Aircraft/c172p/Models/c172p.xml:
<axis-alignment>yx-plane</axis-alignment>
Did you mean xy?
…-Pat
|
Currently we have the amazing ALS flashlight in our plane, but what if also added some floodlight to the cockpit? How common is it in this type of model? Maybe @tigert or @Juanvvc know about it.
We could implement it via a lightmap that would be created for each individual panel (and interiors as well if necessary). The effect would be something like this (but maybe darker):
The image above is from an FSX product, but here is how a lightmap looks in FG:
So what do you all think about this? I'd be happy to create the textures myself.
The text was updated successfully, but these errors were encountered: