Skip to content

horooka/cpp_obj-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tool for generating preview for obj files

Features:

  • 360 degree obj model overview gif
  • Materials' colors preview
  • Config file for preview settings
  • File's comments preview
  • Statistics for vertices, faces, shapes

Config file format:

  • ~/.config/cpp_obj-preview.conf location
  • key=value pairs
Key Value
view-cmd Command for auto opening saved .md file
save-dir(current dir by default) Directory for saving .md and .gif files
overwrite-flag(false by default) Flag for ffmpeg .gif overwriting (1, true)

Requirements:

  • OpenGL package installed
  • ffmpeg package installed

Build:

cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -S . -B build
cmake --build build

Usage:

exe [input.obj | mode]

modes:

    - clean - deletes .md and .gif files from save-dir

Example:

Preview example

Some details:

  • .mtl file should be in the same directory as input.obj file

About

Cli tool for 360° .gif model overview generation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages