Description Usage Arguments Details Value Examples
View source: R/save_3d_textures.R
save_3d_textures
saves 3D piecepack textures compatible with James H. Vipond's OBJ files.
1 | save_3d_textures(cfg = pp_cfg(), directory = tempdir())
|
cfg |
Piecepack configuration list. |
directory |
Directory where to save images. |
James H. Vipond has a curated list of OBJ files for visualizing piecepack games: http://vipondweb.byethost3.com/gameroom/PoserPiecepack.html. This function attempts to save png textures for use with these OBJ files. Note the height to width ratio of Jame's pawn belts are 265 to 189 whereas the default ratio for piecepackr is 0.5 to 2.356194 (to fully wrap around a 3/4 inch pawn).
Nothing
1 2 | cfg <- piecepackr::game_systems("dejavu3d")$piecepack
save_3d_textures(cfg = cfg, directory = tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.