영어 / 中文 | Windows Server | 우분투 서버 | 웹 데모 | 공식 웹 사이트
참고 : 서버는 MongoDB가 내장 된 컴파일 된 버전으로, start.bat 또는 start.sh 시작하고 http://localhost:2020 방문하여 Chrome을 방문하십시오. Windows 버전에는 Visual C++ Redistributable for Visual Studio 2015 가능합니다.
좋은 소식! vite4 + vue3 + ts5 + ant-design-vue7을 기반으로 한 버전이 곧 출시 될 예정입니다. 자세한 내용을 보려면 여기를 클릭하십시오.
오픈 소스 버전
프로 버전
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 또는 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 실행하십시오.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 에서 데스크탑 앱을 빌드하십시오.build 폴더에서 관리자로서 PowerShell 또는 cmd 엽니 다..ShadowEditor install.ShadowEditor start .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 컬렉션에 레코드를 추가합니다.
기본 형상은 여러 레벨의 중첩을 지원합니다. group 추가 한 다음 Hierachy 패널의 group 으로 여러 모델을 드래그 할 수 있습니다.
config.toml 편집하고 authority.enabled 설정 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는 Emscripten 으로 컴파일 된 ammo.js (WebAssembly)를 지원하지 않으므로 대신 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 클라이언트에는 이미 하나가 포함되어 있습니다. 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 이 핵심입니다.
MIT 라이센스
다음 오픈 소스 프로젝트 덕분에.
https://github.com/golang/go
https://github.com/burntsushi/toml
https://github.com/dgrijalva/jwt-go
https://github.com/dimfeld/httptreemux
https://github.com/inconshreveable/mousetrap
https://github.com/json-eritorator/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/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-1ode-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