• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Blender 2.70, Blender2FSX Tools (Video Tutorials)

Is this gauge part of an airplane? If so then your .dds file needs to be in FSX/Sim Objects/Airplanes/Your airplane/texture.

Ed

Sorry! I canceled my post before seeing your answer ... because I have found the answer !!! My problem was that my dds file does not have the same name as used in the loading of the texture in Blender ...! Case solved! A thousand apologies friendly... :D
 
Hi Krispy,

I have a new proposal for a video tutorial:
How to illuminate 3D gauges on the dashboard, and how to model a warning light or indicator light in the virtual cockpit.
In other words: How to create lights in the virtual cockpit with Blender2FSX...

My request is motivated by the fact that I don't manage illuminate "from behind" the warning lights of my plane ...! I hope this is not too much to ask ... :D

Thank you for all your help ...
 
Last edited:
Hi Krispy,

I have a new proposal for a video tutorial:
How to illuminate 3D gauges on the dashboard, and how to model a warning light or indicator light in the virtual cockpit.
In other words: How to create lights in the virtual cockpit with Blender2FSX...

My request is motivated by the fact that I don't manage illuminate "from behind" the warning lights of my plane ...! I hope this is not too much to ask ... :D

Thank you for all your help ...

Hi Chrismot!

I will try to cover lightmaps in my new video tutorial series that I am starting. Until then Mr. Bill Leaming AKA (N4gix) made a very, very good tutorial. This is the tutorial that I use when making Emissive texture lightmaps.

I have tried to find the tutorial again on the web but it is not there anymore. But I made me a copy that I use. Below is the tutorial:

Thank you Mr. Bill Leaming(N4gix) for your very nicely written tutorial!!!!!!!!

VC Gauge Backlighting - A Tutorial
Using Emissive Texture Lightmapping


+++++ By Mr. Bill Leaming AKA (N4gix) +++++

-versus-
MS Default "Pink" FX Emissive Texture Lightmapping
(Click on Picture for full size image)

-INTRODUCTION-
One of my pet peeves in most models being released lately is the poor panel lighting in the Virtual Cockpit. Now, I do realize that up until about a year ago, very few modelers knew how to create beautiful and cool panel lighting on their models, and those few weren't willing to "share" their techniques. Fair enough, I respect those who want to keep their "competitive edge" and don't begrudge them their hard efforts and desire to be unique! :)
However, after several months of hard work, lots of trial-and-error, and a few "hint's" from fellow modelers in the AVSIM.COM "Aircraft and Panel Design Forum," I've perfected a technique which I feel provides the absolute best gauge backlighting in the VC that is currently possible, and is fully compliant with Microsoft's SDK. Over the next few pages I'll step through the process in detail, and I promise you that if you follow this "formula" exactly, you too will be able to produce absolutely stunning VC lighting!
-WARNING-
At the time of this writing, this technique will only work with GMax models. I'm working with Louis Sinclair (the author of FSDS2) to extend this wonderful technique to the FSDS2 modeling program.
Also, please note that this technique means that the VC gauge backlighting is tied to the landing lights electrical circuit. Therefore, they will only be on when the landing lights are on! According to the SDK, adding an alpha channel to the lightmask image and using a "white" alpha should move the effect to the "running lights" (Nav lights)... However, I've never been able to get this to work reliably across all sytem platforms & video cards. Therefore, some additional 'fudging' might be needed to move control of the actual landing lights to another circuit. For the Socata, I simply tagged the part in GMax to only be "on" when the gear is extended.

-BEFORE WE BEGIN-
It is crucial that you decide early in the modeling process what you want to achieve with your panel and aircraft, because unless you do, you may wind up having to redo major portions of your model to recognize your goals. One of my primary goals has been to make the transition from the 2d panel to the 3d panel as "seamless" as possible. To that end, I've determined that the best way to accomplish that goal is to BUILD THE VC COCKPIT FIRST! Now, this may seem to some to be a bit backwards, but bear with me while I explain the rationale behind this thought process.
Many 2d panel designs suffer from what I call "skewed perspective," that is they do not accurately reflect what the pilot will normally see in his/her field of vision while seated and facing forward through the windscreen. To minimize this design flaw, building the VC first will allow you to move the "camera" into position and snap a "picture" of the VC from the proper perspective! This will give you a "template" from which you can then develop the actual 2d panel. Obviously, there will be a bit of give-and-take involved during this process, and compromises may need to be made, but the end result will be worthwhile.
So, without further ado, let us proceed to build a simple VC panel, using my Socata TB20GT as an example. I'm only going to detail the actual construction of the VC gauge panel for the pilot's side (P1), because all the other ones are done the same way. If you can successfully complete this tutorial, the same steps will allow you to complete the rest of your project! :)

