Skip to content

Instantly share code, notes, and snippets.

@metalix00
metalix00 / cudaTest.cpp
Created August 31, 2014 02:28
Example code for http://vfxcode.blogspot.co.nz/ cuda intro
#include "cudaTest.h"
CudaTest::CudaTest()
{
}
void* CudaTest::creator()
{
return new CudaTest;
}
@kanishk2391
kanishk2391 / unsmoothMesh.py
Last active March 16, 2021 03:24
Reconstruct Subdiv for Maya
#---------Reconstruct Subdiv Script for Maya----------
#Script by - Kanishk Chouhan
#Email - [email protected]
#Blog - www.pixel-architect.blogspot.com
#Description -
#This script allows u to reverse the result of smooth operation in maya after deleting the history
#It also preserves the original UV of the mesh
#Select the mesh u want to unsmooth and execute the script
#Script might take some time to execute depending on the polycount...
@n-yoda
n-yoda / SerializedObjectEditor.cs
Last active June 8, 2018 00:58
Unityの任意のアセットを編集するエディタスクリプト http://ny.hateblo.jp/entry/2014/03/23/051546
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// 「Window/SerializedObject Editor」で起動。
/// 選択中のObjectと関連ObjectからSerializedObjectを作ってPropertyを全て表示する。
/// </summary>
public class SerializedObjectEditor : EditorWindow
@taka-mochi
taka-mochi / file0.txt
Last active November 21, 2018 16:59
Bounding Volume Hierarchy (BVH) の実装 - 構築編 ref: http://qiita.com/omochi64/items/9336f57118ba918f82ec
T = 2T_{AABB} + \frac{A(S_1)}{A(S)}N(S_1)T_{tri} + \frac{A(S_2)}{A(S)}N(S_2)T_{tri}
@ToQoz
ToQoz / unity_script_with_webview_with_local_html.js
Created June 1, 2012 00:48
UnityのWebView(unity-webview-integration使う)でローカルHTMLを見るやつ
// index.html は Assets/StreamingAssetsにあるとする.
// Android
// HTMLをテキストとして送る. -> ださい
www = new WWW("jar:file://" + Application.dataPath + "!/assets/index.html"); // this is the path to your StreamingAssets in android
yield www;
if(www.isDone){
WebMediator.LoadData(www); // 独自で追加したメソッド, ネイティブプラギン側でWebView.loadData呼び出してる.
}