Rust-Ninja-Sabi / rust-bevy-cheeseball

3D Game with Rust and Bevy. Using rapier
MIT License
8 stars 1 forks source link

how best to use this? #1

Closed davehorner closed 1 year ago

davehorner commented 1 year ago

The images look very cool and I'd like to run the examples. I see all the main.rs files and the lock file but no toml file. I tried using cargo script main.rs but that doesn't get the dependencies right. I can construct a toml from the lock file with some effort. Is there a better way to use step1?

Rust-Ninja-Sabi commented 1 year ago

toml.file is available now.

Best regards Sabisan

davehorner commented 1 year ago

Thanks so much Sabisan. Closer. Moved one of the steps (7) to src\main.rs and cargo run.

error[E0433]: failed to resolve: could not find `AtmosphereMat` in `bevy_atmosphere`
  --> src\main.rs:74:43
   |
74 |         .insert_resource(bevy_atmosphere::AtmosphereMat::default())
   |                                           ^^^^^^^^^^^^^ could not find `AtmosphereMat` in `bevy_atmosphere`

error[E0422]: cannot find struct, variant or union type `AtmospherePlugin` in crate `bevy_atmosphere`
  --> src\main.rs:79:38
   |
79 |         .add_plugin(bevy_atmosphere::AtmospherePlugin {
   |                                      ^^^^^^^^^^^^^^^^ not found in `bevy_atmosphere`
   |
help: consider importing one of these items
   |
1  | use bevy_atmosphere::prelude::AtmospherePlugin;
   |
1  | use crate::prelude::AtmospherePlugin;
   |
help: if you import `AtmospherePlugin`, refer to it directly
   |
79 -         .add_plugin(bevy_atmosphere::AtmospherePlugin {
79 +         .add_plugin(AtmospherePlugin {
   |

error[E0422]: cannot find struct, variant or union type `PerspectiveCameraBundle` in this scope
   --> src\main.rs:107:27
    |
107 |     commands.spawn_bundle(PerspectiveCameraBundle{
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `Rect` in this scope
   --> src\main.rs:127:23
    |
127 |             position: Rect {
    |                       ^^^^
    |
   ::: C:\Users\dhorner\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_rapier3d-0.16.1\src/lib.rs:47:5
    |
47  |     pub type Vect = Vec3;
    |     ------------- similarly named type alias `Vect` defined here
    |
help: a type alias with a similar name exists
    |
127 |             position: Vect {
    |                       ~~~~
help: consider importing this struct
    |
1   | use bevy::sprite::Rect;
    |

error[E0422]: cannot find struct, variant or union type `Rect` in this scope
   --> src\main.rs:150:23
    |
150 |             position: Rect {
    |                       ^^^^
    |
   ::: C:\Users\dhorner\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_rapier3d-0.16.1\src/lib.rs:47:5
    |
47  |     pub type Vect = Vec3;
    |     ------------- similarly named type alias `Vect` defined here
    |
help: a type alias with a similar name exists
    |
150 |             position: Vect {
    |                       ~~~~
help: consider importing this struct
    |
1   | use bevy::sprite::Rect;
    |

warning: unused import: `bevy::render::texture::ImageFormat::Tiff`
 --> src\main.rs:2:5
  |
2 | use bevy::render::texture::ImageFormat::Tiff;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `bevy_atmosphere::*`
 --> src\main.rs:3:5
  |
3 | use bevy_atmosphere::*;
  |     ^^^^^^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared type `UiCameraBundle`
   --> src\main.rs:113:27
    |
113 |     commands.spawn_bundle(UiCameraBundle::default());
    |                           ^^^^^^^^^^^^^^
    |                           |
    |                           use of undeclared type `UiCameraBundle`
    |                           help: a struct with a similar name exists: `Camera2dBundle`

error[E0599]: no function or associated item named `with_section` found for struct `bevy::prelude::Text` in the current scope
   --> src\main.rs:116:21
    |
116 |         text: Text::with_section(
    |                     ^^^^^^^^^^^^
    |                     |
    |                     function or associated item not found in `Text`
    |                     help: there is an associated function with a similar name: `from_section`

error[E0599]: no function or associated item named `with_section` found for struct `bevy::prelude::Text` in the current scope
   --> src\main.rs:139:21
    |
139 |         text: Text::with_section(
    |                     ^^^^^^^^^^^^
    |                     |
    |                     function or associated item not found in `Text`
    |                     help: there is an associated function with a similar name: `from_section`

error[E0599]: no method named `spawn_scene` found for mutable reference `&mut ChildBuilder<'_, '_, '_>` in the current scope
   --> src\main.rs:320:20
    |
320 |             parent.spawn_scene(asset_server.load("models/cheese.glb#Scene0"));
    |                    ^^^^^^^^^^^ method not found in `&mut ChildBuilder<'_, '_, '_>`

Some errors have detailed explanations: E0422, E0433, E0599.
For more information about an error, try `rustc --explain E0422`.
warning: `rust-bevy-cheeseball` (bin "rust-bevy-cheeseball") generated 2 warnings
error: could not compile `rust-bevy-cheeseball` due to 9 previous errors; 2 warnings emitted

I appreciate you taking the time to attach the toml! I will keep playing.

Python-Ninja-Hebi commented 1 year ago

You could try:

compile all again

davehorner commented 1 year ago

Thanks again for the response!
I deleted the lock and the target folder. I'm still seeing the same errors.

c:\working\rust-bevy-cheeseball>cargo run
    Updating crates.io index
   Compiling proc-macro2 v1.0.56
   Compiling unicode-ident v1.0.8
   Compiling quote v1.0.26
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.160
   Compiling serde v1.0.160
   Compiling syn v1.0.109
   Compiling once_cell v1.17.1
   Compiling getrandom v0.2.9
   Compiling winapi v0.3.9
   Compiling thiserror v1.0.40
   Compiling syn v2.0.15
   Compiling version_check v0.9.4
   Compiling ahash v0.7.6
   Compiling scopeguard v1.1.0
   Compiling windows_x86_64_msvc v0.42.2
   Compiling lock_api v0.4.9
   Compiling memchr v2.5.0
   Compiling crossbeam-utils v0.8.15
   Compiling windows-targets v0.42.2
   Compiling bytemuck_derive v1.4.1
   Compiling bytemuck v1.13.1
   Compiling thiserror-impl v1.0.40
   Compiling parking_lot_core v0.9.7
   Compiling fixedbitset v0.4.2
   Compiling windows-sys v0.45.0
   Compiling pin-project-lite v0.2.9
   Compiling instant v0.1.12
   Compiling tracing-core v0.1.30
   Compiling slab v0.4.8
   Compiling futures-core v0.3.28
   Compiling indexmap v1.9.3
   Compiling tracing v0.1.38
   Compiling event-listener v2.5.3
   Compiling uuid v1.3.1
   Compiling smallvec v1.10.0
   Compiling hashbrown v0.12.3
   Compiling concurrent-queue v2.2.0
   Compiling parking_lot v0.12.1
   Compiling erased-serde v0.3.25
   Compiling downcast-rs v1.2.0
   Compiling parking v2.1.0
   Compiling fastrand v1.9.0
   Compiling futures-io v0.3.28
   Compiling waker-fn v1.1.0
   Compiling futures-lite v1.13.0
   Compiling async-lock v2.7.0
   Compiling async-task v4.4.0
   Compiling bitflags v1.3.2
   Compiling async-channel v1.8.0
   Compiling log v0.4.17
   Compiling async-executor v1.5.1
   Compiling byteorder v1.4.3
   Compiling thread_local v1.1.7
   Compiling libm v0.2.6
   Compiling num-traits v0.2.15
   Compiling rustc-hash v1.1.0
   Compiling lazy_static v1.4.0
   Compiling fxhash v0.2.1
   Compiling petgraph v0.6.3
   Compiling winapi-util v0.1.5
   Compiling libc v0.2.142
   Compiling glam v0.21.3
   Compiling regex-syntax v0.6.29
   Compiling aho-corasick v1.0.1
   Compiling toml v0.5.11
   Compiling regex-automata v0.1.10
   Compiling bevy_macro_utils v0.8.1
   Compiling regex-syntax v0.7.1
   Compiling overload v0.1.1
   Compiling nu-ansi-term v0.46.0
   Compiling matchers v0.1.0
   Compiling tracing-log v0.1.3
   Compiling sharded-slab v0.1.4
   Compiling libloading v0.7.4
   Compiling crossbeam-channel v0.5.8
   Compiling bit-vec v0.6.3
   Compiling adler v1.0.2
   Compiling regex v1.8.1
   Compiling bevy_reflect_derive v0.8.1
   Compiling tracing-subscriber v0.3.17
   Compiling termcolor v1.2.0
   Compiling bevy_utils v0.8.1
   Compiling glam v0.23.0
   Compiling winnow v0.4.1
   Compiling num_cpus v1.15.0
   Compiling unicode-width v0.1.10
   Compiling bevy_ptr v0.8.1
   Compiling arrayvec v0.7.2
   Compiling toml_datetime v0.6.1
   Compiling unicode-xid v0.2.4
   Compiling toml_edit v0.19.8
   Compiling pp-rs v0.2.1
   Compiling bevy_reflect v0.8.1
   Compiling codespan-reporting v0.11.1
   Compiling bevy_tasks v0.8.1
   Compiling miniz_oxide v0.6.2
   Compiling bit-set v0.5.3
   Compiling bevy_ecs_macros v0.8.1
   Compiling spirv v0.2.0+1.5.4
   Compiling ash v0.37.2+1.3.238
   Compiling hexf-parse v0.2.1
   Compiling bevy_ecs v0.8.1
   Compiling bevy_macro_utils v0.10.1
   Compiling bevy_derive v0.8.1
   Compiling gpu-alloc-types v0.2.0
   Compiling gpu-descriptor-types v0.1.1
   Compiling num-integer v0.1.45
   Compiling gpu-descriptor v0.2.3
   Compiling gpu-alloc v0.5.3
   Compiling num-rational v0.4.1
   Compiling renderdoc-sys v0.7.1
   Compiling profiling v1.0.8
   Compiling anyhow v1.0.70
   Compiling range-alloc v0.1.3
   Compiling crc32fast v1.3.2
   Compiling simd-adler32 v0.3.5
   Compiling bevy_app v0.8.1
   Compiling bevy_utils_proc_macros v0.10.1
   Compiling flate2 v1.0.25
   Compiling bevy_utils v0.10.1
   Compiling bevy_reflect_derive v0.10.1
   Compiling fdeflate v0.3.0
   Compiling miniz_oxide v0.7.1
   Compiling bevy_math v0.10.1
   Compiling bevy_ptr v0.10.1
   Compiling windows_x86_64_msvc v0.48.0
   Compiling const_panic v0.2.7
   Compiling bevy_reflect v0.10.1
   Compiling png v0.17.8
   Compiling bevy_ecs_macros v0.10.1
   Compiling bevy_tasks v0.10.1
   Compiling color_quant v1.1.0
   Compiling image v0.24.6
   Compiling bevy_derive v0.10.1
   Compiling bevy_ecs v0.10.1
   Compiling bevy_math v0.8.1
   Compiling cty v0.2.2
   Compiling raw-window-handle v0.4.3
   Compiling windows-targets v0.48.0
   Compiling windows-sys v0.48.0
   Compiling same-file v1.0.6
   Compiling walkdir v2.3.3
   Compiling filetime v0.2.21
   Compiling bevy_log v0.8.1
   Compiling bevy_time v0.8.1
   Compiling cfg_aliases v0.1.1
   Compiling wgpu-core v0.13.2
   Compiling bevy_diagnostic v0.8.1
   Compiling notify v5.0.0-pre.15
   Compiling bevy_app v0.10.1
   Compiling bevy_input v0.8.1
   Compiling naga v0.9.0
   Compiling d3d12 v0.5.0
   Compiling wgpu-types v0.13.2
   Compiling encase_derive_impl v0.3.0
   Compiling radsort v0.1.0
   Compiling inplace_it v0.3.5
   Compiling cc v1.0.79
   Compiling bevy_asset v0.8.1
   Compiling bevy_hierarchy v0.8.1
   Compiling backtrace v0.3.67
   Compiling com-rs v0.2.1
   Compiling gimli v0.27.2
   Compiling copyless v0.1.5
   Compiling bevy_transform v0.8.1
   Compiling encase_derive v0.3.0
   Compiling bevy_window v0.8.1
   Compiling bevy_core v0.8.1
   Compiling wgpu-hal v0.13.2
   Compiling addr2line v0.19.0
   Compiling approx v0.5.1
   Compiling object v0.30.3
   Compiling rustc-demangle v0.1.23
   Compiling ntapi v0.4.1
   Compiling khronos-egl v4.1.0
   Compiling encase v0.3.0
   Compiling bevy_encase_derive v0.8.1
   Compiling wgpu v0.13.1
   Compiling bevy_log v0.10.1
   Compiling bevy_core v0.10.1
   Compiling bevy_render_macros v0.8.1
   Compiling bevy_mikktspace v0.8.1
   Compiling hexasphere v7.2.1
   Compiling windows v0.44.0
   Compiling widestring v0.5.1
   Compiling typenum v1.16.0
   Compiling raw-window-handle v0.5.2
   Compiling base64 v0.13.1
   Compiling hex v0.4.3
   Compiling parking_lot_core v0.8.6
   Compiling bevy_render v0.8.1
   Compiling hassle-rs v0.9.0
   Compiling gpu-allocator v0.22.0
   Compiling naga v0.11.0
   Compiling d3d12 v0.6.0
   Compiling wgpu-types v0.15.2
   Compiling encase_derive_impl v0.5.0
   Compiling glow v0.12.1
   Compiling sysinfo v0.28.4
   Compiling wgpu-hal v0.15.4
   Compiling bevy_time v0.10.1
   Compiling bevy_diagnostic v0.10.1
   Compiling wgpu-core v0.15.1
   Compiling parking_lot v0.11.2
   Compiling bevy_core_pipeline v0.8.1
   Compiling encase_derive v0.5.0
   Compiling bevy_hierarchy v0.10.1
   Compiling bevy_input v0.10.1
   Compiling static_assertions v1.1.0
   Compiling serde_json v1.0.96
   Compiling ttf-parser v0.19.0
   Compiling bevy_window v0.10.1
   Compiling wgpu v0.15.1
   Compiling owned_ttf_parser v0.19.0
   Compiling bevy_transform v0.10.1
   Compiling encase v0.5.0
   Compiling bevy_asset v0.10.1
   Compiling bevy_encase_derive v0.10.1
   Compiling bevy_render_macros v0.10.1
   Compiling bevy_mikktspace v0.10.1
   Compiling hexasphere v8.1.0
   Compiling euclid v0.22.9
   Compiling memoffset v0.8.0
   Compiling svg_fmt v0.4.1
   Compiling inflections v1.1.1
   Compiling paste v1.0.12
   Compiling tinyvec_macros v0.1.1
   Compiling cpal v0.13.5
   Compiling ab_glyph_rasterizer v0.1.8
   Compiling vec_map v0.8.2
   Compiling ryu v1.0.13
   Compiling itoa v1.0.6
   Compiling ab_glyph v0.2.21
   Compiling tinyvec v1.6.0
   Compiling gltf-derive v1.1.0
   Compiling guillotiere v0.6.2
   Compiling bevy_render v0.10.1
   Compiling rusty-xinput v1.2.0
   Compiling ogg v0.8.0
   Compiling safe_arch v0.6.0
   Compiling crossbeam-epoch v0.9.14
   Compiling rectangle-pack v0.4.2
   Compiling xi-unicode v0.3.0
   Compiling winit v0.26.1
   Compiling glyph_brush_layout v0.2.3
   Compiling bevy_sprite v0.8.1
   Compiling wide v0.7.8
   Compiling lewton v0.10.2
   Compiling gilrs-core v0.4.1
   Compiling gltf-json v1.1.0
   Compiling ron v0.7.1
   Compiling num-complex v0.4.3
   Compiling hash32 v0.2.1
   Compiling hash32-derive v0.1.1
   Compiling fnv v1.0.7
   Compiling urlencoding v2.1.2
   Compiling crossbeam-queue v0.3.8
   Compiling rawpointer v0.2.1
   Compiling matrixmultiply v0.3.3
   Compiling taffy v0.1.0
   Compiling gltf v1.1.0
   Compiling gilrs v0.9.0
   Compiling simba v0.8.1
   Compiling bevy_scene v0.8.1
   Compiling bevy_text v0.8.1
   Compiling rodio v0.15.0
   Compiling bevy_core_pipeline v0.10.1
   Compiling bevy_pbr v0.8.1
   Compiling ron v0.8.0
   Compiling bevy_animation v0.8.1
   Compiling nalgebra-macros v0.2.0
   Compiling accesskit v0.10.1
   Compiling optional v0.5.0
   Compiling percent-encoding v2.2.0
   Compiling robust v0.2.3
   Compiling spade v2.2.0
   Compiling nalgebra v0.32.2
   Compiling bevy_a11y v0.10.1
   Compiling bevy_scene v0.10.1
   Compiling bevy_pbr v0.10.1
   Compiling bevy_winit v0.8.1
   Compiling crossbeam-deque v0.8.3
   Compiling bevy_audio v0.8.1
   Compiling bevy_ui v0.8.1
   Compiling bevy_gilrs v0.8.1
   Compiling num-derive v0.3.3
   Compiling either v1.8.1
   Compiling parry3d v0.13.4
   Compiling bevy_gltf v0.8.1
   Compiling bevy_internal v0.8.1
   Compiling crossbeam v0.8.2
   Compiling bevy_internal v0.10.1
   Compiling rand_core v0.6.4
   Compiling ppv-lite86 v0.2.17
   Compiling rand_chacha v0.3.1
   Compiling bevy v0.10.1
   Compiling rapier3d v0.17.2
   Compiling bevy v0.8.1
   Compiling bevy_atmosphere v0.4.1
   Compiling rand v0.8.5
   Compiling bevy_rapier3d v0.21.0
   Compiling rust-bevy-cheeseball v0.1.0 (C:\working\rust-bevy-cheeseball)
error[E0433]: failed to resolve: could not find `AtmosphereMat` in `bevy_atmosphere`
  --> src\main.rs:74:43
   |
74 |         .insert_resource(bevy_atmosphere::AtmosphereMat::default())
   |                                           ^^^^^^^^^^^^^ could not find `AtmosphereMat` in `bevy_atmosphere`

error[E0422]: cannot find struct, variant or union type `AtmospherePlugin` in crate `bevy_atmosphere`
  --> src\main.rs:79:38
   |
79 |         .add_plugin(bevy_atmosphere::AtmospherePlugin {
   |                                      ^^^^^^^^^^^^^^^^ not found in `bevy_atmosphere`
   |
help: consider importing one of these items
   |
1  | use bevy_atmosphere::prelude::AtmospherePlugin;
   |
1  | use crate::prelude::AtmospherePlugin;
   |
help: if you import `AtmospherePlugin`, refer to it directly
   |
79 -         .add_plugin(bevy_atmosphere::AtmospherePlugin {
79 +         .add_plugin(AtmospherePlugin {
   |

error[E0422]: cannot find struct, variant or union type `PerspectiveCameraBundle` in this scope
   --> src\main.rs:107:27
    |
107 |     commands.spawn_bundle(PerspectiveCameraBundle{
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `Rect` in this scope
   --> src\main.rs:127:23
    |
127 |             position: Rect {
    |                       ^^^^
    |
   ::: C:\Users\dhorner\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_rapier3d-0.21.0\src/lib.rs:47:5
    |
47  |     pub type Vect = Vec3;
    |     ------------- similarly named type alias `Vect` defined here
    |
help: a type alias with a similar name exists
    |
127 |             position: Vect {
    |                       ~~~~
help: consider importing this struct
    |
1   | use bevy::sprite::Rect;
    |

error[E0422]: cannot find struct, variant or union type `Rect` in this scope
   --> src\main.rs:150:23
    |
150 |             position: Rect {
    |                       ^^^^
    |
   ::: C:\Users\dhorner\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_rapier3d-0.21.0\src/lib.rs:47:5
    |
47  |     pub type Vect = Vec3;
    |     ------------- similarly named type alias `Vect` defined here
    |
help: a type alias with a similar name exists
    |
150 |             position: Vect {
    |                       ~~~~
help: consider importing this struct
    |
1   | use bevy::sprite::Rect;
    |

warning: unused import: `bevy::render::texture::ImageFormat::Tiff`
 --> src\main.rs:2:5
  |
2 | use bevy::render::texture::ImageFormat::Tiff;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `bevy_atmosphere::*`
 --> src\main.rs:3:5
  |
3 | use bevy_atmosphere::*;
  |     ^^^^^^^^^^^^^^^^^^

error[E0277]: the trait bound `bevy_rapier3d::dynamics::ExternalForce: bevy::prelude::Component` is not satisfied
   --> src\main.rs:362:23
    |
362 |     mut query_forces: Query<&mut ExternalForce>,
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bevy::prelude::Component` is not implemented for `bevy_rapier3d::dynamics::ExternalForce`
    |
    = help: the following other types implement trait `bevy::prelude::Component`:
              AlphaMode
              AnimationPlayer
              AtmosphereCamera
              AtmosphereSkyBox
              Ball
              Button
              CalculatedClip
              CalculatedSize
            and 81 others
    = note: required for `&mut bevy_rapier3d::dynamics::ExternalForce` to implement `WorldQuery`
note: required by a bound in `bevy::prelude::Query`
   --> C:\Users\dhorner\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.8.1\src\system\query.rs:252:37
    |
252 | pub struct Query<'world, 'state, Q: WorldQuery, F: WorldQuery = ()> {
    |                                     ^^^^^^^^^^ required by this bound in `Query`

error[E0433]: failed to resolve: use of undeclared type `UiCameraBundle`
   --> src\main.rs:113:27
    |
113 |     commands.spawn_bundle(UiCameraBundle::default());
    |                           ^^^^^^^^^^^^^^
    |                           |
    |                           use of undeclared type `UiCameraBundle`
    |                           help: a struct with a similar name exists: `Camera2dBundle`

Some errors have detailed explanations: E0277, E0422, E0433.
For more information about an error, try `rustc --explain E0277`.
warning: `rust-bevy-cheeseball` (bin "rust-bevy-cheeseball") generated 2 warnings
error: could not compile `rust-bevy-cheeseball` due to 7 previous errors; 2 warnings emitted
Rust-Ninja-Sabi commented 1 year ago

I updated to bevy 0.10. You could use source/main.rs

davehorner commented 1 year ago

Thanks you. I was able to get the software built and I'm now on to runtime errors. When I run it, it pops a white window and runs for a short while then exits with a STATUS_ACCESS_VIOLATION.

(base) c:\working\rust-bevy-cheeseball>cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.71s
     Running `target\debug\rust-bevy-cheeseball.exe`
2023-04-28T15:40:54.922729Z  INFO bevy_winit::system: Creating new window "bevy cheeseball" (0v0)
2023-04-28T15:40:55.313341Z ERROR wgpu_hal::vulkan::instance: enumerate_adapters: Initialization of an object has failed
2023-04-28T15:40:55.400025Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 560", vendor: 4318, device: 4609, device_type: DiscreteGpu, driver: "", driver_info: "", backend: Dx12 }
2023-04-28T15:40:56.563198Z  INFO bevy_rapier3d::render::lines: Loaded 3d debug lines plugin.
2023-04-28T15:40:56.996684Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Enterprise", kernel: "18363", cpu: "Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz", core_count: "4", memory: "24.0 GiB" }
error: process didn't exit successfully: `target\debug\rust-bevy-cheeseball.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

(base) c:\working\rust-bevy-cheeseball>set WGPU_BACKEND=dx12

(base) c:\working\rust-bevy-cheeseball>cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.72s
     Running `target\debug\rust-bevy-cheeseball.exe`
2023-04-28T15:42:37.365176Z  INFO bevy_winit::system: Creating new window "bevy cheeseball" (0v0)
2023-04-28T15:42:37.522966Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 560", vendor: 4318, device: 4609, device_type: DiscreteGpu, driver: "", driver_info: "", backend: Dx12 }
2023-04-28T15:42:38.631300Z  INFO bevy_rapier3d::render::lines: Loaded 3d debug lines plugin.
2023-04-28T15:42:39.076094Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Enterprise", kernel: "18363", cpu: "Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz", core_count: "4", memory: "24.0 GiB" }
error: process didn't exit successfully: `target\debug\rust-bevy-cheeseball.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

My system is a windows 10 machine and the examples from Bevy 0.10 run just fine. My dxdiag is showing directx 12. I will keep playing. Thanks for the help.

davehorner commented 1 year ago

image it runs on a basic render driver on another laptop; it has no color and is very slow to the point of being unusable.

 cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 18.74s
     Running `target\debug\rust-bevy-cheeseball.exe`
2023-04-29T01:19:46.157891Z  INFO bevy_winit::system: Creating new window "bevy cheeseball" (0v0)
2023-04-29T01:19:46.624964Z  INFO bevy_render::renderer: AdapterInfo { name: "Microsoft Basic Render Driver", vendor: 5140, device: 140, device_type: Cpu, driver: "", driver_info: "", backend: Dx12 }
2023-04-29T01:19:48.375445Z  INFO bevy_rapier3d::render::lines: Loaded 3d debug lines plugin. 2023-04-29T01:19:48.776065Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Home", kernel: "19044", cpu: "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz", core_count: "2", memory: "11.7 GiB" }

if I set WGPU_BACKEND=dx12; everything is green and still runs pegs the system's cpu. hmm. well; it's cool code. thanks for sharing and helping me.

Rust-Ninja-Sabi commented 1 year ago

First you can remove Bevy-Atmosphere. It needs much gpu.

On discord is a great bevy community. Perhaps they know more.