A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉
~/.ssh/config
, set each ssh key for each repository as in this exemple:/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* @author erich666 / http://erichaines.com | |
*/ | |
// This set of controls performs orbiting, dollying (zooming), and panning. | |
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default). |
license: gpl-3.0 |
import { useEffect, useRef, useState } from 'react'; | |
import { useFrame, useThree } from '@react-three/fiber'; | |
import { MapControls, OrthographicCamera, PerspectiveCamera } from '@react-three/drei'; | |
import type { OrbitControls as OrbitControlsImpl } from 'three-stdlib'; | |
export function Camera() { | |
const [oldType, setOldType] = useState('PerspectiveCamera'); | |
const [coords, setCoords] = useState({ x: 0, y: 0 }); | |
const gl = useThree((state) => state.gl); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
#graphicContainer { | |
width: 400px; | |
background:#F2F2F2; |
import numpy as np | |
def cube_geometry(x, y, z): | |
xSize = x / 2 | |
ySize = y / 2 | |
zSize = z / 2 | |
positions = np.array([ | |
[-xSize, ySize, zSize], [xSize, ySize, zSize], | |
[-xSize, -ySize, zSize], [xSize, -ySize, zSize], |
Bash script to iterate all commits of a given Git repository and extract all files within each commit.
With a Git repository at /path/to/repository
and an empty directory at /path/to/output
we can run:
./export.sh /path/to/repository /path/to/output
library(rayshader) | |
library(rayrender) | |
popdata = raster::raster("gpw_v4_population_density_rev11_2020_15_min.tif") | |
population_mat = rayshader:::flipud(raster_to_matrix(popdata)) | |
above1 = population_mat > 1 | |
above5 = population_mat > 5 | |
above10 = population_mat > 10 |