3D Livery Painting on the MSFS Models

I tried mutliple installs of Blender (3 times from blender .org and once from the MS Store) and changed line 259 to:
bin_file_name = gltf_file_path.with_name(gltf[‘buffers’][0][‘uri’])

As I said, the file got sent over, meaning that its not in the standard directory. Does this affect the install?

My .gltf and .bin files aren’t in the standard directory either, so I don’t think that’s the problem. I am using blender 2.8 and 2.9, I resolved the error message from the .py script by modifying line 259 as shown. Sorry that the problem persists on your end. Maybe bestdani90 (author of the script) could help you.

Yeah, I’ll try that. I’m just thinking, do I need the .bin file as well (i.e I have both the LOD00 and the corresponding .bin file in the same folder)?

But I’ll ask the author for further tips.

Thanks for the help!

Yes you need the .gltf and the .bin in the same directory. The error message states that the script cannot read the path to the .bin file.

JSON (Gltf file)
→ buffers
—> 0
------> uri (name of .bin file corresponding to your .gltf)

Names of originals files must not be changed (especially the .bin)

Thank you so much for your help, first of all, this is an amazing community!

Even with all the files in one place it still didn’t function correctly, so I set out to install all the different blender releases and 2.83 finally worked. I hope other beginners like me can profit by seeing my dumb mistakes :slight_smile:

1 Like

Okay I think I am having somewhat similar issues. I can import other files just fine however when i try to import the new f-15 to paint it i get these error messages.

could not handle mesh “Cube.037”

Python: Traceback (most recent call last):
File “C:\Users\gsgos\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\io_msfs_gltf (1).py”, line 327, in execute
return import_msfs_gltf(context, self.filepath, self.report)
File “C:\Users\gsgos\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\io_msfs_gltf (1).py”, line 302, in import_msfs_gltf
objects = create_objects(gltf[‘nodes’], meshes)
File “C:\Users\gsgos\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\io_msfs_gltf (1).py”, line 238, in create_objects
scale = node[‘scale’]
KeyError: ‘scale’

location: :-1

Is there something i can change in the code to fix this or is this something on the gltf files side of things and i just most likely won’t be able to import the object into blender?

I got exactly the same problem, would be interested in a solution as well! THX in advance!

Replace lines 224 to 249 as following

1 Like

Hi there,
I have this problem where everytime I try to stencil paint on the tail, it completley messes up. Please find the attatched screenshot. Any help would be much appreciated. Many thanks!

1 Like

I’ve had the same problem. What I’ve found is the UV Map doesn’t look like any other ones I’ve seen before. I’ve only just started using Blender so I’m not sure the correct way to fix it. What I’ve tried is unwrapping the UV Map and that seems to work but I think there would be better solutions, just I don’t have the knowledge. I’ve exported the map and I’m posting it so you can see.


I also tried loading the A320_NEO_LOD01.gltf instead of A320_NEO_LOD00.gltf as the ‘01’ doesn’t have the problem so something has changed for some reason.

Edit: Unwrapping only allows painting to work in Blender, but then when I save the UV Map, convert to DDS and put it in the game, the textures don’t line up. Hoping others have an idea.

First of all, huge thanks @bestdani90 for the great blender import tool and for the guide!

I used it to import the A320 to make my livery and followed your guide as I was not familiar with blender at all, but went a step further and organized the structure inside blender to separate parts that needed painting and parts that will get the default game textures like wheels etc.

So I ended up with a collection of the main parts like Fuselage, Wings and Engines, another collection for all the decals, and a third with wheels and inner parts, so it’s easier to work on what you need.

I also imported the textures of the decals and internals, so that my previews will look complete, without pink wheels, despite of not actually painting and exporting the wheels textures etc.

The import process makes some parts to be scattered around, so I went and fixed those as well, and finally I ended up with a complete model with almost all textures.

What is missing is the flaps and speed brakes, which as I understand is a microsoft thing we cannot get, or at least I don’t know of a way to get those.

Anyway, photoshop played a huge part too, as I got the default textures into layered PSDs for easy manipulation. Also, I used the intel DDS plugin to export the textures.

I will upload the blend model along with the PSDs and provide a link as soon as my internet issue gets fixed, if someone wants to start painting the A320 without having to export the model from the game.

I ended up with this

My only problem is that the right tail elevator changes from blue (my painted color) to white when I zoom out in game, and I cannot understand why this is happening. I painted all the textures blue to see if it happens, and it seems the zoomed out right tail elevator texture is not on the same texture file as the rest wings and wing parts. Does anyone know something about this? Maybe I need to extract the lod01 and paint this as well, or?

2 Likes

It took me about 3 days to figure out and fix all those parts and put them in place, also like in your photo, the engines are missing from lod00 so I found them on lod01 or lod02 and imported those in the blender file as well.
Also I organized the parts inside blender, so that anyone can easily view or hide all the parts that are not needed to paint the livery, just for a quick preview on how the complete thing will look before exporting the DDS files.

I don’t know if you still need it, but I will upload the blender model, together with the default textures loaded and also with the PSDs for the textures, all layered and masked for easy editing, for anyone that wants it when I can.
Unfortunately, I tried to upload the blender file earlier but my ISP has some problem in the area these days and the upload fails from the start…

Here is my result

4 Likes

If you could upload the model that would be great. It’s organised much better and might help me to understand the problems myself and the previous poster had as well.

I am now getting an error when trying to install the addon with this updated code

Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\addon_utils.py”, line 351, in enable
mod = import(module_name)
File “C:\Users\gsgos\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\io_msfs_gltf.py”, line 237
obj.location = trans[0), -trans[2], trans[1]
^
SyntaxError: invalid syntax

Any thoughts?

It’s a ] after the 0 in line 237 not à )

obj.location = trans[0], -trans[2], trans[1]

:slight_smile:

oh oops yeah that would do it

I’ve managed to get the model to import and display the UV Map correctly, I had to use the Experimental version of the add-on instead of the Master. Doesn’t seem right to have to do this but for now it works anyway.

Anyone know how to repaint the Carenado 182T? It mirrors in Blender.

I uploaded a paintkit for the A320 NEO with blender file and PSDs with layers and masks.
I have included all textures, ever those not needed to actually paint the livery, but for preview purposes and to export nice photorealistic images.
Also, I removed the Ribbons UV that was overlapping the fuselage.
https://flightsim.to/file/8701/a320-neo-complete-8k-paintkit-for-blender-and-phtotoshop

5 Likes

Hi I have the same Problem did you fix it?