Need help with Directx meshes, textures etc.

Reply

Join Date: Jul 2008
Posts: 1
Reputation: hexq is an unknown quantity at this point 
Solved Threads: 0
hexq hexq is offline Offline
Newbie Poster

Need help with Directx meshes, textures etc.

 
0
  #1
Jun 12th, 2009
Hello everyone,

this is my first post, but i'll try to explain my problem the best i can.
I'm new to Directx so sorry for a silly question.

So: i've made a 3d model in 3dsmax and exported it to X file. I load it with D3DXLoadMeshFromX() and textures to it with D3DXCreateTextureFromFile(). I am able to render it, move around and so on, but loading takes some time and RAM usage is kinda high.
And now let's say i want to copy this loaded mesh with its textures to a different window with a different IDirect3D9 device. I can do it easily by using the same functions as before, but then RAM usage is doubled which is not what i want to achieve.
So the question is: is it somehow possible to use the same meshes, materials and textures in second window without loading them again from files. As if a pointer to already loaded or something else. My main goal is to use the least RAM as possible.

Thank you for your time.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Game Development Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC