Giter Club home page Giter Club logo

m5stack_mmd's Introduction

M5Stack_MMD

3D rendering by M5Stack
MMD

Prepare

  • M5Stack : Switch Science (for M5Stack_MMD)
    or
  • M5Stack FIRE : Switch Science (for M5StackFIRE_MMD)

Development Environment

About M5Stack_MMD

  • You can move, rotate, or scale the 3D model by rewriting MatrixFactory.h.
  • You can save the screen as bitmap file to SD card by enabling bitmap_out in M5Stack_MMD.ino.
  • In the current version, the code includes a MMD model data (PMD file) as constant arrays.
    You can change a MMD model by rewriting arrays EmbemddedFile.h.
    The arrays and simply made from PMD file and BITMAP files for texture by Binary To Text Converter.
    BITMAP file type has to be 16bit ARGB(1-5-5-5) and the sizes of the files must be same.
    And you should take care ROM size of hardware.

note: This code includes MMD model data (PMD file) as constant arrays. Normal M5Stack can't deal PMD file in SD card at a sufficient speed because of insufficient RAM. It takes 3 minites to open this files including the large constant arrays by Arduino IDE.

About M5StackFIRE_MMD

M5Stack FIRE has 4M PSRAM. It can realize to draw any 3D models in SD card. Example models are in /Model directory in this repository. Put PMD files and BMP files into root directory in your SD card.

  • You can rotate the 3D model by moving M5Stack body like AR. This is realized by 6-axis sensor mounted in M5Stack FIRE.
    AR
  • You can zoom and change the 3D model by buttons.
    Button
  • You can save the screen as bitmap file to SD card by uncomment the last lines in M5StackFIRE_MMD.ino.
  • You can use favorite PMD files. You find many PMD files on the Web. You may have to modify the data to satisfy restrictions for M5StackFIRE_MMD as below.
    Restriction 1 : PMD file name and Texture file name must be ASCII.
    Restriction 2 : Texture file type must be be 16bit ARGB(1-5-5-5) 128x128 pixel BITMAP.
    Restriction 3 : Use not PMX file but PMD file. You can convert each other by PMXEditor.
    Notice : Follow the TERMS OF USE of each 3D model when you use 3D models.
  • Rendering speed : About 27000 polygons per second.

About MMD

  • see VPVP wiki to know MMD
  • use Gimp to convert texture file.
  • use Pmxeditor to rename texture file (Japanse -> ASCII).
    PMXEditor

Theory

see 【ゆっくり解説】 PICマイコンでMMD 【電子工作】 to learn 3D rendering by microcontroller. (In Japanse)

m5stack_mmd's People

Contributors

elect-gombe avatar mhagegh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.