Hey Guys,
I had a question about the best way to store the 3D models in the Resource Cache. I am using openGL so I decided to use the Open Asset Import Library, which takes a variety of different formats and gives you your vertex array's, indice's etc. in a nice easy to use interface.
My question is, how are 3D models usually stored? Should they be stored in the resource Cache as the raw binary data, or should I have the Import Library convert the file and store the vertices and indices as directly usable data? My reasoning why I am confused about this is because I thought it was likely not the right way to go to be constantly rebuilding the 3D data for each object. This way it only get's rebuilt if the model was removed from the cache and requested again.
Also, in my 'mesh node', should I simply hold an identifier to a 3D Model resource, which get's retrieved from the resource cache each time the node is rendered?
Thanks
I had a question about the best way to store the 3D models in the Resource Cache. I am using openGL so I decided to use the Open Asset Import Library, which takes a variety of different formats and gives you your vertex array's, indice's etc. in a nice easy to use interface.
My question is, how are 3D models usually stored? Should they be stored in the resource Cache as the raw binary data, or should I have the Import Library convert the file and store the vertices and indices as directly usable data? My reasoning why I am confused about this is because I thought it was likely not the right way to go to be constantly rebuilding the 3D data for each object. This way it only get's rebuilt if the model was removed from the cache and requested again.
Also, in my 'mesh node', should I simply hold an identifier to a 3D Model resource, which get's retrieved from the resource cache each time the node is rendered?
Thanks
PC - Custom Built
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz