Blender V5.0
obj_import_mtl.cc File Reference
#include "BKE_image.hh"
#include "BKE_main.hh"
#include "BKE_node.hh"
#include "BKE_node_legacy_types.hh"
#include "BLI_math_vector.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "NOD_shader.h"
#include "obj_export_mtl.hh"
#include "obj_import_mtl.hh"
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::io
namespace  blender::io::obj

Functions

static void blender::io::obj::set_property_of_socket (eNodeSocketDatatype property_type, const char *socket_id, Span< float > value, bNode *r_node)
static Imageblender::io::obj::load_image_at_path (Main *bmain, const std::string &path, bool relative_paths)
static Imageblender::io::obj::create_placeholder_image (Main *bmain, const std::string &path)
static Imageblender::io::obj::load_texture_image (Main *bmain, const MTLTexMap &tex_map, bool relative_paths)
static bNodeblender::io::obj::add_node (bNodeTree *ntree, int type, float x, float y)
static void blender::io::obj::link_sockets (bNodeTree *ntree, bNode *from_node, const char *from_node_id, bNode *to_node, const char *to_node_id)
static void blender::io::obj::set_bsdf_socket_values (bNode *bsdf, Material *mat, const MTLMaterial &mtl_mat)
static void blender::io::obj::add_image_textures (Main *bmain, bNodeTree *ntree, bNode *bsdf, Material *mat, const MTLMaterial &mtl_mat, bool relative_paths)
bNodeTreeblender::io::obj::create_mtl_node_tree (Main *bmain, const MTLMaterial &mtl_mat, Material *mat, bool relative_paths)

Variables

static CLG_LogRef LOG = {"io.obj"}
const float blender::io::obj::node_locx_texcoord = -880.0f
const float blender::io::obj::node_locx_mapping = -680.0f
const float blender::io::obj::node_locx_image = -480.0f
const float blender::io::obj::node_locx_normalmap = -200.0f
const float blender::io::obj::node_locx_bsdf = 0.0f
const float blender::io::obj::node_locx_output = 280.0f
const float blender::io::obj::node_locy_top = 300.0f
const float blender::io::obj::node_locy_step = 300.0f

Variable Documentation

◆ LOG

CLG_LogRef LOG = {"io.obj"}
static

Definition at line 27 of file obj_import_mtl.cc.