Blender V5.0
fbx_import_material.cc File Reference
#include "BKE_image.hh"
#include "BKE_lib_id.hh"
#include "BKE_material.hh"
#include "BKE_node_legacy_types.hh"
#include "BKE_node_runtime.hh"
#include "BKE_node_tree_update.hh"
#include "BLI_math_vector.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#include "DNA_material_types.h"
#include "NOD_shader.h"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf_types.hh"
#include "fbx_import_material.hh"
#include "ufbx.h"

Go to the source code of this file.

Classes

struct  blender::io::fbx::FbxPbrTextureToSocket
struct  blender::io::fbx::FbxStdTextureToSocket

Namespaces

namespace  blender
namespace  blender::io
namespace  blender::io::fbx

Functions

static bNodeblender::io::fbx::add_node (bNodeTree *ntree, int type, float x, float y)
static void blender::io::fbx::link_sockets (bNodeTree *ntree, bNode *from_node, const char *from_node_id, bNode *to_node, const char *to_node_id)
static void blender::io::fbx::set_socket_float (const char *socket_id, const float value, bNode *node)
static void blender::io::fbx::set_socket_rgb (const char *socket_id, float vr, float vg, float vb, bNode *node)
static void blender::io::fbx::set_socket_vector (const char *socket_id, float vx, float vy, float vz, bNode *node)
static float blender::io::fbx::set_bsdf_float_param (bNode *bsdf, const ufbx_material_map &umap, const char *socket, float def, float min=0.0f, float max=1.0f, float multiplier=1.0f)
static float3 blender::io::fbx::set_bsdf_color_param (bNode *bsdf, const ufbx_material_map &umap, const char *socket, float3 def, float3 min=float3(0.0f), float3 max=float3(1.0f))
static void blender::io::fbx::set_bsdf_socket_values (bNode *bsdf, Material *mat, const ufbx_material &fmat)
static Imageblender::io::fbx::create_placeholder_image (Main *bmain, const std::string &path)
static Imageblender::io::fbx::load_texture_image (Main *bmain, const std::string &file_dir, const ufbx_texture &tex)
static void blender::io::fbx::add_image_texture (Main *bmain, const std::string &file_dir, bNodeTree *ntree, bNode *bsdf, const ufbx_material &fmat, const ufbx_texture *ftex, const char *socket_name, float node_locy, Set< StringRefNull > &done_bsdf_inputs)
static void blender::io::fbx::add_image_textures (Main *bmain, const std::string &file_dir, bNodeTree *ntree, bNode *bsdf, const ufbx_material &fmat)
Materialblender::io::fbx::import_material (Main *bmain, const std::string &base_dir, const ufbx_material &fmat)

Variables

static constexpr float blender::io::fbx::node_locx_texcoord = -880.0f
static constexpr float blender::io::fbx::node_locx_mapping = -680.0f
static constexpr float blender::io::fbx::node_locx_image = -480.0f
static constexpr float blender::io::fbx::node_locx_normalmap = -200.0f
static constexpr float blender::io::fbx::node_locx_bsdf = 0.0f
static constexpr float blender::io::fbx::node_locx_output = 280.0f
static constexpr float blender::io::fbx::node_locy_top = 300.0f
static constexpr float blender::io::fbx::node_locy_step = 300.0f
static const FbxPbrTextureToSocket blender::io::fbx::fbx_pbr_to_socket []
static const FbxStdTextureToSocket blender::io::fbx::fbx_std_to_socket []