1/6‼️New #rayrender update (v0.25.0)! This update brings `render_ao()`, a function that renders scenes using ambient occlusion. AO is useful when you want to represent a 3D scene but don't want harsh shadows.

Here's the JWST (@NASAWebb) Telescope, rendered with AO in #RStats:
2/6 You can either render w/ pure AO (B&W), or keep the diffuse colors in the model. Keeping colors allows you to highlight certain parts of your scene.

This technique is widely used: check out this NYT article on the Tulsa Race massacre.

nytimes.com/interactive/20…
3/6 Why add AO? It's super useful and widely used in journalism! Once you start looking, you see it everywhere.

Examples:

washingtonpost.com/graphics/2020/…

nytimes.com/interactive/20…

nytimes.com/interactive/20…
4/6 So I felt like it was a good addition to the premier 3D dataviz ecosystem in R*

*the #rayverse, obviously :)
5/6 Here's a link to the code that produced the JWST animation:

gist.github.com/tylermorganwal…

And rayrender's github:

github.com/tylermorganwal…
6/6 And here's the pkgdown site with rayrender's documention:

rayrender.net

Enjoy!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tyler Morgan-Wall

Tyler Morgan-Wall Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @tylermorganwall

Oct 21, 2020
Visualizing the output of my 3D hair simulation #rstats package in rgl. Not as pretty as rayrender, but way faster to iterate with!
Adding some lateral movement into the mix:
Collisions + lateral movement...
Read 4 tweets
Jul 1, 2020
Reminder: there are hundreds of great, FREE learning resources for #rstats out there.

There's no need to sign up to take courses with a disgusting, ethically bankrupt company with sniveling, feckless leadership.
I'm completely self-taught in R. Here's a list of the FREE, OPEN materials I've used on my journey:

For data wrangling and visualization, nothing beats Hadley's "R for Data Science"

Link: r4ds.had.co.nz
Want to learn about data visualization? Check out @ClausWilke's "Fundamentals of Data Visualization." While not a book about R specifically, it's a great resource for learning what makes a good, interpretable viz. Plus, the book's code is available!

Link: serialmentor.com/dataviz/
Read 20 tweets
Jun 25, 2019
1/5 THE LONG WAIT IS OVER! I'm happy to announce the release of rayshader with 3D ggplots. Pull up your favorite ggplot viz and throw it into the new plot_gg() function, and watch rayshader transform it into 3D. #rstats #rayshader #dataviz

Blog post:
tylermw.com/3d-ggplots-wit…
2/5 You can install the package from the Github page:

remotes::install_github("tylermorganwall/rayshader")
github.com/tylermorganwal…

Since ggplot2 is an incredibly complex package, there will certainly be bugs--if something renders oddly, leave an issue on the Github page.
3/5 Part of the reason it took so long was I wanted to a dead simple interface for 3D plots. No complex interfaces or APIs to learn-it's one line of code to transform your plot into 3D.

Check out the documentation and examples at the pkgdown website:

rayshader.com
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(