This file contains 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
{"meshes": | |
{"./PS1": | |
{"Mesh": | |
{"name":"PS1 Mesh", | |
"armature_name":"PS1 Boy", | |
"bounding_box":{"min_corner":[-9.790631,-9.454928,0.023094984],"max_corner":[9.790631,7.682235,55.04781]}, | |
"multi_indexed_vertex_attributes":{ | |
"vertices_in_each_face":[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 |
This file contains 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
//The following examples demonstrate the current and potential interfaces for rendering a texture | |
//1 Current external resource initilization | |
// Needs a reference to the `regl` object to create `regl.texture` | |
// results in some weird handshake where `Regl` component needs to initialize and pass `regl` object around | |
class ThreeDThing extends React.Component{ | |
constructor(){ | |
super(props) | |
this.state.reglRef = null | |
} |
This file contains 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
const fs = require('fs') | |
const path = require('path'); | |
let replacingFilePath = process.argv[2]; | |
if(!replacingFilePath){ | |
throw "invalid file path to replace" | |
} | |
let relativeImageDirPath = path.relative(path.dirname(replacingFilePath), `${__dirname}/../src/images`); |
This file contains 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
const regl = require('regl')() | |
const mat4 = require('gl-matrix').mat4 | |
const vec3 = require('gl-matrix').vec3; | |
const quat = require('gl-matrix').quat; | |
const makePrimitiveQuad = require('primitive-quad'); | |
var canvas = document.createElement("canvas"); | |
var textCtx = canvas.getContext("2d"); | |
const playerNameCanvas = makeTextCanvas('player name', 200, 50); |
This file contains 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
import React, { Component } from 'react' | |
import PropTypes from 'prop-types'; | |
import { connect } from 'react-redux' | |
import { fetchAssetBinary } from '../../assets/actions.js'; | |
import { sceneTick } from '../../scene/actions'; | |
import reglInit from 'regl'; | |
import { mat4 } from 'gl-matrix'; | |
import { selectPlayerAnim, selectItemAssetNames, memoMissingAssets } from '../../scene/selectors.js'; |
This file contains 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
Kevs-MacBook-Pro:qubicle kev$ blender ./add-idle-anim-MERGED.blend --python `ik2fk` | |
Read new prefs: /Users/kev/Library/Application Support/Blender/2.78/config/userpref.blend | |
found bundled python: /Applications/Blender.app/Contents/MacOS/../Resources/2.78/python | |
HELLO KEV | |
read blend: /Users/kev/code/robotbones/assets/models/mechsniper/blender/qubicle/./add-idle-anim-MERGED.blend | |
WARNING! More UV layers than 8 allowed, 1 last ones won't be available for render, shaders, etc. | |
WARNING! More UV layers than 8 allowed, 1 last ones won't be available for render, shaders, etc. | |
reloading addon: convert-ik-to-fk 1498342349.0 1506111905.0 /Users/kev/Library/Application Support/Blender/2.78/scripts/addons/convert-ik-to-fk.py | |
Modules Installed from '/Users/kev/.nvm/versions/node/v7.9.0/lib/node_modules/blender-iks-to-fks/convert-ik-to-fk.py' into '/Users/kev/Library/Application Support/Blender/2.78/scripts/addons' () | |
Info: Modules Installed from '/Users/kev/.nvm/versions/node/v7.9.0/lib/node_modules/blender-iks-to-fks/conv |
This file contains 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
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
const uiRoot = document.createElement('div'); | |
uiRoot.id = 'ui-root'; | |
document.body.appendChild(uiRoot); | |
const Loop = require('fixed-game-loop'); |
This file contains 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
import { | |
REQUEST_ASSET_BINARY, | |
RECEIVE_ASSET_BINARY | |
} from './constants'; | |
export const requestAssetBinary = (path) => ({ | |
type: REQUEST_ASSET_BINARY, | |
path | |
}); |
This file contains 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
const traffic_light = [< | |
off -> red => green => yellow => red; | |
[red yellow green] ~> off; | |
>]; |
This file contains 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
const traffic_light = [< | |
off -> red => green => yellow => red; | |
[red yellow green] ~> off; | |
>]; |
NewerOlder