Skip to content

Commit

Permalink
Add feature to evaluate FlatScene at multiple frame values.
Browse files Browse the repository at this point in the history
Reduced the number of function parameters by grouping attributes
together into camera and transform.

Filter out the bundles and cameras to correctly calculate the
world matrices needed.

Support bundle reprojection for multiple cameras in one scene
evaluation.

Issue #114.
  • Loading branch information
david-cattermole committed Dec 28, 2021
1 parent 92917fa commit 50b7340
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 226 deletions.
22 changes: 22 additions & 0 deletions src/mmscenegraph/rust/src/attr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,28 @@ pub enum AttrId {
None,
}

#[derive(Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct AttrTransformIds {
pub tx: AttrId,
pub ty: AttrId,
pub tz: AttrId,
//
pub rx: AttrId,
pub ry: AttrId,
pub rz: AttrId,
//
pub sx: AttrId,
pub sy: AttrId,
pub sz: AttrId,
}

#[derive(Debug, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct AttrCameraIds {
pub sensor_width: AttrId,
pub sensor_height: AttrId,
pub focal_length: AttrId,
}

#[derive(Debug, Clone, Default)]
pub struct AttrDataBlock {
pub static_attrs: Vec<StaticAttr>,
Expand Down
Loading

0 comments on commit 50b7340

Please sign in to comment.