| Parameter | YouTube recommends setting |
|---|---|
| -movflags faststart | moov atom at the front of the file (Fast Start) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param {THREE.Mesh} mesh | |
| * @param {THREE.Vector2} point | |
| * @returns {THREE.Vector3[]} | |
| */ | |
| var uvToGlobal = function (mesh, point) { | |
| var a, b, c, i, uv, face, uvs, faces, vertices, matrix, matrix2, point3, result; | |
| result = []; | |
| uvs = mesh.geometry.faceVertexUvs[0]; | |
| faces = mesh.geometry.faces; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This file is in the public domain. Where | |
| // a public domain declaration is not recognized, you are granted | |
| // a license to freely use, modify, and redistribute this file in | |
| // any way you choose. | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // Unity remake of a fake volumetric light glow effect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en-GB"> | |
| <head> | |
| <!-- Technical meta --> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Search engine meta --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Fibonacci Sphere in ThreeJS</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float map(float value, float min1, float max1, float min2, float max2) { | |
| return min2 + (value - min1) * (max2 - min2) / (max1 - min1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
| <v-card> | |
| <v-toolbar dark :color="options.color" dense flat> | |
| <v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
| </v-toolbar> | |
| <v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
| <v-card-actions class="pt-0"> | |
| <v-spacer></v-spacer> | |
| <v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| A Basic Introduction to BRDF-Based Lighting [RECOMMANED] | |
| https://www.cs.princeton.edu/courses/archive/fall06/cos526/tmp/wynn.pdf | |
| A Reflectance Model for Computer Graphics | |
| http://www.graphics.cornell.edu/~westin/consortium-home/cook-tog.pdf | |
| SIGGRAPH 2012 Course: Practical Physically Based Shading in Film and Game Production | |
| http://blog.selfshadow.com/publications/s2012-shading-course/#course_content | |
| SIGGRAPH 2013 Course: Physically Based Shading in Theory and Practice |
These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc
- Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
- control-panel https://github.com/freeman-lab/control-panel
- ControlKit https://github.com/automat/controlkit.js
- guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
- oui https://github.com/wearekuva/oui
- Palette.js https://github.com/lehni/palette.js