A .lrb converter and loader.
C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mcv
test
.gitignore
ABOUT_LRB.MD
LICENSE.md
README.md

README.md

mcv

mcv is a simple library used for converting as well as loading in models. It is able to load in any model that it can convert, below are the model formats supported.

  • OBJ

In addition, as the library is a converter, it converts to a special, open source format specifically created for this library and for use in games or other complex graphical applications.

This format is named lrb, and the specification of which can be found here.

Compatibility

mcv is written (and tested) using VS 2017 on a 64-bit version of Windows 10. Other versions of Windows, and especially other operating systems, may not work out of the box.

The converter, as well as overall library for mcv, is written in C++11.

Command Line Usage

Currently, mcv only has one command, the convert command. This command is able to convert any supported model into an lrb file.

The usage is shown below:

mcv convert (path to input file) (path to output lrb)

Library Usage

Using mcv as a library in your application is also very simple.

To begin, include the header for the loader you would like to use. In most cases, this will be LRBLoader.hpp under the folder Loaders.

Once imported, you can load the file like below:

mcv::lrb_data data = { 0 };
mcv::load_lrb("path/to/file.lrb", &data);

The data struct will then be filled with the data from the file, and will be able to be used in a graphics API, such as OpenGL or DirectX.

Bindings

Want to bind mcv to a language of your choice? Do it! If you do so and put it anywhere, make a pull request and add it to a list of bindings below!

License

All of mcv is licensed under the MIT License. You can see it here.