An open API service indexing awesome lists of open source software.

https://github.com/chenycl/single-html

make image,marmoset model complimer to a complete html,可做Wallpaper Engine 3d壁纸
https://github.com/chenycl/single-html

marmoset offline single-html wallpaper-engine

Last synced: 5 months ago
JSON representation

make image,marmoset model complimer to a complete html,可做Wallpaper Engine 3d壁纸

Awesome Lists containing this project

README

          

# 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模版导出

## [model demo](https://github.com/ChenYCL/single-html/tree/wallpaper)

# rules

- imgs
dir collect image

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

- model
dir collect .mview etc

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

# use

```$javascript
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](https://i.loli.net/2020/06/20/u8rftObwxcnqMg3.png)

## wallpaper_engine

![image.png](https://github.com/ChenYCL/single-html/blob/master/example/image_2020-06-22_21-38-48.png)