Skip to content

camb416/CardBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardBox

An OpenGL image sorter and browser with a static JSON datafile backend.

Compiles against Cinder 0.8.4 http://libcinder.org.

Requires the following fonts:

  • HouseMovements-Sign
  • Amasis MT Pro
_KEYMAP_

D...............Toggle Debug Mode (Display testing UI, show cursor widget)
~...............Toggle Fullscreen Mode

The application is designed to work with an 22" ELO Touchscreen running at 1050x1680px in portrait mode.

It will load a maximum of 40 images.

A sample data.js data file is included in the package.

This file contains the relative location of the images, and all caption information about them.

This file should be placed in ~/Documents/AMNH/postcards/.

With each revision of this file, new images should be copied to a new folder (beginning with opening) such that if a parse error is detected, the old data file and images will be maintained.

UPDATING THE ASSETS:

To update the images in the viewer:

First, duplicate the data.js file, and create a new folder in the assets folder.

before:

after:

Then, update the "basepath" variable in the data.js file. Then for each card, paste in the values for each element as indicated in the graphic below. The "path" variable should be the exact filename of the file in the new folder you created in assets (in this case, the files should be in "press".

Before submitting the data file, you can validate it using a free online tool, JSONLint.

Copy and paste the content of the file into JSONLint and click Validate. If it results in "Valid JSON", then the file looks good and should be ready to update the gallery interactive.

Icon Art adapted from art by Cuberto for Smashing Magazine

About

An OpenGL image sorter and browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published