Loading large X Files

Started by
1 comment, last by Zara 16 years, 4 months ago
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
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.
Yeh I was thinking that was going to be the case, just wanted to make sure.

This topic is closed to new replies.

Advertisement