Blender V5.0
blender::io::fbx Namespace Reference

Classes

struct  FbxImportContext
struct  ElementAnimations
struct  ArmatureImportContext
struct  FbxPbrTextureToSocket
struct  FbxStdTextureToSocket
struct  FbxElementMapping

Functions

static bool should_import_camera (const ufbx_scene &fbx, const ufbx_camera *camera)
static void fbx_task_run_fn (void *, ufbx_thread_pool_context ctx, uint32_t, uint32_t start_index, uint32_t count)
static void fbx_task_wait_fn (void *, ufbx_thread_pool_context, uint32_t, uint32_t)
void importer_main (Main *bmain, Scene *scene, ViewLayer *view_layer, const FBXImportParams &params)
static FCurvecreate_fcurve (animrig::Channelbag &channelbag, const animrig::FCurveDescriptor &descriptor, int64_t key_count)
static void set_curve_sample (FCurve *curve, int64_t key_index, float time, float value)
static Vector< ElementAnimationsgather_animated_properties (const FbxElementMapping &mapping, const ufbx_anim_layer &flayer)
static void finalize_curve (FCurve *cu)
static void create_transform_curve_desc (const FbxElementMapping &mapping, const ElementAnimations &anim, LinearAllocator<> &curve_name_alloc, Vector< animrig::FCurveDescriptor > &r_curve_desc)
static void create_transform_curve_data (const FbxElementMapping &mapping, const ufbx_anim *fbx_anim, const ElementAnimations &anim, const double fps, const float anim_offset, FCurve **curves)
static void create_camera_curves (const ufbx_metadata &metadata, const ElementAnimations &anim, animrig::Channelbag &channelbag, const double fps, const float anim_offset)
static void create_material_curves (const ElementAnimations &anim, bAction *action, animrig::Channelbag &channelbag, const double fps, const float anim_offset)
static void create_blend_shape_curves (const ElementAnimations &anim, animrig::Channelbag &channelbag, const double fps, const float anim_offset)
void import_animations (Main &bmain, const ufbx_scene &fbx, const FbxElementMapping &mapping, const double fps, const float anim_offset)
static bool need_create_armature_for_node (const ufbx_node *node)
static void find_bones (const ufbx_node *node, Set< const ufbx_node * > &r_bones)
static void find_fake_bones (const ufbx_node *root_node, const Set< const ufbx_node * > &bones, Set< const ufbx_node * > &r_fake_bones)
static Set< const ufbx_node * > find_all_bones (const ufbx_node *root_node)
void import_armatures (Main &bmain, const ufbx_scene &fbx, FbxElementMapping &mapping, const FBXImportParams &params)
static bNodeadd_node (bNodeTree *ntree, int type, float x, float y)
static void link_sockets (bNodeTree *ntree, bNode *from_node, const char *from_node_id, bNode *to_node, const char *to_node_id)
static void set_socket_float (const char *socket_id, const float value, bNode *node)
static void set_socket_rgb (const char *socket_id, float vr, float vg, float vb, bNode *node)
static void set_socket_vector (const char *socket_id, float vx, float vy, float vz, bNode *node)
static float 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 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 set_bsdf_socket_values (bNode *bsdf, Material *mat, const ufbx_material &fmat)
static Imagecreate_placeholder_image (Main *bmain, const std::string &path)
static Imageload_texture_image (Main *bmain, const std::string &file_dir, const ufbx_texture &tex)
static void 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 add_image_textures (Main *bmain, const std::string &file_dir, bNodeTree *ntree, bNode *bsdf, const ufbx_material &fmat)
Materialimport_material (Main *bmain, const std::string &base_dir, const ufbx_material &fmat)
static bool is_skin_deformer_usable (const ufbx_mesh *mesh, const ufbx_skin_deformer *skin)
static void import_vertex_positions (const ufbx_mesh *fmesh, Mesh *mesh)
static void import_faces (const ufbx_mesh *fmesh, Mesh *mesh)
static void import_face_material_indices (const ufbx_mesh *fmesh, bke::MutableAttributeAccessor &attributes)
static void import_face_smoothing (const ufbx_mesh *fmesh, bke::MutableAttributeAccessor &attributes)
static void import_edges (const ufbx_mesh *fmesh, Mesh *mesh, bke::MutableAttributeAccessor &attributes)
static void import_uvs (const ufbx_mesh *fmesh, bke::MutableAttributeAccessor &attributes, AttributeOwner attr_owner)
static void import_colors (const ufbx_mesh *fmesh, Mesh *mesh, bke::MutableAttributeAccessor &attributes, AttributeOwner attr_owner, eFBXVertexColorMode color_mode)
static bool import_normals_into_temp_attribute (const ufbx_mesh *fmesh, Mesh *mesh, bke::MutableAttributeAccessor &attributes)
static VectorSet< std::string > get_skin_bone_name_set (const FbxElementMapping &mapping, const ufbx_mesh *fmesh)
static void import_skin_vertex_groups (const FbxElementMapping &mapping, const ufbx_mesh *fmesh, Mesh *mesh)
static bool import_blend_shapes (Main &bmain, FbxElementMapping &mapping, const ufbx_mesh *fmesh, Mesh *mesh)
static void import_blend_shape_full_weights (const FbxElementMapping &mapping, const ufbx_mesh *fmesh, Mesh *mesh, Object *obj)
void import_meshes (Main &bmain, const ufbx_scene &fbx, FbxElementMapping &mapping, const FBXImportParams &params)
const char * get_fbx_name (const ufbx_string &name, const char *def)
void matrix_to_m44 (const ufbx_matrix &src, float dst[4][4])
ufbx_matrix calc_bone_pose_matrix (const ufbx_transform &local_xform, const ufbx_node &node, const ufbx_matrix &local_bind_inv_matrix)
void ufbx_matrix_to_obj (const ufbx_matrix &mtx, Object *obj)
void node_matrix_to_obj (const ufbx_node *node, Object *obj, const FbxElementMapping &mapping)
static void read_ufbx_property (const ufbx_prop &prop, IDProperty *idgroup, bool enums_as_strings)
void read_custom_properties (const ufbx_props &props, ID &id, bool enums_as_strings)
static IDPropertypchan_EnsureProperties (bPoseChannel &pchan)
void read_custom_properties (const ufbx_props &props, bPoseChannel &pchan, bool enums_as_strings)

