converter

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2021 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfig added in v0.2.1

func ApplyConfig(doc *vrm.Document, conf *Config)

func ApplyVRMConfigFile added in v0.2.1

func ApplyVRMConfigFile(doc *vrm.Document, confpath string) error

func NewMMDToMQOConverter

func NewMMDToMQOConverter() *mmdToMQO

func NewMQOToGLTFConverter

func NewMQOToGLTFConverter(options *MQOToGLTFOption) *mqoToGltf

func NewMQOToMMDConverter

func NewMQOToMMDConverter() *mqoToMMD

Types

type BoneMapping added in v0.2.1

type BoneMapping struct {
	vrm.Bone
	NodeName string `json:"nodeName"`
}

type Config added in v0.2.1

type Config struct {
	Metadata vrm.Metadata `json:"meta"`

	BoneMappings     []*BoneMapping              `json:"boneMappings"`
	MorphMappings    []*MorphMapping             `json:"morphMappings"`
	MaterialSettings map[string]*MaterialSetting `json:"materialSettings"`
	ExportAllMorph   bool                        `json:"exportAllMorph"`

	AnimationBoneGroups []*struct {
		vrm.SecondaryAnimationBoneGroup
		NodeNames []string `json:"nodeNames"`
	} `json:"animationBoneGroups"`
	ColliderGroups []*struct {
		vrm.SecondaryAnimationColliderGroup
		NodeName string `json:"nodeName"`
	} `json:"colliderGroups"`

	Preset string `json:"preset"`
}

type MQOToGLTFOption added in v0.2.2

type MQOToGLTFOption struct {
	ForceUnlit bool
}

type MaterialSetting added in v0.2.1

type MaterialSetting struct {
	ForceUnlit bool   `json:"forceUnlit"`
	AlphaMode  string `json:"alphaMode"`
}

type MorphMapping added in v0.2.1

type MorphMapping struct {
	Name        string `json:"name"`
	NodeName    string `json:"nodeName"`
	TargetName  string `json:"targetName"`
	TargetIndex int    `json:"targetIndex"`

	MaterialValues []*vrm.BlendShapeMaterialValue `json:"materialValues,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL