Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javierluraschi/voxels
Interactive voxel rendering using R
https://github.com/javierluraschi/voxels
3d 3dengine interactive minecraft rstats visualization voxels
Last synced: 8 days ago
JSON representation
Interactive voxel rendering using R
- Host: GitHub
- URL: https://github.com/javierluraschi/voxels
- Owner: javierluraschi
- License: other
- Created: 2019-03-23T17:24:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T21:11:32.000Z (over 5 years ago)
- Last Synced: 2024-12-19T04:51:40.237Z (21 days ago)
- Topics: 3d, 3dengine, interactive, minecraft, rstats, visualization, voxels
- Language: JavaScript
- Homepage: http://rpubs.com/jluraschi/voxels-intro-r
- Size: 4.49 MB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
title: "Interactive Voxels Rendering"
---[![Build Status](https://travis-ci.org/javierluraschi/pins.svg?branch=master)](https://travis-ci.org/javierluraschi/pins) [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/pins)](https://cran.r-project.org/package=pins) ![](https://img.shields.io/badge/lifecycle-experimental-red.svg)
The [voxels](https://github.com/javierluraschi/voxels) is under-development R package that provides interacte voxels rendering.
## Installation
Install the package as follows:
```{r eval=FALSE}
install.packages("remotes")
remotes::install_github("javierluraschi/voxels")
```## Getting Started
You can easily launch a voxel explorer and editor,
```{r fig.height=7, fig.width=9}
voxels::voxels()
```pass your own 3D matrix to render voxels from it,
```{r fig.width=9}
voxels::voxels(array(c(
0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1,
0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
), dim=c(19, 5, 2)), offset = c(-10, 0, 0))
```or use many interesting R packages to perform interactive visualizations. For instance, we can add some perlin noise to simulate terrain generation:
```{r fig.width=9}
library(magrittr)
set.seed(123245)ceiling(ambient::noise_perlin(c(20, 6, 20)) * 10) %>%
voxels::voxels(offset = c(-20, 0, -20))
```Please note that this package is still under-development!