save_3d_textures: Save 3D piecepack textures compatible with James H. Viponds...

Description Usage Arguments Details Value Examples

View source: R/save_3d_textures.R

Description

save_3d_textures saves 3D piecepack textures compatible with James H. Vipond's OBJ files.

Usage

1
save_3d_textures(cfg = pp_cfg(), directory = tempdir())

Arguments

cfg

Piecepack configuration list.

directory

Directory where to save images.

Details

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).

Value

Nothing

Examples

1
2
  cfg <- piecepackr::game_systems("dejavu3d")$piecepack
  save_3d_textures(cfg = cfg, directory = tempdir())

piecepackr/piecepackr3d documentation built on Feb. 8, 2020, 1:15 a.m.