GameMaker (2.0 - 2.2.x)
Icon

Voxel Import

Sifai

You must be logged in to obtain assets

Description

This asset allow you to import Magica Voxel models (.vox) in your projects!

Attention! This is only load the models! Without any collision data!

Features:

  • Import Magica Voxel (.vox) models

  • Models can be stored in one vertex buffer for better perfomance

  • Support frame based animation (you must use Magica Voxel 0.98.2)

  • Simple texture support

  • Support to set scale, when model is loading

  • Support to set origin, when model is loading (nine points of origin)

  • Easy to use

limitations:

  • If you load many models through a loop, it can take a lot of memory (make small loops)

  • Large levels can take a long time to load

  • Maximal size of model is 256x256x256 voxels

  • Models is not optimazed when is loaded. Each voxel have external sides. (2 triangle for each side) But inner sides not be generated.

List of functions:

VI_init()
VI_model_load(fname, scale, origin)
VI_model_unload(model)
VI_model_complex_start(frames)
VI_model_complex_load(model, fname, scale, origin, x, y, z)
VI_model_complex_end(model)
VI_model_draw(model, frame, texture, x, y, z)
VI_model_draw_ext(model, frame, texture, x, y, z, xscale, yscale, zscale, xrot, yrot, zrot)
VI_model_get_frames(fname)
VI_model_get_palette(fname)

You also can try compiled demo!

Highly recommend compile project with YYC.

End User Licence Agreement (EULA).

Age Rating: None

Version

GMS2 - Version 1.0.1. Published June 7, 2018

  • Fixed bug when VI_model_get_frames returns wrong numbers of frames
  • Added new function VI_model_get_palette (it return array with 256 colors)
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait