Jump to content
  • Advertisement
Sign in to follow this  
Zara

Loading large X Files

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

Having a few problems loading an extremely large X File(~200mb) in DirectX. Im trying to use the D3DXLoadMeshFromX method which as expected eventually returns an Out of Memory error code and fails. Other than splitting the model into separate individual sections in their own X Files and loading them one at the time has anyone ever come across a similar situation and have a simple solution for me. Im open to ideas. Sorry if I sound a bit of a Novice but this is really my first experience with DirectX and Model Loading. Thanks in advance and if you need any further clarification post and ill do my best to answer. Many Thanks

Share this post


Link to post
Share on other sites
Advertisement
The solution is: Don't do that [smile]

What on earth are you loading that's 200MB? You're almost certainly best to split it up into multiple smaller meshes, and then you can even use a PVS system to cull out invisible chunks.

As it is, if the file is 200MB, the VRAM requirements will also be near 200MB (Assuming the .X file isn't stored as text), and some cards don't even have that much video memory.

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!