英語 /中文| Windows Server | Ubuntu服務器| 網絡演示| 官方網站
注意:該服務器是帶有內置的MongoDB的編譯版本,執行start.bat或start.sh啟動,然後訪問http://localhost:2020在Google Chrome中。 Windows版本需要Visual C++ Redistributable for Visual Studio 2015 。
好消息!基於Vite4 + Vue3 + TS5 + Ant-Design-Vue7的版本即將推出。單擊此處查看更多詳細信息。
開源版本
Pro版本
從v0.6.1開始,Shadoweditor僅提供核心功能和擴展API,並且在擴展中將提供其他功能,就像Vscode一樣。我們將在dev分支機構中發展。
config.toml中啟用https 。onTouchStart , onTouchEnd , onTouchMove 。three.js升至R130。onVRConnected , onVRDisconnected , onVRSelectStart , onVRSelectEnd 。three.js的升級而無法序列化Geometry的錯誤。polygonOffset , polygonOffsetFactor , polygonOffsetUnits參數可視化設置,以解決深度衝突的問題。visible屬性。Bin類型模型不再支持。prototype重寫為源代碼中的ES6 class 。僅在要從源構建時才需要以下內容。
tdm-gcc , MinGW-w64或Windows上的MinGW ,並確保可以通過命令行訪問gcc )注意:版本號僅用於參考。
您可以使用git下載源代碼。
git clone https://github.com/tengge1/ShadowEditor.git在中國, github確實很慢,您可以使用gitee 。
git clone https://gitee.com/tengge1/ShadowEditor.git網絡版本:
China ,則運行npm run set-proxy以將Golang和Nodejs代理設置。npm install以安裝nodejs依賴關係。npm run build以構建服務器和Web。build/config.toml ,然後修改蒙哥德主機和端口。npm start啟動服務器。您現在可以訪問: http://localhost:2020 。https 。請訪問: https://localhost:2020 。桌面版本:
MongoDB並在utils/mongodb文件夾中解壓縮。npm run build-desktop ,以在文件夾build/desktop上構建桌面應用程序。build文件夾中打開PowerShell或cmd 。.ShadowEditor install以安裝Shadoweditor作為服務。.ShadowEditor start啟動Shadoweditor服務。http://localhost:2020 。Windows Services Manager中管理此服務。./scripts/service_linux/shadoweditor.service ,設置正確的路徑。sudo cp ./scripts/service_linux/shadoweditor.service /etc/systemd/system/ 。sudo systemctl daemon-reload以重新加載服務守護程序。sudo systemctl start shadoweditor開始服務。sudo systemctl enable shadoweditor自動啟動服務。 PS E:githubShadowEditorbuild> .ShadowEditor
ShadowEditor is a 3D scene editor based on three.js, golang and mongodb.
This application uses mongodb to store data.
Usage:
ShadowEditor [command]
Available Commands:
debug Debug service on Windows
help Help about any command
install Install service on Windows
serve Start server
start Start service on Windows
stop Stop service on Windows
version Print the version number
Flags:
--config string config file (default "./config.toml")
-h, --help help for ShadowEditor
Use "ShadowEditor [command] --help" for more information about a command.
NodeJs , golang , MongoDB和Visual Studio Code 。 ESLint, Go, Shader languages support for VS Code, TOML Language Support.
NPM腳本的用法:
npm install: install nodejs dependencies.
npm run build: build the server and web client.
npm run build-server: build only the server. (For development)
npm run build-web: build only the web client. (For development)
npm run build-desktop: build the desktoop version.
npm run dev: build the web client automatically when files changes.(For development)
npm run copy: Copy assets from web folder to build folder.
npm run start: start the web server.
npm run set-proxy: set golang and nodejs proxy. (In China only)
npm run unset-proxy: unset golang and nodejs proxy.
npm run install-dev: install golang development tools.
npm run eslint: check js files and fix errors automatically.
npm run clean: delete the web and desktop builds.
npm run clear: delete useless nodejs packages.
Shadoweditor是用戶和開發人員的項目。您可以在此項目上做出貢獻並嘗試您的想法。沒有退休金,但是很有趣。為了做出貢獻,您應該:
注意:請勿提交大型二進製文件,否則可能會拒絕Pull Request 。如果需要,您可以將文件或目錄添加到.gitignore文件中。
您需要將模型資產壓縮到zip文件中,並且條目文件不能嵌套在文件夾中。該服務器將解壓縮並將其放入./build/public/Upload/Model文件夾中,並在MongoDB _Mesh Collection中添加記錄。
基本幾何形狀支持多個嵌套的層次。您可以添加一個group (在幾何菜單中),然後將多個型號拖到Hierachy面板中的group中。
編輯config.toml並true authority.enabled 。默認管理員用戶名是admin ,密碼為123456 。
asm.js has been disabled because the script debugger is connected. Please disconnect the debugger to enable asm.js.錯誤。完全錯誤:ASM.JS已被禁用,因為腳本調試器已連接。請斷開調試器以啟用ASM.J。 ammo.js(1,1)Script1028:Script1028:預期標識符,字符串或編號Shadoweditor.js(3948,8)Script5009:未定義“ Shadow”。
解決方案:Tencent瀏覽器不支持與Emscripten編譯的ammo.js (WebAssembly),建議使用Chrome或Firebox 。
數據結構和Web客戶端沒有更改,只需複制./ShadowEditor.Web/Upload/文件夾即可build/public/Upload/ 。
Windows需要Visual C++ Redistributable for Visual Studio 2015 。您可以從以下安裝:https://www.microsoft.com/en-us/download/details.aspx?id=48145
如果無法打開桌面版本,則可以查看logs.txt ;如果端口發生衝突,您可以在resources/app/config.toml中修改MongoDB和網站端口。
安裝openssl ,Git客戶端已經包含一個;打開cmd , Powershell或shell ,並運行以下命令:
openssl genrsa -out privatekey.pem 1024
openssl req -new -key privatekey.pem -out certrequest.csr
openssl x509 -req -in certrequest.csr -signkey privatekey.pem -out certificate.pem在生成的文件中, certificate.pem是證書, privatekey.pem是關鍵。
麻省理工學院許可證
多虧了以下開源項目。
https://github.com/golang/go
https://github.com/burntsushi/toml
https://github.com/dgrijalva/jwt-go
https://github.com/dimfeld/httptreemux
https://github.com/inconshrevable/mousetrap
https://github.com/json-iterator/go
https://github.com/mozillazg/go-pinyin
https://github.com/otiai10/copy
https://github.com/sirupsen/logrus
https://github.com/spf13/cobra
https://github.com/spf13/viper
https://github.com/urfave/negroni
https://go.mongodb.org/mongo-driver
https://github.com/facebook/reaect
https://github.com/mrdoob/three.js
https://github.com/rollup/rollup
https://github.com/babel/babel
https://github.com/eslint/eslint
https://github.com/rollup/rollup-plugin-babel
https://github.com/rollup/rollup-plugin-commonjs
https://github.com/rollup/rollup-plugin-json
https://github.com/rollup/rollup-plugin-node-rasolve
https://github.com/egoist/rollup-plugin-postcss
https://github.com/rollup/rollup-plugin-replace
https://github.com/mjeanroy/rollup-plugin-strip-banner
https://github.com/andyearnshaw/rollup-plugin-bundle-worker
https://github.com/teinijs/twien.js
https://github.com/jedwatson/classnames
https://github.com/d3/d3-dispatch
https://github.com/i18next/i18next
https://github.com/js-cookie/js-cookie
https://github.com/facebook/prop-types
https://github.com/codemirror/codemirror
https://github.com/jquery/esprima
https://github.com/tschw/glslprep.js
https://github.com/zaach/jsonlint
https://github.com/acornjs/acorn
https://github.com/kripken/ammo.js
https://github.com/dataarts/dat.gui
https://github.com/toji/gl-matrix
https://github.com/squarefeet/shaderparticleengine
https://github.com/mrdoob/stats.js
https://github.com/mrdoob/texgen.js
https://github.com/yomotsu/volumetricfire
https://github.com/jonbretman/amdto-to-as6
https://github.com/chandlerprall/threecsg