|
Blender V4.5
|
Namespaces | |
| namespace | usdtokens |
Classes | |
| class | CurvesData |
| class | HairData |
| class | HydraSceneDelegate |
| class | IdData |
| class | InstancerData |
| class | LightData |
| class | MaterialData |
| class | MeshData |
| class | ObjectData |
| class | USDSceneDelegate |
| class | VolumeData |
| class | VolumeModifierData |
| class | WorldData |
Typedefs | |
| using | MaterialDataMap = Map<pxr::SdfPath, std::unique_ptr<MaterialData>> |
| using | ObjectDataMap = Map<pxr::SdfPath, std::unique_ptr<ObjectData>> |
Functions | |
| CLG_LOGREF_DECLARE_GLOBAL (LOG_HYDRA_SCENE, "hydra.scene") | |
| static std::string | cache_image_file (Main *bmain, Scene *scene, Image *image, ImageUser *iuser, bool check_exist) |
| std::string | cache_or_get_image_file (Main *bmain, Scene *scene, Image *image, ImageUser *iuser) |
| template<typename T> | |
| static void | resize_uninitialized (pxr::VtArray< T > &array, const int new_size) |
| static std::pair< bke::MeshNormalDomain, Span< float3 > > | get_mesh_normals (const Mesh &mesh) |
| template<typename T> | |
| void | gather_vert_data (const Span< int > verts, const bool copy_all_verts, const Span< T > src_data, MutableSpan< T > dst_data) |
| template<typename T> | |
| void | gather_face_data (const Span< int > tri_faces, const IndexMask &triangles, const Span< T > src_data, MutableSpan< T > dst_data) |
| template<typename T> | |
| void | gather_corner_data (const Span< int3 > corner_tris, const IndexMask &triangles, const Span< T > src_data, MutableSpan< T > dst_data) |
| static void | copy_submesh (const Mesh &mesh, const Span< float3 > vert_positions, const Span< int > corner_verts, const Span< int3 > corner_tris, const Span< int > tri_faces, const std::pair< bke::MeshNormalDomain, Span< float3 > > normals, const Span< float2 > uv_map, const IndexMask &triangles, MeshData::SubMesh &sm) |
| pxr::GfMatrix4d | gf_matrix_from_transform (const float m[4][4]) |
Variables | |
| struct CLG_LogRef * | LOG_HYDRA_SCENE |
| using blender::io::hydra::MaterialDataMap = Map<pxr::SdfPath, std::unique_ptr<MaterialData>> |
Definition at line 41 of file material.hh.
| using blender::io::hydra::ObjectDataMap = Map<pxr::SdfPath, std::unique_ptr<ObjectData>> |
|
static |
Definition at line 25 of file source/blender/io/usd/hydra/image.cc.
References BKE_image_format_copy(), BKE_image_format_free(), BKE_image_path_ext_from_imformat(), BKE_IMAGE_PATH_EXT_MAX, BKE_image_save(), BKE_image_save_options_free(), BKE_image_save_options_init(), BLI_exists(), BLI_path_extension_or_end(), cache_image_file(), CLOG_ERROR, CLOG_INFO, FILE_MAX, ImageSaveOptions::filepath, blender::io::usd::get_image_cache_file(), Image::id, ImageSaveOptions::im_format, RenderData::im_format, LOG_HYDRA_SCENE, ID::name, Scene::r, ImageSaveOptions::save_copy, SNPRINTF, and STRNCPY().
Referenced by cache_image_file(), and cache_or_get_image_file().
| std::string blender::io::hydra::cache_or_get_image_file | ( | Main * | bmain, |
| Scene * | scene, | ||
| Image * | image, | ||
| ImageUser * | iuser ) |
Definition at line 62 of file source/blender/io/usd/hydra/image.cc.
References BKE_image_has_packedfile(), BKE_image_user_file_path_ex(), BKE_main_blendfile_path(), BKE_packedfile_unpack_to_file(), BLI_path_basename(), BLI_path_join, cache_image_file(), cache_or_get_image_file(), CLOG_INFO, FILE_MAX, FILE_MAXDIR, Image::id, IMA_SRC_GENERATED, blender::io::usd::image_cache_file_path(), LISTBASE_FOREACH, LOG_HYDRA_SCENE, MEM_freeN(), ID::name, Image::packedfiles, PF_WRITE_LOCAL, SNPRINTF, Image::source, and str.
Referenced by cache_or_get_image_file(), blender::render::hydra::cache_or_get_image_file_func(), blender::io::hydra::MaterialData::init(), and blender::io::hydra::WorldData::init().
| blender::io::hydra::CLG_LOGREF_DECLARE_GLOBAL | ( | LOG_HYDRA_SCENE | , |
| "hydra.scene" | ) |
References CLG_LOGREF_DECLARE_GLOBAL(), and LOG_HYDRA_SCENE.
Referenced by CLG_LOGREF_DECLARE_GLOBAL().
|
static |
Definition at line 287 of file io/usd/hydra/mesh.cc.
References blender::MutableSpan< T >::cast(), blender::Span< T >::cast(), copy_submesh(), blender::bke::Corner, blender::bke::Face, blender::io::hydra::MeshData::SubMesh::face_vertex_counts, blender::io::hydra::MeshData::SubMesh::face_vertex_indices, blender::index_mask::IndexMask::foreach_index(), gather_corner_data(), gather_vert_data(), blender::GrainSize::GrainSize(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::MutableSpan(), blender::io::hydra::MeshData::SubMesh::normals, blender::bke::Point, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), resize_uninitialized(), blender::index_mask::IndexMask::size(), blender::Span< T >::size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::io::hydra::MeshData::SubMesh::uvs, blender::bke::mesh::vert_tris_from_corner_tris(), and blender::io::hydra::MeshData::SubMesh::vertices.
Referenced by copy_submesh().
| void blender::io::hydra::gather_corner_data | ( | const Span< int3 > | corner_tris, |
| const IndexMask & | triangles, | ||
| const Span< T > | src_data, | ||
| MutableSpan< T > | dst_data ) |
Definition at line 274 of file io/usd/hydra/mesh.cc.
References blender::index_mask::IndexMask::foreach_index_optimized(), gather_corner_data(), and blender::GrainSize::GrainSize().
Referenced by copy_submesh(), and gather_corner_data().
| void blender::io::hydra::gather_face_data | ( | const Span< int > | tri_faces, |
| const IndexMask & | triangles, | ||
| const Span< T > | src_data, | ||
| MutableSpan< T > | dst_data ) |
Definition at line 263 of file io/usd/hydra/mesh.cc.
References blender::index_mask::IndexMask::foreach_index_optimized(), gather_face_data(), and blender::GrainSize::GrainSize().
Referenced by gather_face_data().
| void blender::io::hydra::gather_vert_data | ( | const Span< int > | verts, |
| const bool | copy_all_verts, | ||
| const Span< T > | src_data, | ||
| MutableSpan< T > | dst_data ) |
Definition at line 249 of file io/usd/hydra/mesh.cc.
References blender::array_utils::copy(), blender::array_utils::gather(), and gather_vert_data().
Referenced by copy_submesh(), and gather_vert_data().
|
static |
Definition at line 234 of file io/usd/hydra/mesh.cc.
References BLI_assert_unreachable, blender::bke::Corner, blender::bke::Face, get_mesh_normals(), and blender::bke::Point.
Referenced by get_mesh_normals().
| pxr::GfMatrix4d blender::io::hydra::gf_matrix_from_transform | ( | const float | m[4][4] | ) |
Definition at line 151 of file io/usd/hydra/object.cc.
References gf_matrix_from_transform(), i, and ret.
Referenced by blender::render::hydra::gf_camera(), blender::render::hydra::gf_camera(), gf_matrix_from_transform(), blender::io::hydra::InstancerData::update_instance(), blender::io::hydra::ObjectData::write_transform(), and blender::io::hydra::VolumeModifierData::write_transform().
|
static |
#VtArray::resize() does value initialization of every new value, which ends up being memset for the trivial attribute types we deal with here. This is unnecessary since every item is initialized via copy from a Blender mesh here anyway. This specializes the resize call to skip initialization.
Definition at line 228 of file io/usd/hydra/mesh.cc.
References array< T, alignment >::resize(), and resize_uninitialized().
Referenced by copy_submesh(), and resize_uninitialized().
|
extern |
Referenced by cache_image_file(), cache_or_get_image_file(), CLG_LOGREF_DECLARE_GLOBAL(), blender::io::hydra::HydraSceneDelegate::Get(), blender::io::hydra::HydraSceneDelegate::GetBasisCurvesTopology(), blender::io::hydra::HydraSceneDelegate::GetCullStyle(), blender::io::hydra::HydraSceneDelegate::GetDoubleSided(), blender::io::hydra::HydraSceneDelegate::GetInstanceIndices(), blender::io::hydra::HydraSceneDelegate::GetInstancerId(), blender::io::hydra::HydraSceneDelegate::GetInstancerPrototypes(), blender::io::hydra::HydraSceneDelegate::GetInstancerTransform(), blender::io::hydra::HydraSceneDelegate::GetLightParamValue(), blender::io::hydra::HydraSceneDelegate::GetMaterialId(), blender::io::hydra::HydraSceneDelegate::GetMaterialResource(), blender::io::hydra::HydraSceneDelegate::GetMeshTopology(), blender::io::hydra::HydraSceneDelegate::GetPrimvarDescriptors(), blender::io::hydra::HydraSceneDelegate::GetTransform(), blender::io::hydra::HydraSceneDelegate::GetVisible(), blender::io::hydra::HydraSceneDelegate::GetVolumeFieldDescriptors(), blender::io::hydra::VolumeModifierData::init(), and blender::io::hydra::InstancerData::remove().