| | |
Need help with Directx meshes, textures etc.
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- Where to begin? -DirectX (Game Development)
- Ugh! I'm beginning to hate this course (C++)
- directx9 textures (Game Development)
- Issue with DirectX (Game Development)
- how to give textures (Game Development)
- learning WIN32 GDI (C++)
- GUIs with c++ (C++)
- Need help with DirectX code (C)
Other Threads in the Game Development Forum
- Previous Thread: Okay, so I suck at math
- Next Thread: help opengl
| Thread Tools | Search this Thread |
3d advertising ai algorithm ban c++ cambridge camera censorship china competition console development engine fov fpx game gamer games gaming gauntanamo government idaho in-gameadvertisement intellectualproperty laracroft live manhunt math mathematics matrix mercenaries microsoft mmorpg msn naked news nintendo obama palin physics pirate playstation politics projection ps3 rpg search software sony stephenhawking stocks studio technology terrorism tombraider uk videogame web wii world-of-warcraft xbox xbox360





