Files
addr2line
adler
adler32
ahash
aho_corasick
angle
approx
backtrace
bitflags
blender
bytemuck
byteorder
case
cast_trait
cfg_if
chrono
format
naive
offset
sys
color
color_quant
const_fn
crc32fast
crossbeam
crossbeam_channel
crossbeam_deque
crossbeam_epoch
crossbeam_queue
crossbeam_skiplist
crossbeam_utils
darling
darling_core
ast
codegen
error
options
usage
util
darling_macro
dds
deflate
densevec
derive_builder
derive_builder_core
dot
downcast_rs
dual_quat
either
erased_serde
failure
failure_derive
fixedbitset
float_cmp
fnv
freeimage
freeimage_sys
freetype
freetype_gl_sys
freetype_sys
freetypegl
futures
futures_channel
futures_core
futures_executor
futures_io
futures_macro
futures_sink
futures_task
futures_util
async_await
future
future
try_future
io
allow_std.rsbuf_reader.rsbuf_writer.rschain.rsclose.rscopy.rscopy_buf.rscursor.rsempty.rsfill_buf.rsflush.rsinto_sink.rslines.rsmod.rsread.rsread_exact.rsread_line.rsread_to_end.rsread_to_string.rsread_until.rsread_vectored.rsrepeat.rsseek.rssink.rssplit.rstake.rswindow.rswrite.rswrite_all.rswrite_vectored.rs
lock
sink
stream
futures_unordered
stream
buffer_unordered.rsbuffered.rscatch_unwind.rschain.rschunks.rscollect.rsconcat.rscycle.rsenumerate.rsfilter.rsfilter_map.rsflatten.rsfold.rsfor_each.rsfor_each_concurrent.rsforward.rsfuse.rsinto_future.rsmap.rsmod.rsnext.rspeek.rsready_chunks.rsscan.rsselect_next_some.rsskip.rsskip_while.rssplit.rstake.rstake_until.rstake_while.rsthen.rsunzip.rszip.rs
try_stream
task
fxhash
generational_arena
generic_array
getrandom
gif
gimli
read
glfw
glfw_sys
glin
buffer
fbo
features
glin_derive
glsl
half
harfbuzz
harfbuzz_ft_sys
harfbuzz_sys
hashbrown
human_sort
ident_case
image
codecs
bmp
ico
jpeg
pnm
tga
webp
imageops
io
math
utils
indexmap
instant
itertools
adaptors
combinations.rscombinations_with_replacement.rsconcat_impl.rscons_tuples_impl.rsdiff.rseither_or_both.rsexactly_one_err.rsformat.rsfree.rsgroup_map.rsgroupbylazy.rsimpl_macros.rsintersperse.rskmerge_impl.rslazy_buffer.rslib.rsmerge_join.rsminmax.rsmultipeek_impl.rspad_tail.rspeeking_take_while.rspermutations.rsprocess_results_impl.rsput_back_n_impl.rsrciter_impl.rsrepeatn.rssize_hint.rssources.rstee.rstuple_impl.rsunique_impl.rswith_position.rszip_eq_impl.rszip_longest.rsziptuple.rs
itoa
jpeg_decoder
lazy_static
libc
unix
libm
math
acos.rsacosf.rsacosh.rsacoshf.rsasin.rsasinf.rsasinh.rsasinhf.rsatan.rsatan2.rsatan2f.rsatanf.rsatanh.rsatanhf.rscbrt.rscbrtf.rsceil.rsceilf.rscopysign.rscopysignf.rscos.rscosf.rscosh.rscoshf.rserf.rserff.rsexp.rsexp10.rsexp10f.rsexp2.rsexp2f.rsexpf.rsexpm1.rsexpm1f.rsexpo2.rsfabs.rsfabsf.rsfdim.rsfdimf.rsfenv.rsfloor.rsfloorf.rsfma.rsfmaf.rsfmax.rsfmaxf.rsfmin.rsfminf.rsfmod.rsfmodf.rsfrexp.rsfrexpf.rshypot.rshypotf.rsilogb.rsilogbf.rsj0.rsj0f.rsj1.rsj1f.rsjn.rsjnf.rsk_cos.rsk_cosf.rsk_expo2.rsk_expo2f.rsk_sin.rsk_sinf.rsk_tan.rsk_tanf.rsldexp.rsldexpf.rslgamma.rslgamma_r.rslgammaf.rslgammaf_r.rslog.rslog10.rslog10f.rslog1p.rslog1pf.rslog2.rslog2f.rslogf.rsmod.rsmodf.rsmodff.rsnextafter.rsnextafterf.rspow.rspowf.rsrem_pio2.rsrem_pio2_large.rsrem_pio2f.rsremainder.rsremainderf.rsremquo.rsremquof.rsround.rsroundf.rsscalbn.rsscalbnf.rssin.rssincos.rssincosf.rssinf.rssinh.rssinhf.rssqrt.rssqrtf.rstan.rstanf.rstanh.rstanhf.rstgamma.rstgammaf.rstrunc.rstruncf.rs
lock_api
log
lut_parser
matrixmultiply
memchr
memoffset
meshopt
gen
miniz_oxide
monotonic_clock
mopa
mutiny_derive
na
nalgebra
base
alias.rsalias_slice.rsallocator.rsarray_storage.rsblas.rscg.rscomponentwise.rsconstraint.rsconstruction.rsconstruction_slice.rsconversion.rscoordinates.rsdefault_allocator.rsdimension.rsedition.rshelper.rsindexing.rsinterpolation.rsiter.rsmatrix.rsmatrix_simba.rsmatrix_slice.rsmin_max.rsmod.rsnorm.rsops.rsproperties.rsscalar.rsstatistics.rsstorage.rsswizzle.rsunit.rsvec_storage.rs
geometry
abstract_rotation.rsdual_quaternion.rsdual_quaternion_construction.rsdual_quaternion_ops.rsisometry.rsisometry_alias.rsisometry_construction.rsisometry_conversion.rsisometry_interpolation.rsisometry_ops.rsisometry_simba.rsmod.rsop_macros.rsorthographic.rsperspective.rspoint.rspoint_alias.rspoint_construction.rspoint_conversion.rspoint_coordinates.rspoint_ops.rspoint_simba.rsquaternion.rsquaternion_construction.rsquaternion_conversion.rsquaternion_coordinates.rsquaternion_ops.rsquaternion_simba.rsreflection.rsrotation.rsrotation_alias.rsrotation_construction.rsrotation_conversion.rsrotation_interpolation.rsrotation_ops.rsrotation_simba.rsrotation_specialization.rssimilarity.rssimilarity_alias.rssimilarity_construction.rssimilarity_conversion.rssimilarity_ops.rssimilarity_simba.rsswizzle.rstransform.rstransform_alias.rstransform_construction.rstransform_conversion.rstransform_ops.rstransform_simba.rstranslation.rstranslation_alias.rstranslation_construction.rstranslation_conversion.rstranslation_coordinates.rstranslation_ops.rstranslation_simba.rsunit_complex.rsunit_complex_construction.rsunit_complex_conversion.rsunit_complex_ops.rsunit_complex_simba.rs
linalg
ncollide3d
bounding_volume
aabb.rsaabb_ball.rsaabb_compound.rsaabb_convex.rsaabb_cuboid.rsaabb_heightfield.rsaabb_plane.rsaabb_polyline.rsaabb_shape.rsaabb_support_map.rsaabb_triangle.rsaabb_trimesh.rsaabb_utils.rsbounding_sphere.rsbounding_sphere_ball.rsbounding_sphere_capsule.rsbounding_sphere_compound.rsbounding_sphere_cone.rsbounding_sphere_convex.rsbounding_sphere_cuboid.rsbounding_sphere_cylinder.rsbounding_sphere_heightfield.rsbounding_sphere_plane.rsbounding_sphere_polyline.rsbounding_sphere_segment.rsbounding_sphere_shape.rsbounding_sphere_triangle.rsbounding_sphere_trimesh.rsbounding_sphere_utils.rsbounding_volume.rscircular_cone.rsmod.rsspatialized_normal_cone.rs
interpolation
partitioning
pipeline
broad_phase
glue
narrow_phase
contact_generator
ball_ball_manifold_generator.rsball_convex_polyhedron_manifold_generator.rscapsule_capsule_manifold_generator.rscapsule_shape_manifold_generator.rscomposite_shape_composite_shape_manifold_generator.rscomposite_shape_shape_manifold_generator.rscontact_manifold_generator.rsconvex_polyhedron_convex_polyhedron_manifold_generator.rsdefault_contact_dispatcher.rsheightfield_shape_manifold_generator.rsmod.rsplane_ball_manifold_generator.rsplane_convex_polyhedron_manifold_generator.rstrimesh_trimesh_manifold_generator.rs
proximity_detector
object
procedural
query
algorithms
closest_points
contact
distance
nonlinear_time_of_impact
point
proximity
ray
time_of_impact
visitors
shape
transformation
to_trimesh
utils
nom
bits
branch
bytes
character
combinator
multi
number
sequence
num_complex
num_cpus
num_integer
num_iter
num_rational
num_traits
numext_constructor
fixed_hash
core
fixed_uint
numext_fixed_uint
numext_fixed_uint_core
numext_fixed_uint_hack
object
read
coff
elf
macho
pe
once_cell
parking_lot
parking_lot_core
pathfinding
directed
undirected
pennereq
petgraph
algo
graph_impl
visit
pin_project_lite
pin_utils
png
polygon2
clipping
ppv_lite86
proc_macro2
proc_macro_crate
proc_macro_hack
proc_macro_nested
quote
rand
distributions
weighted
rngs
seq
rand_chacha
rand_core
rand_distr
raw_window_handle
rawpointer
rayon
collections
compile_fail
iter
chain.rschunks.rscloned.rscopied.rsempty.rsenumerate.rsextend.rsfilter.rsfilter_map.rsfind.rsflat_map.rsflat_map_iter.rsflatten.rsflatten_iter.rsfold.rsfor_each.rsfrom_par_iter.rsinspect.rsinterleave.rsinterleave_shortest.rsintersperse.rslen.rsmap.rsmap_with.rsmod.rsmultizip.rsnoop.rsonce.rspanic_fuse.rspar_bridge.rspositions.rsproduct.rsreduce.rsrepeat.rsrev.rsskip.rssplitter.rsstep_by.rssum.rstake.rstry_fold.rstry_reduce.rstry_reduce_with.rsunzip.rsupdate.rswhile_some.rszip.rszip_eq.rs
slice
rayon_core
compile_fail
join
scope
sleep
spawn
thread_pool
rect_packer
regex
regex_syntax
ast
hir
unicode_tables
retain_mut
rin
rin_app
rin_blender
rin_core
rin_gl
rin_graphics
rin_gui
rin_material
rin_math
rin_postpo
rin_scene
animation
events
light
physics
postprocessing
renderer
material
time
transformation
rin_util
rin_window
rinblender
rinecs
operators
storage
systems
rinecs_derive
rinecs_derive_utils
ringui_derive
rustc_demangle
rusty_pool
ryu
scopeguard
seitan
dedup.rsdedup_or.rsdelay.rsfilter.rsfilter_map.rsflat_map.rsfold.rsindexed_property.rsinspect.rsiter.rslib.rsmap.rson_value.rsonce.rsparameter.rspartition.rspartition_map.rspriority.rspriv_traits.rsproperty.rsproperty_last_value.rsranged_property.rsscan.rssender.rssender_from_receiver.rssender_rc.rsskip.rsskip_while.rsstream.rsstream_rc.rsstream_vec.rstake.rstake_while.rstests.rstraits.rsutils.rs
seitan_derive
semver
semver_parser
serde
de
private
ser
serde_derive
serde_json
shaderdata_derive
simba
scalar
simd
slab
slice_of_array
slotmap
smallvec
std140_data
streaming_iterator
strsim
syn
attr.rsawait.rsbigint.rsbuffer.rscustom_keyword.rscustom_punctuation.rsdata.rsderive.rsdiscouraged.rserror.rsexport.rsexpr.rsext.rsfile.rsgenerics.rsgroup.rsident.rsitem.rslib.rslifetime.rslit.rslookahead.rsmac.rsmacros.rsop.rsparse.rsparse_macro_input.rsparse_quote.rspat.rspath.rsprint.rspunctuated.rsreserved.rssealed.rsspan.rsspanned.rsstmt.rsthread.rstoken.rstt.rsty.rsverbatim.rswhitespace.rs
synstructure
thiserror
thiserror_impl
thread_local
tiff
time
toml
typenum
unchecked_unwrap
unicode_xid
vec2
vec3
weezl
x11
zlib_sys
>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
use rinecs::{Component, NToOneComponent, OneToNComponent, HierarchicalComponent, Entity}; use rin_math::{Mat4, Mat3, Pnt3, Vec3, UnitQuat, Vec4, DualQuat}; use hashbrown::HashMap; use std::fmt::{self, Display, Debug}; use serde_derive::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy)] pub struct SkinWeights { pub weights: Vec4<f32>, pub bone_indices: Vec4<u32>, } #[derive(Clone, Component)] #[debug_as_string] pub struct GeometryWeights{ pub dvert: Vec<Option<rinblender::mesh::MDeformVert>>, pub dweight: Vec<rinblender::mesh::MDeformWeight>, pub final_dverts: Vec<Option<rinblender::mesh::MDeformVert>>, pub final_weights: Vec<rinblender::mesh::MDeformWeight>, pub gpu_weights: Vec<SkinWeights>, pub deformflags: rinblender::ArmatureDeformFlag, } impl Debug for GeometryWeights{ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result{ fmt.write_str("GeometryWeights") } } #[derive(NToOneComponent,Clone,Copy,Debug,Eq,PartialEq, Serialize, Deserialize)] pub struct SkeletonRef(pub rinecs::Entity); #[derive(Clone,Debug,Component,Eq,PartialEq, Serialize, Deserialize)] pub struct SkeletonName(pub rinblender::ObjectId); impl Display for SkeletonName{ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result{ Display::fmt(&self.0, fmt) } } #[derive(Component, Debug, Serialize, Deserialize)] pub struct Skeleton { pub changed: bool, } impl Skeleton { pub fn new() -> Skeleton { Skeleton { changed: true, } } } #[derive(Clone, Debug, OneToNComponent, Serialize, Deserialize)] pub struct BoneBase(pub rinecs::Entity); #[derive(HierarchicalComponent,Clone,Eq,PartialEq,Debug, Serialize, Deserialize)] pub struct BoneName(pub String); impl Display for BoneName{ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result{ Display::fmt(&self.0, fmt) } } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct BoneRef{ pub entity: rinecs::Entity, pub name: String, pub position: Pnt3, pub delta: Vec3, pub orientation: UnitQuat, pub orientation_delta: UnitQuat, pub prev_blend_pos: HashMap<String, Option<(f32, Pnt3)>>, pub prev_blend_orientation: HashMap<String, Option<(f32, UnitQuat)>>, pub changed: bool, } #[derive(Clone, Component, Debug, Serialize, Deserialize)] pub struct RootMotionBone(pub BoneRef); #[derive(Clone, Component, Debug, Serialize, Deserialize)] #[storage(DenseVec)] pub struct FootBones{ pub left: Vec<BoneRef>, pub right: Vec<BoneRef>, } pub trait DefaultWeight{ fn default_weight(&self) -> f32; fn set_default_weight(&mut self, dw: f32); } #[derive(Clone,Debug,Component, Serialize, Deserialize)] pub struct ArmatureCache{ // TODO: Can we remove this hashmap, is only used by the blender bundle on load to setup the // bone indices and matrices caches pub index: HashMap<String, usize>, pub skinning_bones_index: Vec<Entity>, pub changed: bool, pub postmat: Option<Mat4>, pub postmat3: Option<Mat3>, pub premat: Option<Mat4>, pub premat3: Option<Mat3>, } #[derive(Clone,Copy,Debug,OneToNComponent, Serialize, Deserialize)] pub struct ArmatureMatrices{ pub bone_mat: Mat4, } #[derive(Clone,Copy,Debug,OneToNComponent, Serialize, Deserialize)] pub struct ArmatureDualQuats{ pub dual_quat: DualQuat, pub scale: Mat4, } #[derive(Clone,Debug,Component)] #[debug_as_string] pub struct BoneWeightsAndIndicesBuffer(pub glin::SharedBuffer<SkinWeights>); #[derive(Clone,Debug,Component)] #[debug_as_string] pub struct ArmatureMatricesBuffer(pub glin::SharedBuffer<ArmatureMatrices>); #[derive(Clone,Debug,Component)] #[debug_as_string] pub struct ArmatureDualQuatsBuffer(pub glin::SharedBuffer<ArmatureDualQuats>);