-STEP ONE: "STRATEGIC PLANNING"-
Decide how you are going to lay out your cockpit, and how you are going to "sub-divide" your VC cockpit's gauge displays. Simple aircraft, such as a small Cessna or Piper, have one, relatively flat panel, and are fairly easy to lay out. Here is a picture of how I determined the sub-panel layout for the Socata TB20GT:
Note that I have separated the entire VC into eight separate sub-panels, as illustrated above. We are going to work on developing the P1 panel only, but I wanted to show how pre-planning your strategy can make your job flow smoother, and with fewer mistakes! :)

-STEP TWO: "BUILDING THE P1 PROJECTION SCREEN"
Let's load up GMax and create a small polygon for our P1 "projection screen." FS2k2 has a special way to display gauges in the VC that depend on us providing a planar surface on which to apply a texture name... that's right, just a special texture name! The $ prefix is reserved in FS2k2 to signal the sim to auto-generate a transparent (0,0,0) texture dynamically at runtime.
It is important to mention that the shape of the gauge planar does not have to be any particular shape or size. What is crucial however, is that the texture applied to the part be perfectly square, always 8 bit, and always in a "power of two;" i.e. 256x256, 512,512, 1024x1024, and so forth. Failure to adhere to this will result in endless frustration! Early on I spent a full week in panic mode because I failed to notice that my texture was 512x511 pixels... :(
The chief "problem" that occurs with this method is that when the lights are on, the entire surface of the gauge poly loses transparency and becomes "black." The simple fix for this problem is OBVIOUS in retrospect: where there is no surface, there is no black showing! :)
There are several ways to overcome this problem, and this an excellent example of why you need to keep this in mind during the "Strategic Planning" part of VC development:
1) apply a base texture to the poly via the panel.cfg entry (explained below)
2) make the gauge poly the exact size and shape of the actual gauge being used (note the compass polygon)
3) move the gauge poly behind the physical panel
To eliminate confusion, throughout the process I've chosen to use a consistent filenaming convention. Note that I've named the polygon "P1_screen," and that every texture will use the same "P1" for the root of the name.
Next, apply a "UVW Mapping" to the polygon. Note that although the polygon is rectangular, the UVW Map is square! (Note: I've zoomed the rollout in this picture for clarity...)

-STEP THREE: "CREATING & APPLYING TEXTURES"
Next, create a square texture 256x256 pixels in your paint program and name it $P1.bmp It must be only an 8 bit image, and may actually be any color you want. I prefer black, but usually label the texture with the name in red to make it easier to identify in GMax, and also to make sure that the orientation is correct! :)

256x256, 8bit, Indexed Color .BMP file
While in your paint program, you may as well create the basic "lightmask" at the same time. Simply spray paint the entire image white or gray, and label it as before. We'll be reworking this at a later time, but for now this will do fine. As with the $dummy.bmp file, we simply need something with a filename that we can assign in GMax's Material Editor! Note that the filename is the same, but the $ prefix has been omitted, and the _L suffix added. This is crucial to success!

