forked from xuc7950/D3ModelViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7edd448
commit a272d82
Showing
5 changed files
with
47 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
<h1>D3ModelViewer</h1> | ||
# D3ModelViewer | ||
|
||
**D3ModelViewer**一个基于Three.js的用于在可道云KodExplorer与KodBox中查看3d模型的插件,支持常用的fbx,obj,gltf,glb,bvh,3ds,ply,stl,usdz,3dm文件格式 | ||
|
||
<b>D3ModelViewer</b>一个基于Three.js的用于在<a href="https://github.com/kalcaddle/KodExplorer" >可道云</a>中查看3d模型的插件,支持常用的fbx,obj,gltf,glb,bvh,3ds,ply,stl,usdz,3dm文件格式 | ||
## 版本说明 | ||
|
||
<b>插件安装说明:</b> | ||
<ol> | ||
* main分支为KodExplorer版本 | ||
* kodbox分支为KodBox版本 | ||
|
||
<li>安装此插件请保证可道云的文件夹(KodExplorer)存放在服务器根目录,以保证各文件的准确获取;</li> | ||
|
||
<li>插件解压后放置在<code>/KodExplorer/plugins/</code>文件夹下即可。</li> | ||
</ol> | ||
## 插件安装说明 | ||
|
||
<hr/> | ||
|
||
|
||
D3ModelViewer is a Three.js based plugin for viewing 3D models in <a href="https://github.com/kalcaddle/KodExplorer" >KodExplorer</a>, supporting commonly used file formats such as fbx, obj, gltf, glb, bvh, 3ds, ply, stl, USDZ, 3DM | ||
|
||
<b>Plugin installation instructions:</b> | ||
<ol> | ||
|
||
<li>Please ensure that the KodExplorer folder for installing this plugin is stored in the server root directory to ensure accurate retrieval of all files;</li> | ||
|
||
<li>After extracting the plugin, place it in the <code>/KodExplorer/plugins/</code> folder.</li> | ||
</ol> | ||
插件解压后放置在`/plugins`文件夹下,然后登录可道云后台插件中心启用即可。 | ||
|
||
## 演示视频 | ||
|
||
以KodExplorer为例,KodBox操作方法相似 | ||
|
||
https://github.com/xuc7950/D3ModelViewer/assets/45794709/1400120b-81e6-475f-9951-0072b61b1736 | ||
<video controls src="https://github.com/xuc7950/D3ModelViewer/assets/45794709/1400120b-81e6-475f-9951-0072b61b1736" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
kodReady.push(function() { | ||
kodApp.add({ | ||
name: "D3ModelViewer", | ||
title: "{{LNG.D3ModelViewer.meta.name}}", | ||
icon: "{{pluginHost}}static/images/icon.png", | ||
ext: "{{config.fileExt}}", | ||
sort: "{{config.fileSort}}", | ||
callback: function(path, ext) { | ||
var url = '{{pluginApi}}&path=' + core.pathCommon(path); | ||
if ('window' == "{{config.openWith}}" && !core.isFileView()) { | ||
window.open(url); | ||
} else { | ||
core.openDialog(url, core.icon(ext), htmlEncode(core.pathThis(path))); | ||
Events.bind('explorer.kodApp.before', function(appList) { | ||
appList.push({ | ||
name: "D3ModelViewer", | ||
title: "{{LNG['D3ModelViewer.meta.name']}}", | ||
icon: '{{pluginHost}}static/images/icon.png', | ||
ext: "{{config.fileExt}}", | ||
sort: "{{config.fileSort}}", | ||
callback: function(path, ext) { | ||
core.openFile('{{pluginApi}}', "{{config.openWith}}", _.toArray(arguments)); | ||
} | ||
} | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters