#Color

21 messages · Page 1 of 1 (latest)

north dune
#

While trying to create a basic app on a windows machine, I'm getting a white flash, then a black background. I'm following the youtube video here: https://www.youtube.com/watch?v=E9SzRc9HkOg at the 4:00 minute mark. You can see in the demo, he gets a white background with a paddle. Are there any active bugs that would cause my issue?

Programmers, ready to venture into game development with Rust and Bevy? This tutorial guides you through creating a Breakout game, harnessing Rust's efficiency and Bevy's intuitive engine. No fluff, just code and clear instructions.

🔗 Resources & Links:

See comments

🎮 What You'll Learn:

Setting up a new Bevy project in Rust.
Introduction to ...

▶ Play video
frosty shard
#

do you get any errors/warnings in the console?

north dune
#

2023-10-18T07:32:41.235169Z INFO bevy_winit::system: Creating new window "App" (0v0)
2023-10-18T07:32:41.483816Z INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 5700 XT", vendor: 4098, device: 29471, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "23.7.1 (AMD proprietary shader compiler)", backend: Vulkan }

#

No warnings, just this output. 😦

frosty shard
#

what's the goal with the line at the top of main.rs?

#

it's the only thing that stands out as unusual

north dune
#

Windows machines launch a console. That line removes the console in non-debug builds. Without that line, it still produces the issue.

frosty shard
#

no idea. Maybe someone else here knows but otherwise I'd open an issue

cinder roost
#

Known issue. I think it's fixed in 0.12, not exactly sure

#

@still oasis mentions a way to hide the window temporarily until the renderer is ready. Is there a way to do this in bevy yet?

still oasis
#

0.12 will let you hide the window until the gpu is ready to render but it won't be done automatically

north dune
#

In this particular case, the engine never actually renders the content though. So while it seems related potentially, it's not so much an issue of getting color blasted, more so that the content never renders.

still oasis
#

Ah, right. So the thing I was talking was about the white flash. For the issue of not rendering, can you paste all the logs you get after starting the app?

#

Oh, sorry you already did that above

#

I'm really not seeing what could be going wrong here

#

Can you clone the bevy repo and run any of the examples just to make sure bevy works for you?

north dune
#

Yeah I can give that a try. You could be onto something that maybe I'm experiencing another issue. I might also try deleting the project binaries and try building again just in case something went weird.

still oasis
#

Ooooooooooh @north dune I found your issue. You are spawning a Camera2d, but you should be spawning a Camera2dBundle

#

Camera2d is just a component that contains some informations about the camera, but the Camera2dBundle contains all the components needed to render something