256x256, 8bit, Indexed Color .BMP file
Now, back in GMax, use the Material Editor to create a new "material," and select the $P1.bmp for the Diffuse Color slot.
Now, pay attention closely, because here is revealed the "secret" to VC gauge backlighting!!! (Finally, you sigh!) :)
Apply the P1_L.BMP texture in the Material Editor, in the "Self-Illumination" slot! Leave the "Amount" for the P1_L.BMP set at 100, because we will be editing this texture later anyway, so we can set our desired lighting levels at that time.
Here is a screenshot of the same thing with the rest of the VC "parts" showing... Notice that the "projection panel poly" is sized to fit inside the beveled housing created for the cockpit panel assembly. Note also that the other VC sub-panels have already been textured with their respective $dummy.bmp files.
Now, let's compile our .mdl using only the single panel that we've created, and check it out in FS2k2! In order to see it though, you will need to set up a complete "dummy aircraft" in FS2k2, unless you've already got one that you're working on. It is beyond the scope of this tutorial to cover all the details of how to do that; and besides, presumably you already know how! :)
NOTE: If you are using "MiddleMan," be sure you check off the box labeled "Use Lightmaps," and NOT the one labeled "Use Nightmaps!" "Nightmaps" are seldom used on anything except static .bgl models; checking this box WILL cause your VC panel to disappear! :(

-STEP FOUR: "SETTING UP THE PANEL.CFG FILE"
What may be new though is the [Vcockpitxx] section of the panel.cfg file. Here is a short example:
//--------------------------------------------------------
[Vcockpit01]
Background_color=0,0,0
size_mm=512,512
<---Even though we created a 256x256 texture, we can use 512x512 here!
visible=0
pixel_size=1024,1024
<---I've used 1024x1024 here for higher resolution gauges!
texture=$P1 <---This tells FS2k2 to generate a dummy texture of size 1024x1024
gauge00=mooney_bravo!Attitude, 222,31,114,104
gauge01=mooney_bravo!Altimeter, 376,31,111,111
gauge02=mooney_bravo!Turn Coordinator, 80,154,111,111
gauge03=bendix_king.hsi, 222,154,114,109
gauge04=cessna_182.timer, 80,31,111
gauge05=Cessna182rg!Vertical_Speed, 376,154,111
I use FS Panel Studio to create/edit panels. Although it will allow you to "edit" a VC panel, it will not allow you to create one! Consequently, you must first "hand edit" your panel.cfg in notepad/wordpad to create the necessary [Vcockpitxx] entry. You do not need to specify any gauges at this time, but only the "header information" that's in bold type above.
Now, having place some gauges on the VC panel, let's fire up FS2k2 and have a look!
Oops! We have a problem! Gauges are just "hanging in space!" :( We need to provide a background for these gauges! Now, there are several ways to do this, but rather than go into all of the various methods, let's use one which I've determined to be the BEST way to do this. The chief reasons why I use this particular method is because whenever the lights are turned on, that nice, transparent polygon will turn a very UGLY, solid BLACK in the sim, and - almost as important - we can use another "trick" later to provide some additional cool lighting effects on the background texture we're going to apply.
Let's modify our panel.cfg to include the following line shown in red. This is a simple texture that will provide a "cover" for the transparent gauge poly, and will mask the UGLY BLACK that would otherwise mar our splendid panel!:
//--------------------------------------------------------
[Vcockpit01]
file=P1_background.bmp
Background_color=0,0,0
size_mm=512,512
visible=0
pixel_size=1024,1024
texture=$P1

gauge00=mooney_bravo!Attitude, 222,31,114,104
gauge01=mooney_bravo!Altimeter, 376,31,111,111
gauge02=mooney_bravo!Turn Coordinator, 80,154,111,111
gauge03=bendix_king.hsi, 222,154,114,109
gauge04=cessna_182.timer, 80,31,111
gauge05=Cessna182rg!Vertical_Speed, 376,154,111
This is a view of the background image in Photoshop. Note that the image size is precisely 512x512 in size. FS2k2 will automatically scale the image for you, so you don't have to generate HUGE texture files to achive good results!
Here is what the VC looks like in FS2k2 now that we've applied a background texture. Wow! What a difference!:

-STEP FIVE: "LIGHTING UP THE PANEL!"
At last, we're finally at the point where we're going to "light up the panel!" Place the P1_L.BMP file in your test aircraft's \texture folder (yes, I said \texture folder, not the \panel folder!!!), and fire up FS2k2 at night. You should see this:
Well crap! It's lighted alright, but what the heck, the whole panel is lighted!!! Why, even the red label is upside down and backwards!!!
You made me read this stupid tutorial just to see this!!! <grrr!>

-STEP SIX: "DON'T PANIC! WE CAN FIX THIS!"
As you can see, we could have achived this by simply using the "emissive color properties" of GMax without all the fol-de-rol of creating a special "lightmask" texture. However, I've done it this way to illustrate a MAJOR POINT: i.e., that FS2k2 inverts the P1_L.bmp file and turns it "inside out!" So, knowing that, the following procedure will make more sense... :)
Let's load up the panel in trusty FS Panel Studio and snap a "picture" of our basic panel, so we can use it as a "template" in our paint program on which to do our "magic." While the Vcockpit01 is displayed in FSPS, make sure that the "black background" is full screen, and press the PrintScreen key to capture the image.
Crop the image to an exact square, and size to 256x256 pixels. Create a new "layer" in which to apply the white/grey highlighting, where you wish to illuminate the gauges. Notice that by using this method, you can precisely specify how much light to allow, and even apply graduated shading to achieve a "realistic, unevening lighting" effect that real gauges have! Notice how I used "pure white" on the clock, HSI and Attitude Indicators, since these are normally quite brightly lighted. The other gauges are "whiter" towards the outer edges, which is typical of rim mounted, backlighted gauges. If you wish to create a "Post Lighting" effect, simply use a "fanned spray" lightmask. Adobe Photoshop has some really cool "lighting effects" in the Filter section, but you may have to fudge up your own method depending on your paint program:
The next step is to erase the background image, leaving only the highlighted areas on a pure black (0,0,0) background. Rotate the image 180º and then flip it horzontially, then save it as an 8bit Indexed .bmp file:

-STEP SEVEN: "THE MAGIC MOMENT!"
If you have followed this tutorial faithfully so far, you should now see the following in FS2k2 when you load up your test aircraft's VC:

Well! Doesn't that look great! Hmmm... the gauges are nicely backlighted, but the PANEL is very, very dark...

-STEP EIGHT: "ICING THE CAKE!"
Let's load the P1_L.bmp file back into our paint program and add a gentle "floodlight" to the lightmask! Since Photoshop won't allow me to add a light effect filter to a transparent background, I converted the image back to RGB (24bit), moved the previously highlighted areas to a new layer, 'painted' the background pure white, and then applied my Render/Lights/Filter, using a soft omni effect with the point source located under the glareshield (to simulate a soft flourescent light source). Merging the two layers back together and converting back to 8bit, Indexed Color produced the following results in FS2k2:

-CLOSING THOUGHTS-
Here again is the complete VC panel for the Socata TB20GT (please excuse the "old" picture, but this was before I added the "gentle lighting effect" outlined above, and I'm too tired to redo the picture!):
I hope that this little tutorial will prove helpful to any modeler who wants to add that "something special" to their project. Is there more that could be done? Absolutely! You are limited only by time, energy and imagination... :)
Is this better than using that nasty, old fx lighting method? I'll leave that to you to decide. I think that it's worth the time and effort to make the VC environment as well-lighted as possible, and to that end I've taken the time to write this tutorial.

There are many, many other "tricks" that may be used, such as the internal lighting of the gauges themselves, but I'll leave that for a future tutorial! Stay tuned, and have fun!
Fr. Bill Leaming, SSG
frbill@catholic-hymns.com

Thanks, Kris:)
 
Hi Krispy and thank you!

I know the tutorials of the great Bill Leaming:

For FS9 -

http://www.freeflightdesign.org/tutorials/VC_Lighting_Tutorial.zip

For FSX

http://www.freeflightdesign.org/tutorials/FSX_Emissive_Textures_and_VCLighting.zip

I'm probably a little awkward, and my English is not very good, but I am unable to practice with Blender2FSX. All my gauges are in 3D, and not necessarily on the X-axis. In addition, some small lights in the cockpit are not found on the same axis as the gauges ...! Do you see my problem?

Thank you for your great help
 
Hi Krispy and thank you!

I know the tutorials of the great Bill Leaming:

For FS9 -

http://www.freeflightdesign.org/tutorials/VC_Lighting_Tutorial.zip

For FSX

http://www.freeflightdesign.org/tutorials/FSX_Emissive_Textures_and_VCLighting.zip

I'm probably a little awkward, and my English is not very good, but I am unable to practice with Blender2FSX. All my gauges are in 3D, and not necessarily on the X-axis. In addition, some small lights in the cockpit are not found on the same axis as the gauges ...! Do you see my problem?

Thank you for your great help

Hi Chrismot!

I will be very honest with you, I have never made lighting for 3D gauges. If you have looked at my jodel Blender project. I did not do anything for the lighting. I added a cabin light in my aircraft.cfg file. The only gauges that I have made lightmaps for is for 2D gauges.

When I learn to make lighting for 3D gauges, I will make a tutorial for you. I do not know how long that my be.

Your Friend, Kris:)
 
