spnda / vk_gltf_viewer

A mesh-shader based glTF Vulkan renderer using fastgltf
6 stars 2 forks source link

camera move too fast and clipping make strange part of model #3

Closed tigrazone closed 7 months ago

tigrazone commented 7 months ago

I use W S on keyboard for make model cleser/far and use center button of mouse for move model look at video https://github.com/spnda/vk_gltf_viewer/assets/3808839/dfdb9793-4fef-4a65-91ef-d85b65482a79

spnda commented 7 months ago

This is perfectly normal, since the model itself has a weird scale and is tiny compared to other models. If you open Sponza, Bistro, or other sample models you can see that movement is fine. The clipping is just because the far plane is set to 0.01f, which is usually enough but in the case of this model it makes it hard to show, as it's so tiny. I'm pushing a commit adding support for pre-defined cameras, which work perfectly with this model.

tigrazone commented 7 months ago

Select cameras saved with model is good option