Bahasa Inggris / 中文 | Windows Server | Ubuntu Server | Demo web | Situs web resmi
Catatan: Server adalah versi yang dikompilasi dengan MongoDB bawaan, Execute start.bat atau start.sh untuk memulai, dan kunjungi http://localhost:2020 di Google Chrome. Versi Windows membutuhkan Visual C++ Redistributable for Visual Studio 2015 .
Kabar Baik! Versi berdasarkan Vite4 + Vue3 + TS5 + Ant-Design-Vue7 akan segera hadir. Klik di sini untuk melihat detail lebih lanjut.
Versi Sumber Terbuka
Versi Pro
Mulai dari v0.6.1 , ShadowEditor hanya menyediakan fitur inti dan API yang diperluas, dan fitur lainnya akan disediakan dalam ekstensi, sama seperti VScode. Kami akan berkembang di cabang dev .
https di config.toml .onTouchStart , onTouchEnd , onTouchMove .three.js ke R130.onVRConnected , onVRDisconnected , onVRSelectStart , onVRSelectEnd .Geometry tidak dapat diserialisasi karena peningkatan three.jspolygonOffset material, polygonOffsetFactor , polygonOffsetUnits Parameter Visualisasi Pengaturan untuk menyelesaikan masalah konflik kedalaman.visible .Bin tidak lagi didukung.prototype ke class ES6 dalam kode sumber.Berikut ini hanya diperlukan saat Anda ingin membangun dari sumber.
tdm-gcc , MinGW-w64 atau MinGW di Windows, dan pastikan gcc dapat diakses melalui baris perintah)Catatan: Nomor versi hanya untuk referensi.
Anda dapat menggunakan git untuk mengunduh kode sumber.
git clone https://github.com/tengge1/ShadowEditor.git Di Cina , github sangat lambat, Anda dapat menggunakan gitee sebagai gantinya.
git clone https://gitee.com/tengge1/ShadowEditor.gitVersi Web:
China , jalankan npm run set-proxy untuk mengatur proxy Golang dan Nodejs.npm install untuk menginstal dependensi nodej.npm run build untuk membangun server dan web.build/config.toml , dan ubah host dan port MongoDB.npm start luncurkan server. Anda sekarang dapat mengunjungi: http://localhost:2020 .https di file config. Silakan kunjungi: https://localhost:2020 .Versi desktop:
MongoDB dan unzip di folder utils/mongodb .npm run build-desktop untuk membangun aplikasi desktop di folder build/desktop .PowerShell atau cmd di folder build sebagai administrator..ShadowEditor install untuk menginstal Shadoweditor sebagai layanan..ShadowEditor start Mulai Layanan ShadowEditor.http://localhost:2020 .Windows Services Manager ../scripts/service_linux/shadoweditor.service , atur jalur yang benar.sudo cp ./scripts/service_linux/shadoweditor.service /etc/systemd/system/ .sudo systemctl daemon-reload untuk memuat ulang daemon layanan.sudo systemctl start shadoweditor untuk memulai layanan.sudo systemctl enable shadoweditor ke Layanan Mulai Otomatis. 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 dan Visual Studio Code . ESLint, Go, Shader languages support for VS Code, TOML Language Support.
Penggunaan skrip 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 adalah proyek untuk pengguna dan pengembang. Anda dapat berkontribusi dan mencoba ide Anda di proyek ini. Tidak ada pensiun, tapi sangat menyenangkan. Untuk berkontribusi, Anda harus:
Catatan: Jangan mengirimkan binari besar, atau Pull Request dapat ditolak. Jika diperlukan, Anda dapat menambahkan file atau direktori untuk diabaikan ke file .gitignore .
Anda perlu mengompres aset model ke dalam file zip , dan file entri tidak dapat bersarang di folder. Server akan mendekompres dan meletakkannya di folder ./build/public/Upload/Model , dan tambahkan catatan di koleksi MongoDB _Mesh .
Geometri dasar mendukung berbagai tingkat sarang. Anda dapat menambahkan group (di menu geometri), dan kemudian seret beberapa model ke group di panel Hierachy .
Edit config.toml dan atur authority.enabled ke true . Nama pengguna administrator default adalah admin dan kata sandi 123456 .
asm.js has been disabled because the script debugger is connected. Please disconnect the debugger to enable asm.js. Kesalahan.Kesalahan Lengkap : ASM.JS telah dinonaktifkan karena skrip debugger terhubung. Harap lepaskan debugger untuk mengaktifkan asm.js. Ammo.js (1,1) Script1028: Script1028: Identifier yang diharapkan, string atau angka ShadowEditor.js (3948,8) Script5009: 'Shadow' tidak ditentukan.
Solusi : Tencent Browser tidak mendukung ammo.js (WebAssembly) yang dikompilasi dengan Emscripten , disarankan untuk menggunakan Chrome atau Firebox sebagai gantinya.
Struktur data dan klien web tidak diubah, cukup salin ./ShadowEditor.Web/Upload/ folder untuk build/public/Upload/ .
Windows memerlukan Visual C++ Redistributable for Visual Studio 2015 . Anda dapat menginstal dari: https://www.microsoft.com/en-us/download/details.aspx?id=48145
Jika versi desktop tidak dapat dibuka, Anda dapat melihat logs.txt ; Jika port bertentangan, Anda dapat memodifikasi port mongoDB dan situs web di resources/app/config.toml .
Instal openssl , dan klien git sudah berisi satu; Buka cmd , Powershell atau shell , dan jalankan perintah berikut:
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 Di antara file yang dihasilkan, certificate.pem adalah sertifikat, dan privatekey.pem adalah kuncinya.
Lisensi MIT
Berkat proyek open source berikut.
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-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/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