Skip to content
3D rendering test
Branch: master
Clone or download
Latest commit 585412f Mar 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
3dconfig.hpp Enable parallelization Mar 18, 2019
3dmain.hpp
Kconfig.projbuild initial commit Feb 25, 2019
Makefile
README.md Update readme, regarding makefile Mar 18, 2019
board_config.h initial commit Feb 25, 2019
ccsbcs.c
checkedpattern initial commit Feb 25, 2019
component.mk initial commit Feb 25, 2019
diskio.c Add SD card support Mar 18, 2019
diskio.h Add SD card support Mar 18, 2019
esp32.c initial commit Feb 25, 2019
ff.c Add SD card support Mar 18, 2019
ff.h
ffconf.h Add SD card support Mar 18, 2019
fileio.h Add SD card support Mar 18, 2019
font.h initial commit Feb 25, 2019
fvector2.cpp
fvector2.hpp initial commit Feb 25, 2019
fvector3.cpp initial commit Feb 25, 2019
fvector3.hpp
fvector4.hpp initial commit Feb 25, 2019
images.hpp
integer.h Add SD card support Mar 18, 2019
k210.c Add SD card support Mar 18, 2019
kbhit.c initial commit Feb 25, 2019
lcd.c update transferring method Mar 3, 2019
lcd.h update transferring method Mar 3, 2019
main.c #4 update run-time loader Mar 18, 2019
matrix4.cpp initial commit Feb 25, 2019
matrix4.hpp
mmdstructure.h #4 implement runtime motion loader Mar 17, 2019
nt35310.c Fix nt35310 driver bug, add RESET signal Mar 1, 2019
nt35310.h Add overvoltage option, and overclocked to 600MHz Mar 3, 2019
pmd.cpp
pmd.hpp support Parallelization Mar 18, 2019
projpoint.hpp initial commit Feb 25, 2019
quaternion.hpp #4 update run-time loader Mar 18, 2019
sdcard.c Add SD card support Mar 18, 2019
sdcard.h
skeletal-animation.hpp fix knee bone issue, and refactoring Mar 18, 2019
texturepoly.cpp
texturepoly.hpp #4 #5 Add texture material function Mar 15, 2019
vdb.h initial commit Feb 25, 2019
vector2.hpp initial commit Feb 25, 2019
vmd.cpp fix load err, add credit Mar 18, 2019
vmd.hpp fix load err, add credit Mar 18, 2019

README.md

MMD test for k210

how to

Using latest toolchain(development branch) and standalone sdk to compile and build, and then use kflash.py to flash.

Makefile is written for PC testing, not for K210

model file name is model.pmd, make sure that texture images must be RGB565 format bmp file.

motion file name is motion.vmd.

All these file are placed in root of your SD card.

test files.

初音ミク@七葉1052式 Ver20090309(MMD model file) each texture file is converted by using ffmpeg. wavefile (MMD motion file)

convert your texture bmp file to RGB565 format

BMP file must be RGB565 color format, you can convert bmp file by using ffmpeg.

$ ffmpeg -vcodec bmp -i <input>.bmp -vcodec bmp -pix_fmt rgb565 <texturename>.bmp

License

My source code is distributed under the MIT license. Other file is distributed under each license, see each source code for detail.

performance test result

environment

2450 triangles, window size is 320x240

esp32, dual core, 240MHz(on screen, but it's almost cpu limit, reference only)

22fps, 54ktps(K triangles per seconds; 22*2450=54k)

k210, single core, 400MHz(off screen test)

45fps,110ktps

k210, dual core, 400MHz(off screen)

71fps, 173ktps

k210, dual core, 600MHz(Off screen, overvoltage)

107fps, 262ktps

k210(Onscreen, overvoltage)

100fps, 245ktps

note that performance is also depends on your model's ik bone count.

You can’t perform that action at this time.