|
Blender V5.3
|
Classes | |
| class | BlenderCameraIDPropertiesDataSource |
| struct | BObjectInfo |
| class | CameraDelegate |
| struct | CurvesBuilderResult |
| struct | CurvesMaterial |
| struct | EmittedGeometry |
| struct | EmittedGeometryKey |
| struct | EmittedGeometryPrim |
| struct | EmittedMaterial |
| struct | EmittedObject |
| struct | EmittedObjectPrim |
| class | EmittedWorld |
| struct | HdContainerBuilder |
| class | HydraSceneIndex |
| struct | PopulateContext |
| struct | SubMesh |
| class | USDSceneIndex |
| struct | VolumeFieldDescriptor |
Functions | |
| static const pxr::TfToken | usd_st_token ("st", pxr::TfToken::Immortal) |
| static CurvesBuilderResult | build_curves_data (const Object *object) |
| static EmittedGeometryPrim | build_curves_geometry (const CurvesBuilderResult &r, const pxr::SdfPath &material_path) |
| static CurvesMaterial | resolve_curves_material (PopulateContext &ctx, Object *object, const int slot) |
| static const EmittedGeometry & | get_or_build_emitted_curves (PopulateContext &ctx, const BObjectInfo &info, const EmittedGeometryKey &key) |
| void | emit_curves_object (PopulateContext &ctx, const BObjectInfo &info, EmittedObject &emitted) |
| void | emit_curves_proto (PopulateContext &ctx, const BObjectInfo &info) |
| static CurvesBuilderResult | build_hair_data (Object *object, ParticleSystem *psys) |
| void | emit_hair_for_object (PopulateContext &ctx, Object *object, EmittedObject &emitted) |
| void | emit_hair_proto (PopulateContext &ctx, Object *source) |
| 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) |
| pxr::HdContainerDataSourceHandle | build_instanced_by_data_source (const pxr::SdfPath &instancer_path, const pxr::SdfPath &prototype_root) |
| pxr::HdContainerDataSourceHandle | build_instancer_prim_data_source (Span< pxr::SdfPath > prototypes, Span< pxr::VtIntArray > instance_indices, const pxr::VtMatrix4dArray &transforms) |
| static pxr::TfToken | light_prim_type (const Light *light) |
| static pxr::HdContainerDataSourceHandle | build_light_params_data_source (const Object *object) |
| pxr::HdContainerDataSourceHandle | build_light_prim_data_source (const pxr::HdContainerDataSourceHandle &light_params, const pxr::GfMatrix4d &transform, const bool visible) |
| void | emit_light_object (PopulateContext &ctx, const Object *object, EmittedObject &emitted) |
| void | emit_light_dupli (PopulateContext &ctx, const Object *source, const float dupli_mat[4][4]) |
| static pxr::HdContainerDataSourceHandle | build_material_node_data_source (const pxr::HdMaterialNode2 &node) |
| static pxr::HdContainerDataSourceHandle | build_material_network_data_source (const pxr::HdMaterialNetworkMap &network_map) |
| EmittedMaterial | build_emitted_material (const PopulateContext &ctx, const Material *material) |
| static const pxr::TfToken | usd_st_token ("st", pxr::TfToken::Immortal) |
| 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 Span< float3 > face_normals, const Span< float3 > vert_normals, const Span< float3 > corner_normals, const bke::MeshNormalDomain normals_domain, const Span< float2 > uv_map, const IndexMask &triangles, SubMesh &sm) |
| static Vector< SubMesh > | build_submeshes (const Object *object, const Mesh &mesh) |
| static EmittedGeometryPrim | build_submesh_geometry (const SubMesh &sm, const pxr::SdfPath &material_path, const bool double_sided) |
| static const EmittedGeometry & | get_or_build_emitted_mesh (PopulateContext &ctx, const BObjectInfo &info, const EmittedGeometryKey &key) |
| void | emit_mesh_object (PopulateContext &ctx, const BObjectInfo &info, EmittedObject &emitted) |
| void | emit_mesh_proto (PopulateContext &ctx, const BObjectInfo &info) |
| CLG_LOGREF_DECLARE_GLOBAL (LOG_HYDRA_SCENE_INDEX, "hydra.scene_index") | |
| static bool | object_render_as_geometry (const Object *object) |
| pxr::GfMatrix4d | gf_matrix_from_transform (const float m[4][4]) |
| template<typename T> | |
| void | resize_uninitialized (pxr::VtArray< T > &array, const int new_size) |
| static pxr::HdContainerDataSourceHandle | build_volume_field_data_source (const std::string &filepath, const pxr::TfToken &field_name) |
| static pxr::HdContainerDataSourceHandle | build_volume_prim_data_source (const Span< VolumeFieldDescriptor > fields, const pxr::GfMatrix4d &transform, const bool visible, const pxr::SdfPath &material_path) |
| static std::string | build_volume_fields_from_datablock (const Object *object, const pxr::SdfPath &volume_path, Main *bmain, pxr::GfMatrix4d *r_transform, Vector< VolumeFieldDescriptor > *r_fields) |
| bool | emit_volume_object (PopulateContext &ctx, const Object *object, EmittedObject &emitted) |
| void | emit_volume_dupli (PopulateContext &ctx, const Object *source, const float dupli_mat[4][4]) |
| const FluidModifierData * | fluid_gas_domain_modifier (const Object *object, const Depsgraph *depsgraph) |
| static std::string | fluid_cache_file_path (const std::string &directory, const int frame) |
| static pxr::GfMatrix4d | volume_modifier_geometry_transform (const Object *object, const FluidModifierData *fmd) |
| std::string | build_volume_fields_from_modifier (const Object *object, const FluidModifierData *fmd, const int frame, const pxr::SdfPath &volume_path, pxr::GfMatrix4d *r_geometry_xform, Vector< VolumeFieldDescriptor > *r_fields) |
| pxr::HdContainerDataSourceHandle | build_world_data_source (Main *bmain, Scene *scene, const View3D *view3d, pxr::GfMatrix4d *r_transform) |
BObjectInfo / EmittedGeometryKey | |
| static bool | object_disables_geometry_sharing (Scene *scene, eEvaluationMode mode, Object *ob) |
Instances and Prototypes | |
| pxr::HdContainerDataSourceHandle | compose_gprim_data_source (const EmittedGeometryPrim &gprim, const pxr::GfMatrix4d &transform, const bool visible, const pxr::HdContainerDataSourceHandle &instanced_by_overlay) |
Variables | |
| CLG_LogRef * | LOG_HYDRA_SCENE_INDEX |
|
static |
Definition at line 49 of file io/usd/hydra/curves.cc.
References build_curves_data(), blender::offset_indices::copy_group_sizes(), blender::io::hydra::CurvesBuilderResult::curve_vertex_counts, blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::bke::Point, blender::io::hydra::CurvesBuilderResult::points, resize_uninitialized(), blender::Span< T >::size(), blender::io::hydra::CurvesBuilderResult::uvs, and blender::io::hydra::CurvesBuilderResult::widths.
Referenced by build_curves_data(), and get_or_build_emitted_curves().
|
static |
Definition at line 92 of file io/usd/hydra/curves.cc.
References blender::io::hydra::HdContainerBuilder::add(), build_curves_geometry(), blender::io::hydra::CurvesBuilderResult::curve_vertex_counts, blender::io::hydra::HdContainerBuilder::names, blender::gpu::shader::metadata::out, blender::io::hydra::CurvesBuilderResult::points, usd_st_token(), blender::io::hydra::CurvesBuilderResult::uvs, blender::io::hydra::HdContainerBuilder::values, and blender::io::hydra::CurvesBuilderResult::widths.
Referenced by build_curves_geometry(), emit_hair_for_object(), emit_hair_proto(), and get_or_build_emitted_curves().
| EmittedMaterial blender::io::hydra::build_emitted_material | ( | const PopulateContext & | ctx, |
| const Material * | material ) |
Build a Hydra material data source.
Definition at line 115 of file io/usd/hydra/material.cc.
References b, blender::io::hydra::PopulateContext::bmain, build_emitted_material(), build_material_network_data_source(), cache_or_get_image_file(), CLOG_WARN, blender::io::usd::create_usd_material(), blender::io::usd::create_usd_viewport_material(), blender::io::hydra::EmittedMaterial::data_source, blender::DEG_get_mode(), blender::io::hydra::PopulateContext::depsgraph, blender::io::hydra::EmittedMaterial::double_sided, blender::io::usd::USDExportParams::evaluation_mode, blender::io::usd::USDExportParams::export_textures, blender::nodes::materialx::export_to_materialx(), blender::io::usd::image_cache_file_path(), LOG_HYDRA_SCENE_INDEX, blender::MA_BL_CULL_BACKFACE, blender::io::hydra::PopulateContext::material_prim_id(), blender::io::hydra::PopulateContext::material_render_contexts, blender::io::hydra::EmittedMaterial::path, blender::io::usd::USDExportParams::relative_paths, blender::io::hydra::PopulateContext::shader_source_types, and blender::io::hydra::PopulateContext::use_materialx.
Referenced by build_emitted_material(), and blender::io::hydra::PopulateContext::get_or_create_material().
|
static |
Definition at line 239 of file io/usd/hydra/curves.cc.
References build_hair_data(), blender::CD_MFACE, blender::CD_MTFACE, blender::ParticleCacheKey::co, blender::io::hydra::CurvesBuilderResult::curve_vertex_counts, blender::CustomData_get_layer(), DMCACHE_ISCHILD, DMCACHE_NOTFOUND, ELEM, blender::Mesh::fdata_legacy, float, blender::ParticleSettings::from, blender::ParticleData::fuv, blender::ParticleSystem::imat, blender::ParticleSystemModifierData::mesh_final, blender::mul_v3_m4v3(), blender::num, blender::ParticleData::num, blender::ParticleData::num_dmcache, blender::ParticleSystem::part, blender::PART_FROM_FACE, blender::PART_FROM_VOLUME, blender::PART_SHAPE_CLOSE_TIP, blender::ParticleSystem::particles, blender::ParticleSystem::pathcache, blender::io::hydra::CurvesBuilderResult::points, blender::psys_get_modifier(), blender::psys_interpolate_uvs(), blender::ParticleSettings::rad_root, blender::ParticleSettings::rad_scale, blender::ParticleSettings::rad_tip, scale(), blender::ParticleCacheKey::segments, blender::ParticleSettings::shape, blender::ParticleSettings::shape_flag, blender::ParticleSystem::totpart, blender::io::hydra::CurvesBuilderResult::uvs, blender::MFace::v4, blender::io::hydra::CurvesBuilderResult::widths, and blender::x.
Referenced by build_hair_data(), emit_hair_for_object(), and emit_hair_proto().
| pxr::HdContainerDataSourceHandle blender::io::hydra::build_instanced_by_data_source | ( | const pxr::SdfPath & | instancer_path, |
| const pxr::SdfPath & | prototype_root ) |
Build an #HdInstancedBySchema data source binding a prototype to its instancer.
Definition at line 21 of file instancer.cc.
References build_instanced_by_data_source().
Referenced by build_instanced_by_data_source(), and blender::io::hydra::PopulateContext::proto_instanced_by().
| pxr::HdContainerDataSourceHandle blender::io::hydra::build_instancer_prim_data_source | ( | Span< pxr::SdfPath > | prototypes, |
| Span< pxr::VtIntArray > | instance_indices, | ||
| const pxr::VtMatrix4dArray & | transforms ) |
Build the aggregate instancer prim data source.
Definition at line 32 of file instancer.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), b, blender::Span< T >::begin(), blender::BLI_assert(), build_instancer_prim_data_source(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::Span< T >::end(), blender::Span< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::Span< T >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by build_instancer_prim_data_source(), and blender::io::hydra::HydraSceneIndex::populate().
|
static |
Definition at line 54 of file io/usd/hydra/light.cc.
References angle(), b, build_light_params_data_source(), blender::LA_AREA, blender::LA_AREA_DISK, blender::LA_AREA_ELLIPSE, blender::LA_AREA_RECT, blender::LA_AREA_SQUARE, blender::LA_LOCAL, blender::LA_SPOT, blender::LA_SUN, blender::LA_UNNORMALIZED, blender::LA_USE_TEMPERATURE, M_PI, normalize, RAD2DEGF, and blender::eevee::LightData::type.
Referenced by build_light_params_data_source(), emit_light_dupli(), and emit_light_object().
| pxr::HdContainerDataSourceHandle blender::io::hydra::build_light_prim_data_source | ( | const pxr::HdContainerDataSourceHandle & | light_params, |
| const pxr::GfMatrix4d & | transform, | ||
| bool | visible ) |
Compose a light prim data source from light parameters, transform and visibility.
Definition at line 118 of file io/usd/hydra/light.cc.
References b, and build_light_prim_data_source().
Referenced by build_light_prim_data_source(), blender::io::hydra::EmittedWorld::emit(), emit_light_dupli(), and emit_light_object().
|
static |
Definition at line 83 of file io/usd/hydra/material.cc.
References blender::io::hydra::HdContainerBuilder::add(), blender::io::hydra::HdContainerBuilder::build(), build_material_network_data_source(), build_material_node_data_source(), and blender::io::hydra::HdContainerBuilder::reserve().
Referenced by build_emitted_material(), and build_material_network_data_source().
|
static |
Definition at line 44 of file io/usd/hydra/material.cc.
References blender::io::hydra::HdContainerBuilder::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::io::hydra::HdContainerBuilder::build(), build_material_node_data_source(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), node, blender::io::hydra::HdContainerBuilder::reserve(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by build_material_network_data_source(), and build_material_node_data_source().
|
static |
Definition at line 228 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::HdContainerBuilder::add(), blender::io::hydra::HdContainerBuilder::build(), build_submesh_geometry(), blender::io::hydra::SubMesh::face_vertex_counts, blender::io::hydra::SubMesh::face_vertex_indices, blender::io::hydra::SubMesh::normals, blender::gpu::shader::metadata::out, blender::io::hydra::SubMesh::points, usd_st_token(), and blender::io::hydra::SubMesh::uvs.
Referenced by build_submesh_geometry(), and get_or_build_emitted_mesh().
|
static |
Definition at line 150 of file io/usd/hydra/mesh.cc.
References blender::BKE_object_material_count_eval(), build_submeshes(), copy_submesh(), blender::bke::Corner, blender::bke::Face, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::IndexMask::from_groups(), blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::bke::AttributeAccessor::lookup(), blender::threading::parallel_for(), blender::bke::Point, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::Span< T >::Span().
Referenced by build_submeshes(), and get_or_build_emitted_mesh().
|
static |
Definition at line 34 of file io/usd/hydra/volume.cc.
References build_volume_field_data_source().
Referenced by build_volume_field_data_source(), emit_volume_dupli(), and emit_volume_object().
|
static |
Definition at line 90 of file io/usd/hydra/volume.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_volume_grid_get(), blender::BKE_volume_grids_frame_filepath(), blender::BKE_volume_load(), blender::BKE_volume_num_grids(), blender::BKE_volume_unload(), build_volume_fields_from_datablock(), blender::io::hydra::VolumeFieldDescriptor::field_path, blender::bke::volume_grid::get_name(), gf_matrix_from_transform(), blender::bke::VolumeRuntime::grids, blender::IndexRange::IndexRange(), blender::io::hydra::VolumeFieldDescriptor::name, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), and blender::Volume::runtime.
Referenced by build_volume_fields_from_datablock(), emit_volume_dupli(), and emit_volume_object().
| std::string blender::io::hydra::build_volume_fields_from_modifier | ( | const Object * | object, |
| const FluidModifierData * | fmd, | ||
| int | frame, | ||
| const pxr::SdfPath & | volume_path, | ||
| pxr::GfMatrix4d * | r_geometry_xform, | ||
| Vector< VolumeFieldDescriptor > * | r_fields ) |
Resolve the VDB cache file path,per-grid fields and transform for a fluid modifier.
Definition at line 71 of file volume_modifier.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), build_volume_fields_from_modifier(), blender::FluidDomainSettings::cache_data_format, blender::FluidDomainSettings::cache_directory, blender::FluidModifierData::domain, blender::io::hydra::VolumeFieldDescriptor::field_path, fluid_cache_file_path(), blender::FLUID_DOMAIN_FILE_OPENVDB, blender::io::hydra::VolumeFieldDescriptor::name, and volume_modifier_geometry_transform().
Referenced by build_volume_fields_from_modifier(), and emit_volume_object().
|
static |
Definition at line 48 of file io/usd/hydra/volume.cc.
References blender::io::hydra::HdContainerBuilder::add(), b, build_volume_prim_data_source(), blender::io::hydra::HdContainerBuilder::names, blender::io::hydra::HdContainerBuilder::reserve(), blender::Span< T >::size(), and blender::io::hydra::HdContainerBuilder::values.
Referenced by build_volume_prim_data_source(), emit_volume_dupli(), and emit_volume_object().
| pxr::HdContainerDataSourceHandle blender::io::hydra::build_world_data_source | ( | Main * | bmain, |
| Scene * | scene, | ||
| const View3D * | view3d, | ||
| pxr::GfMatrix4d * | r_transform ) |
Build the dome-light parameter container for the active world or studiolight.
Definition at line 34 of file io/usd/hydra/world.cc.
References b, blender::BKE_studiolight_find(), build_world_data_source(), blender::io::usd::cache_image_color(), cache_or_get_image_file(), blender::io::usd::WorldToDomeLight::color, blender::io::usd::WorldToDomeLight::color_found, blender::io::usd::WorldToDomeLight::color_mult, blender::StudioLight::filepath, blender::StudioLight::flag, blender::io::usd::WorldToDomeLight::image, blender::io::usd::WorldToDomeLight::intensity, blender::io::usd::WorldToDomeLight::iuser, blender::View3DShading::lookdev_light, blender::io::usd::WorldToDomeLight::mult_found, RAD2DEGF, blender::View3D::shading, blender::View3DShading::studiolight_intensity, STUDIOLIGHT_ORIENTATIONS_MATERIAL_MODE, blender::View3DShading::studiolight_rot_z, blender::STUDIOLIGHT_TYPE_WORLD, blender::io::usd::WorldToDomeLight::transform, V3D_USES_SCENE_WORLD, blender::Scene::world, and blender::io::usd::world_material_to_dome_light().
Referenced by build_world_data_source(), and blender::io::hydra::EmittedWorld::emit().
|
static |
Definition at line 25 of file source/blender/io/usd/hydra/image.cc.
References blender::BKE_image_format_set(), blender::BKE_image_path_ext_from_imformat(), BKE_IMAGE_PATH_EXT_MAX, blender::BKE_image_save(), blender::BKE_image_save_options_free(), blender::BKE_image_save_options_init(), blender::BLI_exists(), blender::BLI_path_extension_or_end(), cache_image_file(), CLOG_DEBUG, CLOG_ERROR, FILE_MAX, blender::ImageSaveOptions::filepath, blender::io::usd::get_image_cache_file(), blender::ImageSaveOptions::im_format, LOG_HYDRA_SCENE_INDEX, blender::R_IMF_IMTYPE_PNG, blender::ImageSaveOptions::save_copy, SNPRINTF, and blender::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 61 of file source/blender/io/usd/hydra/image.cc.
References blender::BKE_image_has_packedfile(), blender::BKE_image_user_file_path_ex(), blender::BKE_main_blendfile_path(), blender::BKE_packedfile_unpack_to_file(), blender::BLI_path_basename(), BLI_path_join, cache_image_file(), cache_or_get_image_file(), CLOG_DEBUG, FILE_MAX, FILE_MAXDIR, blender::ImagePackedFile::filepath, blender::IMA_SRC_GENERATED, blender::io::usd::image_cache_file_path(), LOG_HYDRA_SCENE_INDEX, blender::ImagePackedFile::packedfile, blender::PF_WRITE_LOCAL, SNPRINTF, and str.
Referenced by build_emitted_material(), build_world_data_source(), cache_or_get_image_file(), and blender::render::hydra::cache_or_get_image_file_func().
| blender::io::hydra::CLG_LOGREF_DECLARE_GLOBAL | ( | LOG_HYDRA_SCENE_INDEX | , |
| "hydra.scene_index" | ) |
| pxr::HdContainerDataSourceHandle blender::io::hydra::compose_gprim_data_source | ( | const EmittedGeometryPrim & | gprim, |
| const pxr::GfMatrix4d & | transform, | ||
| const bool | visible, | ||
| const pxr::HdContainerDataSourceHandle & | instanced_by_overlay ) |
Definition at line 226 of file populate_context.cc.
References b, blender::io::hydra::EmittedGeometryPrim::bindings, compose_gprim_data_source(), blender::io::hydra::EmittedGeometryPrim::geometry, blender::io::hydra::EmittedGeometryPrim::primvars, and blender::io::hydra::EmittedGeometryPrim::schema_token.
Referenced by compose_gprim_data_source(), emit_curves_object(), emit_curves_proto(), emit_hair_for_object(), emit_hair_proto(), emit_mesh_object(), and emit_mesh_proto().
|
static |
Definition at line 52 of file io/usd/hydra/mesh.cc.
References blender::Span< T >::cast(), copy_submesh(), blender::bke::Corner, blender::bke::Face, blender::io::hydra::SubMesh::face_vertex_counts, blender::io::hydra::SubMesh::face_vertex_indices, blender::index_mask::IndexMask::foreach_index(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::Span< T >::index_range(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_range(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::MutableSpan(), blender::io::hydra::SubMesh::normals, blender::bke::Point, blender::io::hydra::SubMesh::points, 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::SubMesh::uvs, blender::v, and blender::bke::mesh::vert_tris_from_corner_tris().
Referenced by build_submeshes(), and copy_submesh().
| void blender::io::hydra::emit_curves_object | ( | PopulateContext & | ctx, |
| const BObjectInfo & | info, | ||
| EmittedObject & | emitted ) |
Definition at line 200 of file io/usd/hydra/curves.cc.
References compose_gprim_data_source(), emit_curves_object(), blender::io::hydra::PopulateContext::emit_object_prim(), blender::io::hydra::PopulateContext::emitted_geometry_key(), blender::io::hydra::EmittedObject::geometry_keys, get_or_build_emitted_curves(), gf_matrix_from_transform(), blender::io::hydra::BObjectInfo::iter_object, blender::io::hydra::EmittedGeometry::materials, blender::io::hydra::EmittedObject::materials, blender::io::hydra::PopulateContext::object_prim_id(), and blender::io::hydra::EmittedGeometry::prims.
Referenced by emit_curves_object(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_curves_proto | ( | PopulateContext & | ctx, |
| const BObjectInfo & | info ) |
Definition at line 220 of file io/usd/hydra/curves.cc.
References blender::io::hydra::PopulateContext::all_proto_paths, compose_gprim_data_source(), emit_curves_proto(), blender::io::hydra::PopulateContext::emit_prim(), blender::io::hydra::PopulateContext::emitted_geometry_key(), get_or_build_emitted_curves(), blender::io::hydra::PopulateContext::instancer_proto_root(), blender::io::hydra::PopulateContext::per_proto_indices, blender::io::hydra::EmittedGeometry::prims, blender::io::hydra::PopulateContext::proto_instanced_by(), and blender::io::hydra::BObjectInfo::real_object.
Referenced by emit_curves_proto(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_hair_for_object | ( | PopulateContext & | ctx, |
| Object * | object, | ||
| EmittedObject & | emitted ) |
Definition at line 304 of file io/usd/hydra/curves.cc.
References build_curves_geometry(), build_hair_data(), compose_gprim_data_source(), blender::io::hydra::CurvesBuilderResult::curve_vertex_counts, blender::DAG_EVAL_RENDER, blender::DEG_get_mode(), blender::io::hydra::PopulateContext::depsgraph, emit_hair_for_object(), blender::io::hydra::PopulateContext::emit_object_prim(), gf_matrix_from_transform(), blender::io::hydra::PopulateContext::hair_prim_id(), blender::io::hydra::CurvesMaterial::material, blender::io::hydra::EmittedObject::materials, blender::ParticleSettings::omat, blender::ParticleSystem::part, blender::PART_HAIR, blender::io::hydra::CurvesMaterial::path, blender::psys_check_enabled(), blender::psys_in_edit_mode(), resolve_curves_material(), and blender::ParticleSettings::type.
Referenced by emit_hair_for_object(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_hair_proto | ( | PopulateContext & | ctx, |
| Object * | source ) |
Definition at line 333 of file io/usd/hydra/curves.cc.
References blender::io::hydra::PopulateContext::all_proto_paths, build_curves_geometry(), build_hair_data(), compose_gprim_data_source(), blender::io::hydra::CurvesBuilderResult::curve_vertex_counts, blender::DAG_EVAL_RENDER, blender::DEG_get_mode(), blender::io::hydra::PopulateContext::depsgraph, emit_hair_proto(), blender::io::hydra::PopulateContext::emit_prim(), blender::io::hydra::PopulateContext::instancer_proto_root(), blender::ParticleSettings::omat, blender::ParticleSystem::part, blender::PART_HAIR, blender::Object::particlesystem, blender::io::hydra::CurvesMaterial::path, blender::io::hydra::PopulateContext::per_proto_indices, blender::io::hydra::PopulateContext::proto_instanced_by(), blender::psys_check_enabled(), blender::psys_in_edit_mode(), resolve_curves_material(), SNPRINTF, and blender::ParticleSettings::type.
Referenced by emit_hair_proto(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_light_dupli | ( | PopulateContext & | ctx, |
| const Object * | source, | ||
| const float | dupli_mat[4][4] ) |
Emit a per-dupli light Sprim. Lights aren't gprims and don't go through the instancer prototype mechanism.
Definition at line 154 of file io/usd/hydra/light.cc.
References build_light_params_data_source(), build_light_prim_data_source(), blender::Object::data, emit_light_dupli(), blender::io::hydra::PopulateContext::emit_prim(), gf_matrix_from_transform(), blender::io::hydra::PopulateContext::instance_clone_prim_id(), light_prim_type(), blender::io::hydra::PopulateContext::nonmesh_instance_count, V3D_USES_SCENE_LIGHTS, and blender::io::hydra::PopulateContext::view3d.
Referenced by emit_light_dupli(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_light_object | ( | PopulateContext & | ctx, |
| const Object * | object, | ||
| EmittedObject & | emitted ) |
Emit a light Sprim for a lamp object.
Definition at line 140 of file io/usd/hydra/light.cc.
References build_light_params_data_source(), build_light_prim_data_source(), emit_light_object(), blender::io::hydra::PopulateContext::emit_object_prim(), gf_matrix_from_transform(), light_prim_type(), blender::io::hydra::PopulateContext::object_prim_id(), V3D_USES_SCENE_LIGHTS, and blender::io::hydra::PopulateContext::view3d.
Referenced by emit_light_object(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_mesh_object | ( | PopulateContext & | ctx, |
| const BObjectInfo & | info, | ||
| EmittedObject & | emitted ) |
Emit a mesh Rprim per material-slot submesh.
Definition at line 362 of file io/usd/hydra/mesh.cc.
References compose_gprim_data_source(), emit_mesh_object(), blender::io::hydra::PopulateContext::emit_object_prim(), blender::io::hydra::PopulateContext::emitted_geometry_key(), blender::io::hydra::EmittedObject::geometry_keys, get_or_build_emitted_mesh(), gf_matrix_from_transform(), blender::io::hydra::BObjectInfo::iter_object, blender::io::hydra::EmittedGeometry::materials, blender::io::hydra::EmittedObject::materials, blender::io::hydra::EmittedGeometry::prims, and blender::io::hydra::PopulateContext::submesh_prim_id().
Referenced by emit_mesh_object(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_mesh_proto | ( | PopulateContext & | ctx, |
| const BObjectInfo & | info ) |
Emit prototype submeshes for use as instancer prototypes.
Definition at line 382 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::PopulateContext::all_proto_paths, compose_gprim_data_source(), emit_mesh_proto(), blender::io::hydra::PopulateContext::emit_prim(), blender::io::hydra::PopulateContext::emitted_geometry_key(), get_or_build_emitted_mesh(), blender::io::hydra::PopulateContext::instancer_proto_submesh(), blender::io::hydra::PopulateContext::per_proto_indices, blender::io::hydra::EmittedGeometry::prims, blender::io::hydra::PopulateContext::proto_instanced_by(), and blender::io::hydra::BObjectInfo::real_object.
Referenced by emit_mesh_proto(), and blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::emit_volume_dupli | ( | PopulateContext & | ctx, |
| const Object * | source, | ||
| const float | dupli_mat[4][4] ) |
Emit a per-dupli volume prim. Volumes aren't gprims and don't go through the instancer prototype mechanism.
Definition at line 170 of file io/usd/hydra/volume.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_object_material_count_eval(), blender::BKE_object_material_get_eval(), blender::io::hydra::PopulateContext::bmain, build_volume_field_data_source(), build_volume_fields_from_datablock(), build_volume_prim_data_source(), blender::io::hydra::PopulateContext::emit_prim(), emit_volume_dupli(), blender::io::hydra::PopulateContext::get_or_create_material(), gf_matrix_from_transform(), blender::io::hydra::PopulateContext::instance_clone_prim_id(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::io::hydra::PopulateContext::nonmesh_instance_count, and blender::io::hydra::EmittedMaterial::path.
Referenced by emit_volume_dupli(), and blender::io::hydra::HydraSceneIndex::populate().
| bool blender::io::hydra::emit_volume_object | ( | PopulateContext & | ctx, |
| const Object * | object, | ||
| EmittedObject & | emitted ) |
Emit a volume Rprim for either a volume object or fluid modifier.
Definition at line 118 of file io/usd/hydra/volume.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_object_material_count_eval(), blender::BKE_object_material_get_eval(), blender::io::hydra::PopulateContext::bmain, build_volume_field_data_source(), build_volume_fields_from_datablock(), build_volume_fields_from_modifier(), build_volume_prim_data_source(), blender::RenderData::cfra, blender::io::hydra::PopulateContext::depsgraph, blender::io::hydra::PopulateContext::emit_object_prim(), emit_volume_object(), fluid_gas_domain_modifier(), blender::io::hydra::PopulateContext::get_or_create_material(), gf_matrix_from_transform(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::io::hydra::EmittedObject::materials, blender::OB_VOLUME, blender::io::hydra::PopulateContext::object_prim_id(), blender::io::hydra::EmittedMaterial::path, blender::Scene::r, and blender::io::hydra::PopulateContext::scene.
Referenced by emit_volume_object(), and blender::io::hydra::HydraSceneIndex::populate().
|
static |
Definition at line 43 of file volume_modifier.cc.
References blender::BLI_path_frame(), BLI_path_join, FILE_MAX, fluid_cache_file_path(), FLUID_DOMAIN_DIR_DATA, FLUID_DOMAIN_EXTENSION_OPENVDB, FLUID_NAME_DATA, and SNPRINTF_UTF8.
Referenced by build_volume_fields_from_modifier(), and fluid_cache_file_path().
| const FluidModifierData * blender::io::hydra::fluid_gas_domain_modifier | ( | const Object * | object, |
| const Depsgraph * | depsgraph ) |
Evaluated FluidModifierData for a mesh object.
Definition at line 22 of file volume_modifier.cc.
References blender::BKE_modifier_get_evaluated(), blender::BKE_modifiers_findby_type(), blender::FluidModifierData::domain, blender::eModifierType_Fluid, blender::FLUID_DOMAIN_TYPE_GAS, fluid_gas_domain_modifier(), blender::MOD_FLUID_TYPE_DOMAIN, blender::OB_MESH, blender::FluidDomainSettings::type, and blender::FluidModifierData::type.
Referenced by emit_volume_object(), and fluid_gas_domain_modifier().
|
static |
Definition at line 173 of file io/usd/hydra/curves.cc.
References build_curves_data(), build_curves_geometry(), blender::io::hydra::PopulateContext::emitted_geometry, get_or_build_emitted_curves(), blender::io::hydra::PopulateContext::get_or_create_material(), blender::io::hydra::PopulateContext::instance_geometries_by_object, blender::io::hydra::BObjectInfo::is_real_object_data(), blender::io::hydra::CurvesMaterial::material, blender::io::hydra::EmittedGeometry::materials, blender::io::hydra::BObjectInfo::object_data, blender::io::hydra::CurvesMaterial::path, blender::io::hydra::EmittedGeometry::prims, blender::io::hydra::BObjectInfo::real_object, resolve_curves_material(), blender::io::hydra::PopulateContext::used_emitted_geometry, and blender::io::hydra::PopulateContext::used_instance_sources.
Referenced by emit_curves_object(), emit_curves_proto(), and get_or_build_emitted_curves().
|
static |
Definition at line 304 of file io/usd/hydra/mesh.cc.
References blender::BKE_object_material_get_eval(), blender::BKE_object_to_mesh(), blender::BKE_object_to_mesh_clear(), build_submesh_geometry(), build_submeshes(), blender::io::hydra::EmittedMaterial::double_sided, blender::io::hydra::PopulateContext::emitted_geometry, get_or_build_emitted_mesh(), blender::io::hydra::PopulateContext::get_or_create_material(), blender::GS(), blender::ID_ME, blender::io::hydra::PopulateContext::instance_geometries_by_object, blender::io::hydra::BObjectInfo::is_real_object_data(), blender::io::hydra::EmittedGeometry::materials, blender::ID::name, blender::io::hydra::BObjectInfo::object_data, blender::io::hydra::EmittedMaterial::path, blender::io::hydra::EmittedGeometry::prims, blender::io::hydra::BObjectInfo::real_object, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::hydra::PopulateContext::used_emitted_geometry, and blender::io::hydra::PopulateContext::used_instance_sources.
Referenced by emit_mesh_object(), emit_mesh_proto(), and get_or_build_emitted_mesh().
|
inline |
Definition at line 20 of file util.hh.
References gf_matrix_from_transform(), and blender::ret.
Referenced by blender::io::hydra::PopulateContext::add_instance(), build_volume_fields_from_datablock(), emit_curves_object(), emit_hair_for_object(), emit_light_dupli(), emit_light_object(), emit_mesh_object(), emit_volume_dupli(), emit_volume_object(), gf_matrix_from_transform(), and blender::io::hydra::HydraSceneIndex::populate().
|
static |
Definition at line 28 of file io/usd/hydra/light.cc.
References BLI_assert_unreachable, blender::LA_AREA, blender::LA_AREA_DISK, blender::LA_AREA_ELLIPSE, blender::LA_AREA_RECT, blender::LA_AREA_SQUARE, blender::LA_LOCAL, blender::LA_SPOT, blender::LA_SUN, light_prim_type(), and blender::eevee::LightData::type.
Referenced by emit_light_dupli(), emit_light_object(), and light_prim_type().
|
static |
Definition at line 49 of file populate_context.cc.
References blender::BKE_object_is_modified(), blender::BKE_object_material_count_eval(), blender::DAG_EVAL_VIEWPORT, blender::eModifierMode_Realtime, blender::eModifierMode_Render, blender::Object::matbits, blender::OB_MBALL, object_disables_geometry_sharing(), and blender::Object::type.
Referenced by blender::io::hydra::PopulateContext::emitted_geometry_key(), and object_disables_geometry_sharing().
|
static |
Definition at line 59 of file scene_index.cc.
References ELEM, blender::OB_CURVES, blender::OB_CURVES_LEGACY, blender::OB_FONT, blender::OB_MBALL, blender::OB_MESH, blender::OB_SURF, and object_render_as_geometry().
Referenced by object_render_as_geometry(), and blender::io::hydra::HydraSceneIndex::populate().
|
inline |
Resize without value-initializing new elements; caller must fill them.
Definition at line 32 of file util.hh.
References array< T, alignment >::resize(), and resize_uninitialized().
Referenced by build_curves_data(), copy_submesh(), and resize_uninitialized().
|
static |
Definition at line 162 of file io/usd/hydra/curves.cc.
References blender::BKE_object_material_count_eval(), blender::BKE_object_material_get_eval(), blender::io::hydra::PopulateContext::get_or_create_material(), blender::io::hydra::EmittedMaterial::path, and resolve_curves_material().
Referenced by emit_hair_for_object(), emit_hair_proto(), get_or_build_emitted_curves(), and resolve_curves_material().
|
static |
References usd_st_token().
Referenced by build_curves_geometry(), build_submesh_geometry(), and usd_st_token().
|
static |
References usd_st_token().
|
static |
Definition at line 53 of file volume_modifier.cc.
References blender::BKE_mesh_texspace_get(), blender::FluidModifierData::domain, blender::FluidDomainSettings::global_size, blender::FluidDomainSettings::scale, and volume_modifier_geometry_transform().
Referenced by build_volume_fields_from_modifier(), and volume_modifier_geometry_transform().
|
extern |
Referenced by build_emitted_material(), cache_image_file(), cache_or_get_image_file(), and CLG_LOGREF_DECLARE_GLOBAL().