Generic camera controllers

I see that there is a crate with camera controllers: kiss3d/camera which is like a higher-level api on top of nalgebra…

I’m wondering what the best approach would be if I want to use the camera controls developed there, but with a different renderer?

Hi! Sorry for the late answer.

I guess the easiest way would be to copy the code of the camera you needs directly into your project (which is allowed because kiss3d is licensed under BSD-3) and adapt it to work with your own renderer. Overall, the only parts of the camera code that actually depend on kiss3d is for updating uniforms and for retrieving inputs, both of which should be provided by your renderer/windowing system.

1 Like