I am taking a Graphics class this semester that has gotten me really interested in the field. So far in our class, we have implemented a ray tracer and made a project using OpenGL (we actually had to make an ocean for part of it but it was much more simple than this one haha).
Anyways, I have always been interested in Rust but have never actually worked on any projects using it. I found this project via the gfx-rs website and was very impressed. When I ran the program (took a while to start on my MacBook Air), I noticed that there was no mouse or strafing control. This was great because it was something I knew the basic idea of how to implement!
Changes made:
Bind the mouse to control pitch and yaw along with the arrow keys
Make A and D strafe left and right, respectively
Clamp up and down rotation to avoid getting the camera inverted
I would really appreciate any feedback! This is my first time pushing Rust code, so I am super eager to learn how to improve!
I also realized in my original PR, I was clamping the pitch from [-1, 1] instead of something closer to [-pi/2, pi/2]. I have now changed it to be closer to that. Now, you can look up and down at steeper angles.
Hi!
Awesome project!
I am taking a Graphics class this semester that has gotten me really interested in the field. So far in our class, we have implemented a ray tracer and made a project using OpenGL (we actually had to make an ocean for part of it but it was much more simple than this one haha).
Anyways, I have always been interested in Rust but have never actually worked on any projects using it. I found this project via the gfx-rs website and was very impressed. When I ran the program (took a while to start on my MacBook Air), I noticed that there was no mouse or strafing control. This was great because it was something I knew the basic idea of how to implement!
Changes made:
A
andD
strafe left and right, respectivelyI would really appreciate any feedback! This is my first time pushing Rust code, so I am super eager to learn how to improve!
Thanks!