الإنجليزية / 中文 | 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 سيأتي قريبًا. انقر هنا لعرض المزيد من التفاصيل.
نسخة مفتوحة المصدر
نسخة محترفة
بدءًا من v0.6.1 ، يوفر ShadowEditor فقط ميزات أساسية وواجهة برمجة التطبيقات الموسعة ، وسيتم توفير ميزات أخرى في الامتدادات ، تمامًا مثل 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 لتثبيت Shadoweditor كخدمة..ShadowEditor starthttp://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 (في قائمة الهندسة) ، ثم اسحب نماذج متعددة إلى group في لوحة Hierachy .
تحرير 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.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 بالفعل على واحد ؛ افتح 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 من بين الملفات التي تم إنشاؤها privatekey.pem certificate.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/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-work
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/shaderparticlengine
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