|
Blender V5.0
|
Namespaces | |
| namespace | usdtokens |
Classes | |
| class | CameraDelegate |
| 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 | |
| static pxr::VtValue | vt_value (const IDProperty *prop) |
| 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(), CLOG_DEBUG, CLOG_ERROR, 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_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(), cached_path, CLOG_DEBUG, 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 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 LOG_HYDRA_SCENE.
|
static |
Definition at line 287 of file io/usd/hydra/mesh.cc.
References blender::MutableSpan< T >::cast(), 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::Span< T >::is_empty(), blender::io::hydra::MeshData::SubMesh::normals, normals, blender::bke::Point, resize_uninitialized(), blender::index_mask::IndexMask::size(), blender::Span< T >::size(), blender::io::hydra::MeshData::SubMesh::uvs, blender::bke::mesh::vert_tris_from_corner_tris(), blender::io::hydra::MeshData::SubMesh::vertices, and verts.
| 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().
Referenced by copy_submesh().
| 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().
| 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 verts.
Referenced by copy_submesh().
|
static |
Definition at line 234 of file io/usd/hydra/mesh.cc.
References BLI_assert_unreachable, blender::bke::Corner, blender::bke::Face, and blender::bke::Point.
| 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.
Referenced by blender::render::hydra::gf_camera(), blender::render::hydra::gf_camera(), 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().
Referenced by copy_submesh().
|
static |
Definition at line 17 of file camera_delegate.cc.
References IDP_bool_get, IDP_BOOLEAN, IDP_DOUBLE, IDP_double_get, IDP_FLOAT, IDP_float_get, IDP_INT, IDP_int_get, and IDProperty::type.
Referenced by blender::io::hydra::CameraDelegate::GetCameraParamValue().
|
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().