mosure / bevy_gaussian_splatting

bevy gaussian splatting render pipeline plugin
https://mosure.github.io/bevy_gaussian_splatting?gaussian_count=1000
MIT License
140 stars 9 forks source link

add proper GaussianSplattingViewer argument parsing #26

Closed github-actions[bot] closed 9 months ago

github-actions[bot] commented 11 months ago

https://github.com/mosure/bevy_gaussian_splatting/blob/cd9fd074b95333dd57e3812b53376af378a0399a/viewer/viewer.rs#L61


        ..default()
    };

    // TODO: add proper GaussianSplattingViewer argument parsing
    let file_arg = std::env::args().nth(1);
    if let Some(n) = file_arg.clone().and_then(|s| s.parse::<usize>().ok()) {
        println!("generating {} gaussians", n);
        cloud = gaussian_assets.add(random_gaussians(n));