What is the basis of Scene or Resource Management?

Started by
-1 comments, last by Paul C Skertich 11 years, 6 months ago
Recently, I've been tearing my old framework apart - rebuilding a improved one. Instead of classes for meshes, lights, etc... I'm utilizing structs due to their public accessors. I came about thinking about types of mesh's to load in game. If I gather this right that mesh holds the vertex, normals, UV coords and any subset the mesh file has, bones, skin weights, blendshapes.

Am I on the right track thinking that a static mesh should only read everything but excluding the bones, skin and blendshapes; whereas animating meshes store the whole mesh data?

Would this seem right?


struct MeshStructureData {
Mesh's Vertices position, normals, uvs, etc...
};

struct MeshBase {
...
neccessary functions to initialize buffers (vertex and indices).
function to apply material.
function to detect collision.
function to render out buffers.
};

struct StaticMesh : public MeshBase {
function to load mesh file and store necessary information.
};



The meshbase is the interface object. So, does this seem like the correct assumption how loading various of different types of meshes are? As of Static Mesh, Fracture Mesh, Physic Meshes, Foliage Meshes, Actor Meshes or what not?

Thanks for taking the time out and reading this thread!
Game Engine's WIP Videos - http://www.youtube.com/sicgames88
SIC Games @ GitHub - https://github.com/SICGames?tab=repositories
Simple D2D1 Font Wrapper for D3D11 - https://github.com/SICGames/D2DFontX

This topic is closed to new replies.

Advertisement