英语 /中文| 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