Jump to content
  • Advertisement
Sign in to follow this  
TemaKonkin_N

Loading multiple 3D models in the VBO

This topic is 1512 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

Hi!
Realized downloaded models. now understand how to load multiple models. How is loading multiple 3D models in the VBO?
At the moment I have one normal and one index buffer for the same model.
What is the algorithm for load?

 

Share this post


Link to post
Share on other sites
Advertisement

Why are you trying to put multiple models into the same vertex buffer?

Why don’t they all have their own vertex buffers?

 

 

L. Spiro

Share this post


Link to post
Share on other sites


How is loading multiple 3D models in the VBO?
I'm afraid your English is prone to misunderstanding. I assume you're asking about usefulness and performance.

 

Putting multiple models in the same VBO is debatably useful. If the models feature a different vertex layout, then it will become a debugging hell as debug tools typically consider each VBO as containing a single type of vertices.

 

Years ago, I used to slap everything in a single VBO. That usage originated from an old OpenGL extension ("NV_VAR") which were fairly slow to switch.

Modern VBOs are much, much faster. When I switched from "all in the same VBO" to the new approach, I observed no performance difference.

 

As such, optimize your life and time to finish: do whatever comes easier to you, explore the problem, learn and... maybe you won't need to fix anything and there's no punishment for coming back and iterate your code to meet new requirements.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!