• 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.

MSFS Blender2MSFS Limitation? Color Multipliers

Messages
372
Country
austria
i dont know if that was a problem but i noticed, that the "collision" tag got exported differently to the "road" materials tag. i fixed that in this version.
was the collision property allready working correct?
 

Attachments

  • MSFSToolkit_0.40.2.6.zip
    146.7 KB · Views: 512
Messages
290
Country
germany
Thank you so much for your continuing support of the Blender2MSFS Toolkit, that´s highly appreciated. After you enabled the color multipliers to work correctly I was able to significantly reduce the number of textures and overall filesize of my sceneries. I didn´t use collision materials yet but I´m sure many will appreciate this update.
Do you know if the Toolkit also works in Blender 2.93? I´m still using 2.83 but the 2.9x releases have some new features I´d like to check, provided the toolkit still works with that version
 
Messages
84
Country
france
Hey @Mikea.at ,
I was working on it but I saw your version for the collision and tested it.. it works perfectly ! Thanks a lot ! I'll be happy to pay you a "paypal" beer if you tell me your infos ;)
 
Messages
372
Country
austria
thanks but that is not necessary :) hacking a little bit around in python without any knowledge was fun. dont expect further improvements :D i am not really able to bring this tool to a professional level :)
maybe it is possible to merge my improvements into the github project from @tml maybe he can merge my changes into his github project? :)
 

tml

Messages
89
Country
finland
maybe it is possible to merge my improvements into the github project from @tml maybe he can merge my changes into his github project? :)
I merged the "Road" change between your 0.42.2.5 and 0.42.2.6. I did not include what you did in your 0.42.2.5, are all the changes in that (compared to the original 0.40.0) for the same thing? Could you summarise what the changes do, for the commit log?
 

Pyscen

Resource contributor
Messages
2,994
Country
us-texas
@tml...

If you would please, paste the link of the GitHub project for Blender2MSFS.
 
Messages
110
Country
russia
Now there is hope!

1627420886298.png
 
Messages
84
Country
france
Yup her name is Alyzée, she made a quick tutorial too about vfx
They are some devs of Asobo who reply our questions on https://devsupport.flightsimulator.com/
They are very cool people and really try to help us (dev) when we have some issues

Also , when I saw that they wish to provide a blender extension I was like a 10 years old at Christmas :p
There is hope guys !!
 
Messages
71
Country
unitedstates
Mikea.at, thanks for everything. I'm still working on the LOD batch bug, and you will be the first to hear about it if I get somewhere. I'm using your .5 now, and will try .6 this afternoon so I can land on my bridges. I'm working with 2.93 with no problems.
There is some glitch going on when I try to Remove the exporter: installing a new one simply adds another "extended GLtf .." line to my export menu. I had to delete all Blender installs and start over, but that fixed the problem for now. I won't spend any time on it, however.
Can't wait for Asobo to bring good news.
 
Messages
71
Country
unitedstates
Absolutely! I was working in your .5, then I looked for the .6, but I had lost the link to this one. Downloading and installing now.
There's one index at the very end in the .glTF files above LOD00, and that link should be to a byte offset in the .bin. So far it looks like it's something to do with a call to the glTF native exporter in Blender. I haven't given up yet. I'm doing controlled experiments.
Everything in the gltf_export ... and gltf_batch_export ... files, although different, looks good.
Enough for now.
BTW, I'm a Python beginner, too.
Thanks again for all your fixes.
 
Messages
1,243
Country
canada
So is it safe to assume that your 42.2.6 is now an "Official" version. If so I have found that the collision material in not being exported correctly for Aircraft.

Blender exports this data:

{ "emissiveFactor" : [ 0, 0, 0 ], "extensions" : { "ASOBO_tags" : { "Collision" : true }, "ASOBO_material_invisible" : { "enabled" : true } }, "name" : "Collision", "pbrMetallicRoughness" : { "baseColorFactor" : [ 0.800000011920929, 0, 0, 1 ], "metallicFactor" : 1, "roughnessFactor" : 1 } }

while the default aircraft have:

{ "name": "Collisions", "pbrMetallicRoughness": { "baseColorFactor": [ 1.0, 0.0, 0.0, 0.7 ] }, "extensions": { "ASOBO_material_invisible": {}, "ASOBO_tags": { "tags": [ "Collision" ] } } },

This important as it affects the VR right click zoom in capabilities. I have tested this by exporting the blender gltf as normal, and then manually change my collision material to the ASOBO version. Now VR right click zoom works for me.

@Mikea.at @tml

Edit: sorry - I had ver 0.40.0 and not any of the updated ones from git. The updated ones fixed this issue. thanks very much.
 
Last edited:
Messages
71
Country
unitedstates
Just an update: I now know lots of things the LOD batch export problem isn't. Three simple cubes will not batch export but are fine one-by-one. There is a discrepancy between the LOD00 and any other LOD level in the glTF: there are four accessors and four bufferViews in the LOD00 glTF, but in the LOD01 or higher glTF files, there are four accessors and only three bufferViews. The corresponding .bin files show the same discrepancy, as expected. This was actually reported last October here: https://www.fsdeveloper.com/forum/threads/blender2msfs-support-thread.448402/page-31.
I have made and unmade many reasoned andlogical changes, one-by-one, and if I didn't break the code entirely, I still got the same result.
There is one suspicious difference in between the gltf2_blender_batch_gather.py file and the gltf2_blender_gather.py file at line 55 in the batch code: a line that says @cached that is present in the non-batch file is commented out in the batched code. The comment says that is to make sure that the code is executed each time through. The '@' symbol indicates that a class is being "decoated" to alter its functionality without subclassing. I hate hacks in code that needs to be maintained.
Anyway, the problem seems to be between those two files (and possibly this hack - which might just be leaving out an element that needs to be buffered into the final output stuff). Anyone out there got any ideas?
 
Top