Jump to content
  • Advertisement
Sign in to follow this  

Load a mesh in memory without using

This topic is 5196 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 need to load a .x file in memory without using it. I've tried to use this but it doesn't work fine: // load FileStream xTemp = File.OpenRead(openFileX.FileName); x_file_list.Add( xTemp ); // x_file_list is an ArrayList .... ... ... // ok but sometime i try to use it OnResetDevice(object sender, EventArgs e){ ... xfile = (FileStream)x_file_list[0]; mesh = Mesh.FromStream(xfile, MeshFlags.SystemMemory, device, out materials); ... } at first time it works but when i resize the window form i get array list overflowing! Then when i clode the application i've to .close() all FileStreams in x_file_list?

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!