Dynamic lighting

I have finished a new feature for ModelConverterX, so just in time as a big Christmas present to all ModelConverterX users. Since my summer vacation in July I had an idea how I wanted to support the new dynamic lighting feature of Prepar3D v4 and now I have finally implemented it. This means that you can use ModelConverterX to preview the dynamic lighting and to generate the effect files that place the dynamic lights. You will find this new feature in the latest development release. I’ll explain how it works in this blog post.

If you are loading an object that includes special effects with dynamic lighting, make sure you have the rendering of the spot lights enabled in ModelConverterX. That’s the button I encircled in red in the image on the right. If this button is off, ModelConverterX will not render the spot lights for you.

If you want to add a new spot light to your object, you can do this from the Attached Object Editor. In the Add drop down menu you will find a new object for Spot light. This will add a spot light object to your model. Using the Attached Object Editor you can now tweak and position the spot light.

In the image below you see the different properties that you can set for a spot light. Setting the position and orientation works like any other attached object.

In the Light category you can specify the color of the spot light and if it should be blinking or not. In that case you need to enter a duration value for the blinking.

The Spot light category contains all settings that are unique for the spot light. This includes the inner and the outer cone, the range up to which the light is effective and the strength of the light. All these values have affect on the rendering in the preview. The special effect file is generated based on these values you enter.

If you have the rendering of attached objects enabled in the ModelConverterX preview, you will see the cone rendered visually as shown in the picture below. The brighter cone is the inner cone and the more darker one is the outer cone. If you change the values in the properties the cone rendering will change. The length of the cone is linked to the range that is specified for the spot light.

There is one other new feature I would like to mention. In the importer options you will find a new setting called “Replace effects by lights”. By default this is set to false, but if you set it to true ModelConverterX will try to replace the (spot) light effects in your model with (spot) light objects. This means that you can tweak all the properties like when you are creating them new. With the default value ModelConverterX will just load and show the special effect files. But then it is harder to change how the light looks.

I hope you will enjoy this new feature!

39 thoughts on “Dynamic lighting

  1. Abdel Aziz says:

    Hello

    I Tried but unfortunately it didnt work. Before getting further with details, does this feature work with FS 2004? ( I’m using fs 2004 )
    Thanks for your help

  2. Jorge says:

    Could you please do a tutorial on how to use the spotlights in p3d v4? from zeros with light poles made in sketchup? it would be great, greetings

  3. Morten says:

    I cannot enable the rendering of the spot lights, i simply dont have the button you have circled ? Is that normal? Have the latest version 1.3..

  4. Ali says:

    Hello am i able to use that spot lights for xplane 11 objects?

    • arno says:

      Hi, no ModelConverterX does not (yet) support exporting lights to X-Plane OBJ files.

      • Ali says:

        Can u help me how can i use that spotlight for xplane .obj until you develop that option for xplane?

        • arno says:

          The X-Plane documentation explains how to define such lights in your OBJ file. But you’ll have to calculate the normal vector, etc yourself.

          • Alish says:

            Hello
            Can u send documents can explane that for me to my gmail?
            I really need that spotlights for xplane .obj

          • arno says:

            All I can do is tell you to read the X-Plane documentation. It explains the commands that can be used in the X file.

  5. Ali says:

    Hi.when model convertet x support exporting lights for xpl.obj?

    • arno says:

      I don’t know yet. I’m still learning X-Plane myself and currently I don’t have a lot of time to work on it.

  6. W8 says:

    Hellio .
    We meed spotlights for xplane 11?

  7. Ali says:

    Hi.when model convertet x support exporting lights for xpl.obj?

    • arno says:

      It’s on the wishlist, but recently I haven’t worked a lot on that exporter. So I don’t know when it will be done.

  8. Como fixar uma luz em um objeto animado…

  9. Mzn says:

    Can we add landing light in mcx that rotate with landing gear answer me plz

    • arno says:

      Yes, in the hierarchy editor you can move the attached effect so that it is under the animated node of the gear.

  10. Mzn says:

    Can I attach landing lights to fsx aircraft landing

  11. Andrew says:

    When I install a P3dv3 scenario in P3dv4, the original scenery lighting in approns, taxi, runways is lost at night. When i convert the original BGL from the P3dv3 to P3dv4 version with ModelConverterX (fantastic tool!), i recover the lighting, but the original layers, appron, taxi marks, runway marks, surface textures, worn textures etc. appear in mistake order and overlapped. Any help? Thanks thousands!

  12. Andrew says:

    Thanks for this functionality! Unfortunately in P3Dv4 the light poles are lit only at the departure airport, all other effects are “off” at the following airports. I suppose it is a P3Dv4 bug, however something could be done to periodically check these effects. A call to XML or something? Thank you!!!

  13. Rick A says:

    Hi Arno,

    Thanks for all your great work in this area. Anychance the spotlight feature will be implemented for FSX?

    Cheers,

    Rick

  14. Alex P says:

    Hi Arno, are you still planning to add a tool for xplane spotlights? Your amazing tool really makes the whole workflow of getting 3d models to the sim so simple, but manually adding all the light attributes in the obj. file is a pain. Really hope such a feature is still on your list. Thanks!

    • arno says:

      Hi, I would have to check how X-Plane defines the spot lights. Might be possible to add that.

  15. Jorge says:

    Hello, Arno. MCX is the most powerful tool for 3D designers. Will this feature work in MSFS 3d models? Thank for your reply

  16. Krit W. says:

    Hello, Arno.

    I’d like to say Thank you so much for great tool for an airport designer. I try make P3D v4 dynamic spot light for my airport but spot light effect does not show in my MCX attach list. I don’t know what did I do wrong. I’m working on MCX 1.5 version and P3D v.4

    • arno says:

      Hi,

      In the attached object editor you add a light. Whether it is a point or spot light is a property you specify for the light.

      Before the spot ligt was a separate entry in the menu but that changed about a year ago.

  17. RJ says:

    The light does not turn on when arriving from another airport only.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.