Variables

static constexpr float node_locx_texcoord = -880.0f
static constexpr float node_locx_mapping = -680.0f
static constexpr float node_locx_image = -480.0f
static constexpr float node_locx_normalmap = -200.0f
static constexpr float node_locx_bsdf = 0.0f
static constexpr float node_locx_output = 280.0f
static constexpr float node_locy_top = 300.0f
static constexpr float node_locy_step = 300.0f
static const FbxPbrTextureToSocket fbx_pbr_to_socket []
static const FbxStdTextureToSocket fbx_std_to_socket []
static constexpr const char * temp_custom_normals_name = "fbx_temp_custom_normals"

Function Documentation

◆ add_image_texture()

◆ add_image_textures()

void blender::io::fbx::add_image_textures ( Main * bmain,
const std::string & file_dir,
bNodeTree * ntree,
bNode * bsdf,
const ufbx_material & fmat )
static

◆ add_node()

bNode * blender::io::fbx::add_node ( bNodeTree * ntree,
int type,
float x,
float y )
static

Definition at line 48 of file fbx_import_material.cc.

References bNode::location, blender::bke::node_add_static_node(), x, and y.

Referenced by add_image_texture(), and import_material().

◆ calc_bone_pose_matrix()

ufbx_matrix blender::io::fbx::calc_bone_pose_matrix ( const ufbx_transform & local_xform,
const ufbx_node & node,
const ufbx_matrix & local_bind_inv_matrix )

◆ create_blend_shape_curves()

void blender::io::fbx::create_blend_shape_curves ( const ElementAnimations & anim,
animrig::Channelbag & channelbag,
const double fps,
const float anim_offset )
static

◆ create_camera_curves()

void blender::io::fbx::create_camera_curves ( const ufbx_metadata & metadata,
const ElementAnimations & anim,
animrig::Channelbag & channelbag,
const double fps,
const float anim_offset )
static

◆ create_fcurve()

