Skip to content

Instantly share code, notes, and snippets.

View whaison's full-sized avatar

whaison whaison

View GitHub Profile
@whaison
whaison / FragmentWithSurface.shader
Last active March 25, 2019 21:06 — forked from shop-0761/FragmentWithSurface.shader
Fragment と surface を一緒に使うやつ
Shader "Custom/fragmentWithSurface" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader {
Tags { "RenderType"="Opaque" }
@whaison
whaison / ShowBoundingBox.ms
Created February 19, 2017 12:35 — forked from deathponta/ShowBoundingBox.ms
【MaxScript】BoundingBoxの取得し最小値と最大値の位置にポイント配置
bb = NodeLocalBoundingBox $
bmax = bb[2]
bmin = bb[1]
Point pos:bmax box:off cross:on
Point pos:bmin box:off cross:on
@whaison
whaison / MELFiletoPythonFile_UTF-8_v00135_regex.py
Created February 17, 2017 12:30
MELFiletoPythonFile_UTF-8_v00135_regex.py
# -*- coding: cp932 -*-
import pymel.core as pm
import pymel.tools.mel2py as mel2py
import re
import math
import random
melCmd = """
@whaison
whaison / ImportScene\DisplayGlobalSettings_True_2017_lTimeModes_Array.py
Created February 16, 2017 07:11
ImportScene\DisplayGlobalSettings_True_2017_lTimeModes_Array.py
"""
Copyright (C) 2001 - 2010 Autodesk, Inc. and/or its licensors.
All Rights Reserved.
The coded instructions, statements, computer programs, and/or related material
(collectively the "Data") in these files contain unpublished information
proprietary to Autodesk, Inc. and/or its licensors, which is protected by
Canada and United States of America federal copyright law and by international
treaties.
@whaison
whaison / ue4_fbx_extention.T3D
Created February 14, 2017 03:58
ue4_fbx_extention.T3D
Begin Object Class=AnimSequence Name="ue4_fbx_extention"
Begin Object Class=FbxAnimSequenceImportData Name="FbxAnimSequenceImportData_0"
End Object
Begin Object Class=AnimCompress_BitwiseCompressOnly Name="AnimCompress_BitwiseCompressOnly_0"
End Object
Begin Object Name="FbxAnimSequenceImportData_0"
SourceAnimationName="Take 001"
End Object
Begin Object Name="AnimCompress_BitwiseCompressOnly_0"
End Object
@whaison
whaison / ue4_fbx_extention.COPY
Created February 14, 2017 03:55
ue4_fbx_extention.COPY
Begin Object Class=AnimSequence Name="ue4_fbx_extention"
Begin Object Class=FbxAnimSequenceImportData Name="FbxAnimSequenceImportData_0"
End Object
Begin Object Class=AnimCompress_BitwiseCompressOnly Name="AnimCompress_BitwiseCompressOnly_0"
End Object
Begin Object Name="FbxAnimSequenceImportData_0"
SourceAnimationName="Take 001"
End Object
Begin Object Name="AnimCompress_BitwiseCompressOnly_0"
End Object
@whaison
whaison / Cornell.osl
Last active February 12, 2017 13:12
Cornell.osl || Open Shading Language || http://thhube.github.io/tutorials/osl/osl.html
// -- Cornell.osl - Generate the Cornell box material ---------------
#include "stdosl.h"
#define POS_Y normal(0.0, 1.0, 0.0)
#define NEG_Y normal(0.0, -1.0, 0.0)
#define EPSILON 1e-5
surface Cornell(output closure color bsdf = 0)
{
color result = color(0, 1, 0);
@whaison
whaison / emily_material.osl
Last active February 12, 2017 13:49
emily_material.osl  |||| Open Shading Langage
float phongExponent(float glossiness) {
return (1/pow(1-glossiness, 3.5)-1);
}
surface emily_material
(
string specularUnlitNormTexture="00_specular_unlit.exr",
string singleScatterTexture="00_single_scatter.exr",
string diffuseUnlitTexture="00_diffuse_unlit.exr",
float scatterRadius=0.5,
@whaison
whaison / DigitalEmily2_00100_2016-2017_Ascii_fbx_.fbx
Created February 12, 2017 09:47
DigitalEmily2_00100_2016-2017_Ascii_fbx_.fbx
This file has been truncated, but you can view the full file.
; FBX 7.5.0 project file
; Copyright (C) 1997-2015 Autodesk Inc. and/or its licensors.
; All rights reserved.
; ----------------------------------------------------
FBXHeaderExtension: {
FBXHeaderVersion: 1003
FBXVersion: 7500
CreationTimeStamp: {
Last login: Sun Feb 12 16:04:17 on ttys000
whaisonMacBookAir:~ whaison$ git clone --recursive https://github.com/PySide/pyside2-setup.git
2017-02-12 16:09:01.241 xcodebuild[22375:331398] [MT] PluginLoading: Required plug-in compatibility UUID E0A62D1F-3C18-4D74-BFE5-A4167D643966 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
Cloning into 'pyside2-setup'...
remote: Counting objects: 1275, done.
remote: Total 1275 (delta 0), reused 0 (delta 0), pack-reused 1275
Receiving objects: 100% (1275/1275), 385.63 KiB | 168.00 KiB/s, done.
Resolving deltas: 100% (777/777), done.
Submodule 'sources/pyside2' (https://github.com/PySide/pyside2.git) registered for path 'sources/pyside2'
Submodule 'sources/pyside2-examples' (https://github.com/PySide/pyside2-examples.git) registered for path 'sources/pyside2-examples'