Английский / 中文 | Windows Server | Ubuntu Server | Веб -демонстрация | Официальный сайт
Примечание. Сервер представляет собой скомпилированную версию со встроенным MongoDB, Exepute 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 , ShadeDitor предоставляет только основные функции и расширенные API, а другие функции будут предоставлены в расширениях, как VSCode. Мы будем развиваться в филиале dev .
https в config.toml .onTouchStart , onTouchEnd , onTouchMove .three.js до R130.onVRConnected , onVRDisconnected , onVRSelectStart , onVRSelectEnd .Geometry не может быть сериализована из -за обновления three.js .polygonOffset , polygonOffsetFactor , polygonOffsetUnits Параметры параметров визуализации для решения проблемы глубинного конфликта.visible атрибут.Bin больше не поддерживается.prototype в class ES6 в исходном коде.Следующее требуется только тогда, когда вы хотите построить из источника.
tdm-gcc , MinGW-w64 или MinGW на Windows, и убедитесь, что 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 , чтобы создать сервер и Интернет.build/config.toml и измените хост и порт MongoDB.npm start запустить сервер. Теперь вы можете посетить: http://localhost:2020 .https в файле конфигурации. Пожалуйста, посетите: https://localhost:2020 .Версия на рабочем столе:
MongoDB и раскрипируйте его в папке utils/mongodb .npm run build-desktop , чтобы построить настольное приложение в build/desktop .PowerShell или cmd в папке build в качестве администратора..ShadowEditor install для установки ShadeDitor в качестве услуги..ShadowEditor start начало службы ShadeEditor.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 в Auto Start Service. 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.
Shadeeditor - это проект как для пользователей, так и для разработчиков. Вы можете внести свой вклад и попробовать свою идею в этом проекте. Нет пенсии, но очень весело. Чтобы внести свой вклад, вы должны:
ПРИМЕЧАНИЕ. Не отправляйте большие двоичные файлы, или Pull Request может быть отклонен. При необходимости вы можете добавить файлы или каталоги, которые будут проигнорированы в файл .gitignore .
Вам необходимо сжать модельные активы в файл zip , а файл входа не может быть вложен в папку. Сервер распадет его и поместит его в папку ./build/public/Upload/Model и добавит запись в коллекции mongodb _Mesh .
Основная геометрия поддерживает несколько уровней гнездования. Вы можете добавить group (в меню геометрии), а затем перетащить несколько моделей в group на панели Hierachy .
Редактировать config.toml и установить authority.enabled to true . Имя пользователя администратора по умолчанию - admin , а пароль - 123456 .
asm.js has been disabled because the script debugger is connected. Please disconnect the debugger to enable asm.js. Ошибка.Полная ошибка : ASM.JS был отключен, потому что отладчик сценария подключен. Пожалуйста, отключите отладчика, чтобы включить Asm.js. Ammo.js (1,1) Script1028: Script1028: ожидаемый идентификатор, строка или число ShadowEditor.js (3948,8) Script5009: «Тень» не определен.
Решение : Tencent Browser не поддерживает ammo.js (webassembly), скомпилированный с помощью Emscripten , рекомендуется использовать Chrome или Firebox .
Структура данных и веб -клиент не изменяются, просто скопируйте ./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 ; Если порт конфликтует, вы можете изменить порты MongoDB и веб -сайтов в resources/app/config.toml .
Установить openssl , и GIT Client уже содержит один; Откройте 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 . Pem является сертификатом, а privatekey.pem - ключ.
MIT Лицензия
Спасибо следующим проектам с открытым исходным кодом.
https://github.com/golang/go
https://github.com/burntsushi/toml
https://github.com/dgrijalva/jwt-go
https://github.com/dimfeld/httptremux
https://github.com/inconshrevail/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-river
https://github.com/facebook/react
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-resolve
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/tweenjs/tween.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/amd-to-as6
https://github.com/chandlerprall/threecsg