Jump to content
  • Advertisement
Sign in to follow this  
Karutoh

Last Object Only Renders

This topic is 662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a problem in my engine, if I try to render multiple objects at once, only the last object to render shows up. What is the possible causes of this? As a side note I have not received any errors from the validation layer. I am stumped...

Edited by Karutoh

Share this post


Link to post
Share on other sites
Advertisement

you overloaded the flux capacitor......

 

but really you are going to need to provide more information or code.  preferably the code where you create, manage/store, and draw your objects.

Share this post


Link to post
Share on other sites

Primary I'm with ncsu on this.

Some rough first thoughts:

- are you updating the world matrix of the objects correctly? (or accidentally using the same for all objects, thus only the last object is visible)

- a wrong index called in some buffer [static number]  instead of [loop var]?

- ...

Share this post


Link to post
Share on other sites

Currently I use a Dynamic Uniform Buffer, and use Dynamic Offsets. So each object for sure has it's own MVP data, etc... I'm a 100% certain it's not my entity array.

 

Edit:

Actually, could it possibly be that I need to add a VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER in VkWriteDescriptorSet for each object?

Edited by Karutoh

Share this post


Link to post
Share on other sites
I would recommend that you debug your program with renderdoc. You will be able to inspect all draw commands, look at the mesh input and output, check if the buffer values are correct and look at what is rendered to the framebuffer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!