tcobbs / ldview

Real-time 3D viewer for displaying LDraw models
https://tcobbs.github.io/ldview/
GNU General Public License v2.0
87 stars 17 forks source link

Camera jiggle in walk mode #44

Closed mjhorvath closed 1 year ago

mjhorvath commented 3 years ago

There is a slight jiggle after rotating the camera in walk mode. It is kind of annoying. I think it would be better if camera rotation used azimuth and altitude in walk mode like in a first-person shooter video game, thereby eliminating the jiggle. Thanks!

tcobbs commented 3 years ago

I don't understand what you mean. Having said that, I don't think I can fix whatever it is. LDView isn't a game, and (more pertinent) I'm not a game developer. I don't like how walk and fly mode work in LDView, but I don't really have the knowledge to fix them.

mjhorvath commented 3 years ago

The "jiggle" happens after you rotate the camera. The camera snaps back into a certain orientation. If the camera worked correctly in the first place, it would not have to (noticeably) snap back into the correct position afterward.

I mention video games, simply because they solved these very same problems decades ago.

I took a look at the code and couldn't figure it out how to fix it, either. I just thought I'd list the issue here.

tcobbs commented 3 years ago

What I meant is that I don't have the knowledge to fix the problem. As an aside, I don't even see the problem (although I didn't test at super low frame rates).