@tylermorganwall@fosstodon.org
@tylermorganwall@fosstodon.org avatar

tylermorganwall

@tylermorganwall@fosstodon.org

:anAmigaBall: :rstats: R, data science, dataviz, maps, raytracing. Developer of rayshader, rayrender, and the rayverse | PhD in Physics from Johns Hopkins | Penn | he/him

#RStats #Rayshader #Rayverse #Rayrender #Dataviz #3D

This profile is from a federated server and may be incomplete. Browse more on the original instance.

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Thank you continuous backups! I was working in RStudio and the git pane was showing "./" as being staged and I was unable to unstage it. It displayed a small amount of code from one R function, so I just reverted it after backing up that file... which reverted ALL the files in the repo to their last state (with days worth of work being gone) 😬 😬 😬

Thankfully I was able to pull versions of the files from an hour prior from backblaze, with minimal work lost

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@Drmowinckels Nice solution!

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Rendering the moon's craters with displacement mapping in R with rayrender! If you noticed they appear unphysically large, it's because I'm using a information communication technique long employed by cereal boxes: the data have been enlarged to show texture 😉

Moon render with bumps from displacement mapping

terence, to random
@terence@fosstodon.org avatar

@tylermorganwall This is probably something I can work out for myself but I've learned that asking you saves me time. 😅 Can I use the z coordinate for the altitude of a path in render_path if I have altitude (xyz) data?

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence yep! The argument “altitude” in render_path() provides exactly that functionality!

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Stacking cubes is how I’d do it. Once there’s an accepted way to run GPU code on the CRAN, rendering voxels in that way should be plenty fast (since the render time grows via log(N) in boxes)

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Yes, there's some weird compilation issues with the newest version of CGAL that I'll have to chase down

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence I think it's fixed in the latest version on github!

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

The posit::conf agenda came out, and I’m super excited to see I’m talking on the first day of the conference! Which means I can spend the majority of the conf in post-talk relief (as opposed to pre-talk anxiety)! Nice.

Link to my session:

https://reg.conf.posit.co/flow/posit/positconf24/publiccatalog/page/publiccatalog/session/1712004124994001gOid

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Used my under-development svg-to-R-polygon conversion package along with the raybevel package (currently "on vacation" from CRAN due to CGAL 5.6 compilation warnings) to generate a 3D version of the R logo! Will soon replace the existing "r_obj()" object in rayrender.

spinning 3D R logo

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Implemented Catmull-Clark subdivision surfaces for rayrender! Don't tell Moses.

smooth golden cow render

gaborcsardi, to random
@gaborcsardi@fosstodon.org avatar

R-hub v2 is here!

It is a completely new system, better and faster! See the details in the blog post: https://blog.r-hub.io/2024/04/11/rhub2/

@RConsortium

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@gaborcsardi @RConsortium Wonderful news!

tylermorganwall, to GraphicsProgramming
@tylermorganwall@fosstodon.org avatar

‼️ New rayrender update! v0.33.0 introduces instancing with create_instances(): copy/paste an existing scene (either a single 3D model or a collection of objects) and translate/rotate/scale it to a new location! This allows you to generate extremely large scenes with a low memory footprint. For example, here's 4,000,000 dragon models with about half a million vertices each: this would take about 150 terabytes of memory if loaded raw!

Link: https://www.github.com/tylermorganwall/rayrender

zooming out slowly to show 4 million dragons

terence, to random
@terence@fosstodon.org avatar

Realised I did this at the same time as I did the UFO one so here's yet another eclipse visualisation. Nothing comparable to the beautiful ones I've seen but better here than sitting on my disk.

adventures, an tale

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence This is fantastic! Nice work!

terence, to random
@terence@fosstodon.org avatar

@tylermorganwall You know those black boxes that have been plaguing me? Could it be something to do with the new line-drawing algorithm in 0.38? The image on the left is from the latest dev (0.38) version of rayshader; the one on the right is from 0.35.7.

A render from rayshader 0.35.7 without the artifacts

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Possibly! I'm not sure. You might want to try installing an earlier version (e.g. remotes::install_github("tylermorganwall/rayshader@4a69c7204537835d579fe9c381d418dcabd84899")) and see what commit the behavior changed in.

tylermorganwall, to GraphicsProgramming
@tylermorganwall@fosstodon.org avatar
tylermorganwall, to GraphicsProgramming
@tylermorganwall@fosstodon.org avatar

1/2 So this small, rather un-assuming render is kind of insane...

Earlier today, I posted a video showing an animation where each of the 435,545 vertices were themselves a complete Stanford dragon--cool. Instancing! However, when I implemented instancing in , I made sure to do so in a way that supported nested instances: e.g. you can create an instance, and then instance that instance, and so on. So why am I posting a 400x400 still image of a dragon again?

tylermorganwall, to GraphicsProgramming
@tylermorganwall@fosstodon.org avatar

Rendering the the Stanford dragon with:

❌ Triangles?
❌ Gaussian splats?
❌ NERF?
✅ Stanford dragons

(Finally started working on a new rayrender feature that's been on my to-do list for a while: instancing! This video would have taken about 10 terabytes of memory if rendered raw)

Stanford dragon being rendered out of stanford dragons

terence, to random
@terence@fosstodon.org avatar

Migratory paths of the waved albatross in the Galapagos.

adventures, an tale

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence It's evoking lightning! Always good to bring some excitement into a dataviz 😀

terence, to random
@terence@fosstodon.org avatar

Earthquakes (> MW 6.0) of Japan, which took too many tries and dozens of failed renders. Not fully happy with it but didn't want to waste computational cycles so here it is. Will revise at some point.

Please let me know if I made any labelling mistakes.

adventures, an tale

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Looks like we have some variable sphere sizes!

terence, to random
@terence@fosstodon.org avatar

Earthquakes of México, 1923 to 2023.

adventures, an tale

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Not currently--I'll see if rgl keeps track of the point/line sizes in a way that can be extracted after the fact. The other option is to track them in rayshader's internal environment, but that's more bug prone due to the potential of losing track of state.

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Check out the latest version :)

tylermorganwall, to random
@tylermorganwall@fosstodon.org avatar

Excited to report my talk "Reclaiming My Time with Quarto: A Journey from WordPress to Simplicity" has been accepted to ! I'll be talking about how I transformed my Wordpress site to Quarto (www.tylermw.com) using WP's XML export along with R to automate converting complex javascript and media-laden posts to Quarto, and the many improvements to my site (and personal time!) that resulted.

(Plus a short discussion of making 3D buildings in R!)

flyby of 3D buildings made in R

terence, to random
@terence@fosstodon.org avatar

Inspired by @RhodesMaps, here's a visualisation of operating oil pipelines in North America.

adventures, an tale

tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Weird! Does it go away when you set min_adaptive_size = 1 and min_variance = 0?

tylermorganwall,
@tylermorganwall@fosstodon.org avatar
tylermorganwall,
@tylermorganwall@fosstodon.org avatar

@terence Is there a linestring that's looping back on itself perfectly? E.g. c(0,1) -> c(1,0) -> c(0, 1) or something like that. When I wrote this (https://www.tylermw.com/posts/data_visualization/roadtripping-america-in-r-turning-spatial-data-into-animations-with-rayshader.html) blog post, I had to do some extensive data cleaning to make sure there was no degenerate lines.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines