Giter Site home page Giter Site logo

fergo / blender-bsdf-msfs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.06 MB

This script converts from Principled BSDF to MSFS Material Params in Blender, for use with Microsoft Flight Simulator GLTF Exporter

Python 100.00%
blender bsdf flight gltf material msfs simulator sketchup

blender-bsdf-msfs's Introduction

Blender - Principled BSDF to MSFS Material Params

This script converts from Principled BSDF to MSFS Material Params in Blender, for use with Microsoft Flight Simulator GLTF Exporter

How it works

It's was created with the workflow of importing SketchUp models with the Sketchup Importer for Blender, but might work with other imported meshes too.

As SketchUp only supports diffuse maps, it will convert from Principled BSDF Base Color to MSFS Material Params Base Color. It will try to find the NORMAL and ARM (Ambient Occlusion, Rooughness and Metallic) maps from the Base Color texture file name by searching the texture_path variable. For example (and by default): if the Base Color texture map is called Wood_DIFFUSE.png, it will try find the textures named Wood_NORMAL.png and Wood_ARM.png

To use other naming schemes, see below.

How to use

  1. Load converter_sketchup.py in Blender's Scripting tab
  2. Change the variable texture_path to the path where your other texture maps are located
  3. Change the suffix_ variables to the suffixes you use for those maps. This script will try to automatically find the NORMAL and ARM maps based on the base color map
  4. Run the script

blender-bsdf-msfs's People

Contributors

fergo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.