SaschaWillems / Vulkan-glTF-PBR

Physical based rendering with Vulkan using glTF 2.0 models
MIT License
979 stars 132 forks source link

Not seen the model #8

Closed iFreet1 closed 6 years ago

iFreet1 commented 6 years ago

The SkyBox is visible, but the model is not visible.

Platform is windows 10, using vulkan sdk version (1.0.68.0) and built with visual studio 2017. GPU GTX1060.

Any ideas what might be going on?

Thanks!

SaschaWillems commented 6 years ago

Can you add some details? What driver version? Do you get any validation messages? Can you try running it through RenderDoc and see if it works there? I have tested on Win10 with an GTX980 and on Linux using an integrated IGP and both worked.

iFreet1 commented 6 years ago

Version driver 398.36 (last). I didn't receive messages about problems of validation. I will try RenderDoc later. As a result it: no_visible

At the same time with the version from 6/9/2018, everything is good.

SaschaWillems commented 6 years ago

Just updated to that driver version too and it works fine for me. Maybe the camera is just off? Should be easily visible in RenderDoc.

P.S. : Is this in debug or release mode?

iFreet1 commented 6 years ago

In any assembly. I have found one more similar situation, in an example of "skeletalanimation" from "vulkanExamples" occurs too most (a floor is visible, but there is no animated model), at the same time other examples work normally.

Magick...

SaschaWillems commented 6 years ago

Then this may be a driver related problem. The shaders between this and the skeletal animation sample have some similarities.

iFreet1 commented 6 years ago

Yes, probably the problem was in the line jointMatrix [128]. After correction on 64 as in a shader, the model became visible. I will mean, thanks.

SaschaWillems commented 6 years ago

Thanks for letting me know. I checked that in accidentally and only noticed because some models would no longer animated for me.