ภาษาอังกฤษ / 中文 | 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 มีเพียงคุณสมบัติหลักและ APIs เพิ่มเติมและคุณสมบัติอื่น ๆ จะมีให้ในส่วนขยายเช่น VSCODE เราจะพัฒนาในสาขา dev
https ใน config.tomlonTouchStart , onTouchEnd , onTouchMovethree.js เป็น R130onVRConnected , onVRDisconnected , onVRSelectStart , onVRSelectEndGeometry ไม่สามารถเป็นอนุกรมเนื่องจากการอัพเกรดของ three.jspolygonOffset , polygonOffsetFactor , การตั้งค่าพารามิเตอร์ polygonOffsetUnits การตั้งค่าพารามิเตอร์เพื่อแก้ปัญหาความขัดแย้งเชิงลึกvisibleBin ไม่ได้รับการสนับสนุนอีกต่อไป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 เพื่อติดตั้งการพึ่งพา NODEJSnpm run build เพื่อสร้างเซิร์ฟเวอร์และเว็บbuild/config.toml และแก้ไขโฮสต์และพอร์ต MongoDBnpm start เปิดเซิร์ฟเวอร์ ตอนนี้คุณสามารถเยี่ยมชม: http://localhost:2020https ในไฟล์กำหนดค่า กรุณาเยี่ยมชม: https://localhost:2020เดสก์ท็อปเวอร์ชัน:
MongoDB และเปิดเครื่องซิปในโฟลเดอร์ utils/mongodbnpm run build-desktop เพื่อสร้างแอพเดสก์ท็อปในโฟลเดอร์ build/desktopPowerShell หรือ cmd ในโฟลเดอร์ build เป็นผู้ดูแลระบบ.ShadowEditor install เพื่อติดตั้ง ShadowEditor เป็นบริการ.ShadowEditor start ให้บริการ ShadowEditorhttp://localhost:2020Windows Services Manager./scripts/service_linux/shadoweditor.service ตั้งค่าเส้นทางที่ถูกต้องsudo cp ./scripts/service_linux/shadoweditor.service /etc/systemd/system/sudo systemctl daemon-reload เพื่อโหลดบริการ Daemonsudo 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 public/upload/model และเพิ่มบันทึกในคอลเลกชัน mongoDB _Mesh
เรขาคณิตพื้นฐานรองรับการทำรังหลายระดับ คุณสามารถเพิ่ม group (ในเมนูเรขาคณิต) จากนั้นลากหลายรุ่นไปยัง group ในแผง Hierachy
แก้ไข 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: ตัวระบุที่คาดหวัง, สตริงหรือ number shadoweditor.js (3948,8) script5009: 'Shadow' ไม่ได้กำหนด
วิธีแก้ปัญหา : เบราว์เซอร์ Tencent ไม่รองรับ 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 ในบรรดาไฟล์ที่สร้างขึ้น 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/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-postcsss
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