This is an English description of the .PMX file format used in Miku Miku Dance (MMD).
PMX is the successor to the .PMD format (Polygon Model Data).
This is work-in-progress! Please leave feedback in the comments.
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
Before you continue, if you don't know what IMGUI is don't bother reading this post, just ignore it, don't write anything in comments section, etc. If you're curious about IMGUI see bottom of this post, otherwise continue whatever you were doing, this post it's not for you. Thanks!
If you know what IMGUI is, for context read following presentations and blog posts:
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Gists | |
{ | |
// The algorithm is from the "Fast Poisson Disk Sampling in Arbitrary Dimensions" paper by Robert Bridson. | |
// https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf | |
public static class FastPoissonDiskSampling | |
{ |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
namespace Swing.Editor | |
{ | |
public class EditorCoroutine |
using System; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
//Unity 4.1.5 | |
public class UnityTextures : EditorWindow | |
{ |
#include <android/log.h> | |
class androidbuf: public std::streambuf { | |
public: | |
enum { bufsize = 128 }; // ... or some other suitable buffer size | |
androidbuf() { this->setp(buffer, buffer + bufsize - 1); } | |
private: | |
int overflow(int c) { | |
if (c == traits_type::eof()) { | |
*this->pptr() = traits_type::to_char_type(c); |
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding | |
[Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding |
using System; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(DefaultAsset))] | |
public class CustomAssetInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ |