Twinklebear / embree-rs

Rust bindings to Embree 3
MIT License
34 stars 13 forks source link

winit version used in examples causes panic #9

Open mandeep opened 3 years ago

mandeep commented 3 years ago

Hi @Twinklebear!

The version of glium listed in Cargo.toml in the examples/support directory is using an unsupported version of winit. This version of winit causes panic whenever the mouse hovers over the window. This should be alleviated with an update to glium v0.28.0, however due to breaking namespace changes there would need to be some work involved in updating display.rs.

Let me know if I can help.

Twinklebear commented 3 years ago

Hi @mandeep , it would be good to get the glium version updated. I think I tried updating the glium version in the arcball-rs demo app that does the same input handling. However it seemed like the cursor handling for mouse input changed some, and I wasn't getting mouse events sent frequently enough to interact with the camera properly so it would feel like it was rendering at an extremely low frame rate and was kind of unusable.

I don't use glium much besides the demo apps here so I'm not too familiar with what the recommended mouse handling path would be for this kind of input. It seemed like there was some other input mode for relative mouse motion, but that might be more relevant for first person shooter time control. If you're more familiar and want to try out updating it that'd be great, or if you know where I can learn some more to update it myself I can also find some time.

mandeep commented 3 years ago

I'll see what I can do. I've just been using glium docs and compiler errors to investigate. If I find anything else I'll be sure to post here.