FCurve * blender::io::fbx::create_fcurve ( animrig::Channelbag & channelbag,
const animrig::FCurveDescriptor & descriptor,
int64_t key_count )
static

◆ create_material_curves()

◆ create_placeholder_image()

Image * blender::io::fbx::create_placeholder_image ( Main * bmain,
const std::string & path )
static

◆ create_transform_curve_data()

void blender::io::fbx::create_transform_curve_data ( const FbxElementMapping & mapping,
const ufbx_anim * fbx_anim,
const ElementAnimations & anim,
const double fps,
const float anim_offset,
FCurve ** curves )
static

Definition at line 255 of file fbx_import_anim.cc.

References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::math::AxisAngleBase< T, AngleT >::angle(), blender::io::fbx::FbxElementMapping::armature_world_to_arm_pose_matrix, blender::math::AxisAngleBase< T, AngleT >::axis(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BKE_fcurve_bezt_resize(), BLI_assert_msg, blender::io::fbx::FbxElementMapping::bone_to_armature, calc_bone_pose_matrix(), blender::io::fbx::FbxElementMapping::calc_local_bind_matrix(), Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::math::dot(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::end(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), blender::io::fbx::ElementAnimations::fbx_elem, float, i, blender::math::QuaternionBase< float >::identity(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::io::fbx::FbxElementMapping::node_is_blender_bone, blender::io::fbx::ElementAnimations::object_rotmode, blender::io::fbx::ElementAnimations::prop_position, blender::io::fbx::ElementAnimations::prop_rotation, blender::io::fbx::ElementAnimations::prop_scale, blender::math::AngleRadianBase< T >::radian(), ROT_MODE_AXISANGLE, ROT_MODE_QUAT, set_curve_sample(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::math::to_axis_angle(), blender::math::to_euler(), blender::math::QuaternionBase< T >::w, blender::math::EulerBase< T >::x(), blender::math::QuaternionBase< T >::x, blender::math::EulerBase< T >::y(), blender::math::QuaternionBase< T >::y, blender::math::EulerBase< T >::z(), and blender::math::QuaternionBase< T >::z.

Referenced by import_animations().

◆ create_transform_curve_desc()

◆ fbx_task_run_fn()

void blender::io::fbx::fbx_task_run_fn ( void * ,
ufbx_thread_pool_context ctx,
uint32_t ,
uint32_t start_index,
uint32_t count )
static

Definition at line 312 of file fbx_import.cc.

References count, and blender::threading::parallel_for_each().

Referenced by importer_main().

◆ fbx_task_wait_fn()

void blender::io::fbx::fbx_task_wait_fn ( void * ,
ufbx_thread_pool_context ,
uint32_t ,
uint32_t  )
static

Definition at line 323 of file fbx_import.cc.

Referenced by importer_main().

◆ finalize_curve()

void blender::io::fbx::finalize_curve ( FCurve * cu)
static

◆ find_all_bones()

Set< const ufbx_node * > blender::io::fbx::find_all_bones ( const ufbx_node * root_node)
static

◆ find_bones()

void blender::io::fbx::find_bones ( const ufbx_node * node,
Set< const ufbx_node * > & r_bones )
static

◆ find_fake_bones()

void blender::io::fbx::find_fake_bones ( const ufbx_node * root_node,
const Set< const ufbx_node * > & bones,
Set< const ufbx_node * > & r_fake_bones )
static

◆ gather_animated_properties()

Vector< ElementAnimations > blender::io::fbx::gather_animated_properties ( const FbxElementMapping & mapping,
const ufbx_anim_layer & flayer )
static

Definition at line 72 of file fbx_import_anim.cc.

References b, blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::BaseIteratorRange< SubIterator >::begin(), blender::io::fbx::FbxElementMapping::bone_to_armature, blender::io::fbx::FbxElementMapping::el_to_object, blender::io::fbx::FbxElementMapping::el_to_shape_key, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::BaseIteratorRange< SubIterator >::end(), blender::io::fbx::ElementAnimations::fbx_elem, Key::id, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), blender::io::fbx::FbxElementMapping::mat_to_material, OB_ARMATURE, OB_CAMERA, OB_MESH, blender::io::fbx::ElementAnimations::object_rotmode, blender::io::fbx::ElementAnimations::order, blender::io::fbx::ElementAnimations::prop_blend_shape, blender::io::fbx::ElementAnimations::prop_focal_length, blender::io::fbx::ElementAnimations::prop_focus_dist, blender::io::fbx::ElementAnimations::prop_mat_diffuse, blender::io::fbx::ElementAnimations::prop_position, blender::io::fbx::ElementAnimations::prop_rotation, blender::io::fbx::ElementAnimations::prop_scale, ROT_MODE_QUAT, STREQ, blender::io::fbx::ElementAnimations::target_id, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().

Referenced by import_animations().

◆ get_fbx_name()

◆ get_skin_bone_name_set()

◆ import_animations()

void blender::io::fbx::import_animations ( Main & bmain,
const ufbx_scene & fbx,
const FbxElementMapping & mapping,
const double fps,
const float anim_offset )

Definition at line 496 of file fbx_import_anim.cc.

References AnimData::action, blender::animrig::action_add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::animrig::assign_action(), blender::animrig::assign_action_slot(), BKE_animdata_ensure_id(), BLI_assert, BLI_assert_msg, blender::animrig::StripKeyframeData::channelbag_for_slot_ensure(), create_blend_shape_curves(), create_camera_curves(), create_material_curves(), create_transform_curve_data(), create_transform_curve_desc(), blender::animrig::Strip::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::animrig::Channelbag::fcurve_create_many(), finalize_curve(), gather_animated_properties(), GS, bAction::id, id_fake_user_set(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::animrig::Action::layer(), blender::animrig::Action::layer_keystrip_ensure(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), blender::animrig::OK, blender::io::fbx::ElementAnimations::prop_blend_shape, blender::io::fbx::ElementAnimations::prop_focal_length, blender::io::fbx::ElementAnimations::prop_focus_dist, blender::io::fbx::ElementAnimations::prop_mat_diffuse, blender::io::fbx::ElementAnimations::prop_position, blender::io::fbx::ElementAnimations::prop_rotation, blender::io::fbx::ElementAnimations::prop_scale, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::animrig::Action::slot_add_for_id_type(), AnimData::slot_handle, blender::animrig::Action::slot_identifier_define(), STREQ, blender::animrig::Layer::strip(), blender::animrig::Slot::unassigned, and UNUSED_VARS_NDEBUG.

Referenced by blender::io::fbx::FbxImportContext::import_animation().

◆ import_armatures()

void blender::io::fbx::import_armatures ( Main & bmain,
const ufbx_scene & fbx,
FbxElementMapping & mapping,
const FBXImportParams & params )

Definition at line 423 of file fbx_import_armature.cc.

References params.

Referenced by blender::io::fbx::FbxImportContext::import_armatures().

◆ import_blend_shape_full_weights()

◆ import_blend_shapes()

◆ import_colors()

◆ import_edges()

◆ import_face_material_indices()

void blender::io::fbx::import_face_material_indices ( const ufbx_mesh * fmesh,
bke::MutableAttributeAccessor & attributes )
static

◆ import_face_smoothing()

void blender::io::fbx::import_face_smoothing ( const ufbx_mesh * fmesh,
bke::MutableAttributeAccessor & attributes )
static

◆ import_faces()

void blender::io::fbx::import_faces ( const ufbx_mesh * fmesh,
Mesh * mesh )
static

◆ import_material()

◆ import_meshes()

◆ import_normals_into_temp_attribute()

bool blender::io::fbx::import_normals_into_temp_attribute ( const ufbx_mesh * fmesh,
Mesh * mesh,
bke::MutableAttributeAccessor & attributes )
static

◆ import_skin_vertex_groups()

◆ import_uvs()

◆ import_vertex_positions()

void blender::io::fbx::import_vertex_positions ( const ufbx_mesh * fmesh,
Mesh * mesh )
static

Definition at line 47 of file fbx_import_mesh.cc.

References BLI_assert, i, and blender::MutableSpan< T >::size().

Referenced by import_meshes().

◆ importer_main()

◆ is_skin_deformer_usable()

bool blender::io::fbx::is_skin_deformer_usable ( const ufbx_mesh * mesh,
const ufbx_skin_deformer * skin )
static

Definition at line 41 of file fbx_import_mesh.cc.

Referenced by get_skin_bone_name_set(), and import_skin_vertex_groups().

◆ link_sockets()

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

◆ load_texture_image()

◆ matrix_to_m44()

void blender::io::fbx::matrix_to_m44 ( const ufbx_matrix & src,
float dst[4][4] )

◆ need_create_armature_for_node()

bool blender::io::fbx::need_create_armature_for_node ( const ufbx_node * node)
static

◆ node_matrix_to_obj()

◆ pchan_EnsureProperties()

IDProperty * blender::io::fbx::pchan_EnsureProperties ( bPoseChannel & pchan)
static

Definition at line 265 of file fbx_import_util.cc.

References blender::bke::idprop::create_group(), and bPoseChannel::prop.

Referenced by read_custom_properties().

◆ read_custom_properties() [1/2]

void blender::io::fbx::read_custom_properties ( const ufbx_props & props,
bPoseChannel & pchan,
bool enums_as_strings )

Definition at line 273 of file fbx_import_util.cc.

References pchan_EnsureProperties(), and read_ufbx_property().

◆ read_custom_properties() [2/2]

◆ read_ufbx_property()

◆ set_bsdf_color_param()

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

Definition at line 114 of file fbx_import_material.cc.

References blender::math::clamp(), max, min, and set_socket_rgb().

Referenced by set_bsdf_socket_values().

◆ set_bsdf_float_param()

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

Definition at line 97 of file fbx_import_material.cc.

References blender::math::clamp(), max, min, and set_socket_float().

Referenced by set_bsdf_socket_values().

◆ set_bsdf_socket_values()

void blender::io::fbx::set_bsdf_socket_values ( bNode * bsdf,
Material * mat,
const ufbx_material & fmat )
static

◆ set_curve_sample()

◆ set_socket_float()

void blender::io::fbx::set_socket_float ( const char * socket_id,
const float value,
bNode * node )
static

◆ set_socket_rgb()

void blender::io::fbx::set_socket_rgb ( const char * socket_id,
float vr,
float vg,
float vb,
bNode * node )
static

◆ set_socket_vector()

void blender::io::fbx::set_socket_vector ( const char * socket_id,
float vx,
float vy,
float vz,
bNode * node )
static

◆ should_import_camera()

bool blender::io::fbx::should_import_camera ( const ufbx_scene & fbx,
const ufbx_camera * camera )
static

Definition at line 123 of file fbx_import.cc.

References BLI_assert, and STREQ.

Referenced by blender::io::fbx::FbxImportContext::import_cameras().

◆ ufbx_matrix_to_obj()

void blender::io::fbx::ufbx_matrix_to_obj ( const ufbx_matrix & mtx,
Object * obj )

Variable Documentation

◆ fbx_pbr_to_socket

const FbxPbrTextureToSocket blender::io::fbx::fbx_pbr_to_socket[]
static
Initial value:
= {
{UFBX_MATERIAL_PBR_BASE_COLOR, "Base Color"},
{UFBX_MATERIAL_PBR_ROUGHNESS, "Roughness"},
{UFBX_MATERIAL_PBR_METALNESS, "Metallic"},
{UFBX_MATERIAL_PBR_DIFFUSE_ROUGHNESS, "Diffuse Roughness"},
{UFBX_MATERIAL_PBR_SPECULAR_FACTOR, "Specular IOR Level"},
{UFBX_MATERIAL_PBR_SPECULAR_COLOR, "Specular Tint"},
{UFBX_MATERIAL_PBR_SPECULAR_IOR, "IOR"},
{UFBX_MATERIAL_PBR_SPECULAR_ANISOTROPY, "Anisotropic"},
{UFBX_MATERIAL_PBR_SPECULAR_ROTATION, "Anisotropic Rotation"},
{UFBX_MATERIAL_PBR_TRANSMISSION_FACTOR, "Transmission Weight"},
{UFBX_MATERIAL_PBR_SUBSURFACE_FACTOR, "Subsurface Weight"},
{UFBX_MATERIAL_PBR_SUBSURFACE_SCALE, "Subsurface Scale"},
{UFBX_MATERIAL_PBR_SUBSURFACE_ANISOTROPY, "Subsurface Anisotropy"},
{UFBX_MATERIAL_PBR_SHEEN_FACTOR, "Sheen Weight"},
{UFBX_MATERIAL_PBR_SHEEN_COLOR, "Sheen Tint"},
{UFBX_MATERIAL_PBR_SHEEN_ROUGHNESS, "Sheen Roughness"},
{UFBX_MATERIAL_PBR_COAT_FACTOR, "Coat Weight"},
{UFBX_MATERIAL_PBR_COAT_COLOR, "Coat Tint"},
{UFBX_MATERIAL_PBR_COAT_ROUGHNESS, "Coat Roughness"},
{UFBX_MATERIAL_PBR_COAT_IOR, "Coat IOR"},
{UFBX_MATERIAL_PBR_COAT_NORMAL, "Coat Normal"},
{UFBX_MATERIAL_PBR_THIN_FILM_THICKNESS, "Thin Film Thickness"},
{UFBX_MATERIAL_PBR_THIN_FILM_IOR, "Thin Film IOR"},
{UFBX_MATERIAL_PBR_EMISSION_FACTOR, "Emission Strength"},
{UFBX_MATERIAL_PBR_EMISSION_COLOR, "Emission Color"},
{UFBX_MATERIAL_PBR_OPACITY, "Alpha"},
{UFBX_MATERIAL_PBR_NORMAL_MAP, "Normal"},
{UFBX_MATERIAL_PBR_TANGENT_MAP, "Tangent"},
}

Definition at line 268 of file fbx_import_material.cc.

Referenced by add_image_textures().

◆ fbx_std_to_socket

const FbxStdTextureToSocket blender::io::fbx::fbx_std_to_socket[]
static
Initial value:
= {
{UFBX_MATERIAL_FBX_TRANSPARENCY_FACTOR, "Alpha"},
{UFBX_MATERIAL_FBX_TRANSPARENCY_COLOR, "Alpha"},
{UFBX_MATERIAL_FBX_BUMP, "Normal"},
}

Definition at line 303 of file fbx_import_material.cc.

Referenced by add_image_textures().

◆ node_locx_bsdf

float blender::io::fbx::node_locx_bsdf = 0.0f
staticconstexpr

Definition at line 40 of file fbx_import_material.cc.

Referenced by import_material().

◆ node_locx_image

float blender::io::fbx::node_locx_image = -480.0f
staticconstexpr

Definition at line 38 of file fbx_import_material.cc.

Referenced by add_image_texture().

◆ node_locx_mapping

float blender::io::fbx::node_locx_mapping = -680.0f
staticconstexpr

Definition at line 37 of file fbx_import_material.cc.

Referenced by add_image_texture().

◆ node_locx_normalmap

float blender::io::fbx::node_locx_normalmap = -200.0f
staticconstexpr

Definition at line 39 of file fbx_import_material.cc.

Referenced by add_image_texture().

◆ node_locx_output

float blender::io::fbx::node_locx_output = 280.0f
staticconstexpr

Definition at line 41 of file fbx_import_material.cc.

Referenced by import_material().

◆ node_locx_texcoord

float blender::io::fbx::node_locx_texcoord = -880.0f
staticconstexpr

Definition at line 36 of file fbx_import_material.cc.

Referenced by add_image_texture().

◆ node_locy_step

float blender::io::fbx::node_locy_step = 300.0f
staticconstexpr

Definition at line 45 of file fbx_import_material.cc.

Referenced by add_image_textures().

◆ node_locy_top

float blender::io::fbx::node_locy_top = 300.0f
staticconstexpr

Definition at line 44 of file fbx_import_material.cc.

Referenced by add_image_textures(), and import_material().

◆ temp_custom_normals_name

const char* blender::io::fbx::temp_custom_normals_name = "fbx_temp_custom_normals"
staticconstexpr

Definition at line 39 of file fbx_import_mesh.cc.

Referenced by import_meshes(), and import_normals_into_temp_attribute().