Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.11 KB

README.md

File metadata and controls

56 lines (32 loc) · 1.11 KB

what's this

it's teamplate export a single html with webpack,nodejs, make images to base64 to show, and with .mview model.

可以将图片和模型导出为完整html,配合wallperEngine 可做壁纸,使用ModelView_WallpaperEngine_templatee.html模版导出

rules

  • imgs dir collect image

    放置图片的文件夹,将会自动打包

  • model dir collect .mview etc

    放置模型的文件夹,将会自动打包

use

npm install
npm run fix-memory-limit
npm run build // normal
npm run wallper // for wallper engine

// export  dist/index.html 
// 导出位置 dist/index.htl


global variable on window

[filename]_model - model object,if imgs dir have scene.mview

模型变量 文件名_model

eg. scene_model

[filename]_img - image object,if imgs dir have show.png

图片变量 文件名_img

eg. show_img

Preview

image.png

wallpaper_engine

image.png