assimp

package module
v0.0.0-...-d10e213 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: BSD-2-Clause Imports: 5 Imported by: 0

README

ASSIMP-GO

This is a Go library that wraps the use of the Open Asset Import Library known as assimp.

Requirements

This does require cgo which means that gcc should be in your path when trying to build using this library.

Software requirements:

  • Assimp version 3.1 - tested with this version
  • Mathgl - for 3d math
  • Gombz - used as a file format and data structure for the information pulled from assimp.

Usage

The module can be used to load files supported by Assimp and converts them into the Gombz meshes. Once imported, you can load an file (e.g. .OBJ or .FBX file) by using the following call:

srcMeshes, err := assimp.ParseFile(srcFilepath)

LICENSE

Assimp-go is released under the BSD license. See the LICENSE file for more details.

Documentation

Overview

Package assimp implements a basic wrapper for the ASSIMP library: http://assimp.sourceforge.net/

At present there's only a hard-coded, basic file loader that returns a basic MeshData slice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatToGombzMat

func MatToGombzMat(src *C.struct_aiMatrix4x4, dest []float32)

MatToGombzMat converts the row-major order of assimp to the column-major order of OpenGL

func ParseFile

func ParseFile(modelFile string) (outMeshes []*gombz.Mesh, err error)

ParseFile loads a file at the given file path and returns all of the MeshData objects that get created from the meshes contained. err is non-nil on fail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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