Skip to content

Commit

Permalink
refactor: docker works
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor committed Feb 16, 2024
1 parent 6beb3d5 commit 1d1d87d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ ENV PATH="/root/.cargo/bin:${PATH}"

EXPOSE 8080

CMD xvfb-run -l -s "-screen 0 1024x768x24" "./new_media"
CMD xvfb-run -s "-screen 0 1024x768x24" "./new_media"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
## notes to self
- only "audio" feature MUST be real-time "lipsync"
- focus on primarily building realistic camera features not visual effects existing video editing programs (i.e Davinci) work on.


- run web: `pnpm --dir=demo dev`
- run server: `docker run -it -p 8080:8080 $(docker build -q .)`
6 changes: 3 additions & 3 deletions new_media/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use server::{receive_message, start_ws};
fn setup_gaussian_cloud(
mut commands: Commands,
asset_server: Res<AssetServer>,
_gaussian_assets: ResMut<Assets<GaussianCloud>>,
mut gaussian_assets: ResMut<Assets<GaussianCloud>>,
mut scene_controller: ResMut<bevy_headless::SceneInfo>,
mut images: ResMut<Assets<Image>>,
export_sources: ResMut<Assets<ImageExportSource>>,
Expand All @@ -32,9 +32,9 @@ fn setup_gaussian_cloud(
// TODO: figure out how to load remote files later
let splat_file = "splats/garden/point_cloud/iteration_7000/point_cloud.gcloud";
log::info!("loading {}", splat_file);
let cloud = asset_server.load(splat_file.to_string());
// let cloud = asset_server.load(splat_file.to_string());

// let cloud = gaussian_assets.add(GaussianCloud::test_model());
let cloud = gaussian_assets.add(GaussianCloud::test_model());

let render_target = bevy_headless::setup_render_target(
&mut commands,
Expand Down
2 changes: 1 addition & 1 deletion new_media/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn start_ws(listener: Res<WsListener>) {
.parse::<u16>()
.expect("PORT couldn't be set");

match listener.listen(([127, 0, 0, 1], port), None) {
match listener.listen(([0, 0, 0, 0], port), None) {
Ok(host) => {
log::info!("Websocket Server listening on {host:?}");
},
Expand Down

0 comments on commit 1d1d87d

Please sign in to comment.