Kryspy, thousand thank you!

I hope and believe that your future video will be very very useful not only for me but for many amateur developers: indeed, except the wonderful Bill Leaming tutorials, there is almost no information about the lightning for 3D gauges.

Maybe we should ask Daan how he created his night gauges for its superb Fokker D-21 ...? I am studying its files ...:rolleyes:

I just found out how to run my small lamps, even in bright sunlight ...!

Thank you for your dedication and above all, take your time ...!;)
 
Kryspy, thousand thank you!

I hope and believe that your future video will be very very useful not only for me but for many amateur developers: indeed, except the wonderful Bill Leaming tutorials, there is almost no information about the lightning for 3D gauges.

Maybe we should ask Daan how he created his night gauges for its superb Fokker D-21 ...? I am studying its files ...:rolleyes:

I just found out how to run my small lamps, even in bright sunlight ...!

Thank you for your dedication and above all, take your time ...!;)

Hi there,

My D.21 night-lighting is done as follows:
I have a material for the gauges, with the (FSX) Emissive Properties set to BlendUserControlled. Then I assigned two textures to this material, a diffuse and a emissive texture. The diffuse one is just color, the emissive one is the same but in pink glow. In the emissive texture, I checked in the Influence tab ONLY the box Emit.
Because it is UserControlled, these will go on after instrument light switch on.

