Skip to content

R-Script to produce a 3D plot of Magic: The Gathering cards by power, toughness, mana-cost, and color.

Notifications You must be signed in to change notification settings

TedTinker/3D_Magic_Plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

3D_Magic_Plot

A 3D plot of Magic: The Gathering cards by power, toughness, mana-cost, and color, and the R-Script which produced it. The dataset in use is the AllPrintings JSON-file from mtgjson.com. There's a video about this plot here: https://www.youtube.com/watch?v=RcoYURBZGp0

RGL.ply is a file which can be imported into Blender with "File > Import > Stanford (.ply)."

In Blender, the plot will appear gray. (At least, it did for me!) To see color, add a material-property whose Surface is "Diffuse BSDF." Open the Shader-Editor and click "Add > Input > Attribute." Add the name of the plot's Vector-Color to the attribute (it should be "Col" by default). Connect the attribute's "Vector" to the Diffuse BSDF's "Color." Then, with cursor over the plot, type "z" and select "Material Preview." The plot should appear in color!

Press "shift + `" to enter fly-mode, navigating with "w," "a," "s," "d," "q,", and "e."

Running make_3D_plot.R will reproduce the 3D plot with RGL and export it as a PLY-file.

Running make_2D_plot.R will make a 2D plot of power, toughness, and color.

About

R-Script to produce a 3D plot of Magic: The Gathering cards by power, toughness, mana-cost, and color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages