![]() |
| ||
| Need help with Directx meshes, textures etc. 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. |
| All times are GMT -4. The time now is 9:23 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC