Sign in to follow this  

Loading large X Files

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

This topic is 3659 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this