How should i deal with graphics formats?
Im making a game engine and im going into the territory resource management and not hardcoding stuff like indices, vertices, uv's etc. Basically i want to load generic models, and im wondering which kind of formats i should implement for a good balance between versatility and implementation time.
If there are well known individual formats for indices, vertices, uv's i would prefer using those, as i could build some kind of hierarchy for defining resources. For example i could have a directory called sprites containing the really basic indices and uv's of a square and a default debugging texture (Like a purple and black square pattern in the source engine). As a subdirectory i could have dirt, which contains the actual dirt texture, maybe a normal map... This way, if for example the dirt texture is missing, it can just look at the directories above it to find the default texture, and log that a default texture was used.
Maybe im overthinking it, and im definitely explaining it badly. The main question is if there are any established, individual formats for indices, vertices etc that i should use to make sure my engine is compatible with 3D modelling programs. And also, if what im thinking of with this kind of hierarchy is a good idea at all.
Edit:
Never mind. I was thinking about it from a pretty weird perspective fueled by confusion. Im gonna check out the Wavefront .obj format as it seems to be supported by a ton of 3D modeling software and fairly simple.
Posted Aug 4, 2019, 4:42 PM UTC · edited