Skip to content
Minimal Working Example of how to create a WebGL object from RGL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries
CanvasMatrix.js
Example_WebGL_Template.R
Example_WebGL_Template.Rmd
Example_WebGL_Template.html
Example_WebGL_Template.md
Example_WebGL_Template_Slidify.Rmd
Example_WebGL_Template_Slidify.html
Example_WebGL_Template_Slidify.md
MNI152_T1_2mm_brain.nii
MNI152_T1_2mm_brain.nii-label.nrrd
MNI152_T1_2mm_brain.nii.gz
MNI152_T1_2mm_brain.nii.vtk
MNI152_T1_2mm_brain.nrrd
MNI152_T1_2mm_brain_comp.nrrd
README
README.Rmd
README.md
R_xtk_output.html
Thresholded.nii.gz
Tryout.html
Tryout2.html
knitted_webGL.html
labelstuff.txt
make_vtk.R
make_vtk_example.R
make_xtk.R
my_embed_template.html
my_template copy.html
my_template.html
snapshot.png
test.vtk
writeWebGL_split.R
write_3D_Vtk.R
xtk_template.html

README.md

Example_WebGL_Template.Rmd - overall program that will take in MNI152_T1_2mm_brain.nii.gz, render a brain in RGL, threshold a brain - writes out WebGL all knitted up

my_template.html - same as rgl template but takes out the bottom lines of text

my_embed_template - same as my_template.html but takes out the and headers - MAY REQUIRE onload="webGLStart();" in the body of html document (or some other interactive functioning part to load webGL) - used for knitting - but may RStudio fails to render the md files pandoc and other converters will work though MNI152_T1_2mm_brain.nii.gz - standard brain taken from FSL (www.fmrib.ox.ac.uk/fsl/)

You can’t perform that action at this time.