Regards, Daan
 
Hi there,

My D.21 night-lighting is done as follows:
I have a material for the gauges, with the (FSX) Emissive Properties set to BlendUserControlled. Then I assigned two textures to this material, a diffuse and a emissive texture. The diffuse one is just color, the emissive one is the same but in pink glow. In the emissive texture, I checked in the Influence tab ONLY the box Emit.
Because it is UserControlled, these will go on after instrument light switch on.

Regards, Daan

Thank you Mr. Daan!
 
Hello. What may be a problem ? (see screen) . It was during exporting to fsx mdl.
p.s.
Can Windows 8 do error when compilling ?
 

Attachments

  • Screenshot_6.jpg
    Screenshot_6.jpg
    62.7 KB · Views: 626
Last edited:
Hello. What may be a problem ? (see screen) . It was during exporting to fsx mdl.
p.s.
Can Windows 8 do error when compilling ?

Hi Robix!

Have you tried to compile .mdl file without animations? You may have a corrupt animation in your project.

Thanks, Kris:)
 
Hello Kris.
Ifter the same error on 3DMax ... I've solved this.
There is no errors on my side. I was because of incorrect regional settings in Windows (time,date format etc.). US users have correct regoinal settings in Windows.
But Russian users have by defaul settings in another format. I,m from Russia.
 
Hello Kris.
Ifter the same error on 3DMax ... I've solved this.
There is no errors on my side. I was because of incorrect regional settings in Windows (time,date format etc.). US users have correct regoinal settings in Windows.
But Russian users have by defaul settings in another format. I,m from Russia.

Hi Robix!

I am glad that you got the problem fixed. I would not of thought of that as being a problem. Very interesting!

Thanks, Kris:)
 
Hi Krispy,

I have a new proposal for a video tutorial:
How to illuminate 3D gauges on the dashboard, and how to model a warning light or indicator light in the virtual cockpit.
In other words: How to create lights in the virtual cockpit with Blender2FSX...

My request is motivated by the fact that I don't manage illuminate "from behind" the warning lights of my plane ...! I hope this is not too much to ask ... :D

Thank you for all your help ...
Hi Mr. Chrismot!

I have been working on better understanding the processes needed to make texture maps work for FSX using Blender. I believe I am starting to understand some of the processes. I will try to have a video tutorial for making and applying texture maps and their settings for diffused, specular, and illuminate using Blender for FSX by the end of next week.

Thanks, Kris:)
 
Hello Kris,

A very big thank you for all your help. The result of all this work will be a Morane D-3801 of 1941 - Swiss Army, faithful replica of the last Morane in the world in flying condition. This single copy is in Switzerland and I have been able to obtain all necessary documentation to model faithfully ...

Thank you for everything!
 
Kris

I am brand new to designing aircraft for FSX and working with Blender. As everyone has said there is a pretty steep learning curve using Blender. I had already struggled through learning Blender somewhat and creating an airplane before I ran across your videos. Once I found them and started following them things have gone much better. I decided to use the plane I had created to follow along with your videos. Here is my problem. The plane has a V-Tail which creates a strange axis for the elevators. I can't figure out how to make them rotate properly. I found a video describing using a locked track constraint with plain axes as the pivot hinge but I still can't seem to make them work. Am I on the right track with that constraint?

Thanks for going to the trouble to create these videos. I probably would have given up on the project if I hadn't found them.

Hal
 
Back
Top