Skip to content

jopadan/glcar3o

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glcar3o

Chasm: The Rift .CAR/.3O 3D animation model OpenGL viewer written in C23

Usage

./glcar3o assets/hog.car
[NFO][VID][PAL] assets/chasmpalette.act
[NFO][MDL][CAR] assets/hog.car

./glcar3o assets/m-star.3o assets/m-star.ani
[NFO][VID][PAL] assets/chasmpalette.act
[NFO][MDL][ 3O] assets/m-star.3o assets/m-star.ani

./3oviewer assets/m-star.3o assets/m-star.ani

Example

#inclue <chasm/chasm.h>

using namespace chasm;

int main(int argc, char** argv)
{
    std::vector<path> anim_files;
    for(size_t i = 2; i < argc; i++)
        anim_files.push_back(argv[i]);

    model src(argv[1], anim_files);
    exit(EXIT_SUCCESS);
}

Links