英語 /中文| Windows Server | Ubuntuサーバー| Webデモ| 公式ウェブサイト
注:サーバーは、内蔵されたmongodbを備えたコンパイルされたバージョンであり、 start.batまたはstart.shを実行してstartを実行し、Google Chromeのhttp://localhost:2020にアクセスします。 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 、またはWindowsのMinGW 、およびgccコマンドラインからアクセスできることを確認してください)注:バージョン番号は参照用です。
GITを使用してソースコードをダウンロードできます。
git clone https://github.com/tengge1/ShadowEditor.git中国では、 github本当に遅いので、代わりにgiteeを使用できます。
git clone https://gitee.com/tengge1/ShadowEditor.gitWebバージョン:
Chinaにいる場合は、 npm run set-proxy GolangとNodejsのプロキシを設定します。npm install実行して、nodejs依存関係をインストールします。npm run buildサーバーとWebを構築します。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: 'Shadow'は定義されていません。
解決策:Tencent Browserは、 Emscriptenとコンパイルされたammo.js (WebAssembly)をサポートしていません。代わりにChromeまたはFirebox使用することをお勧めします。
データ構造とWebクライアントは変更されていません。コピー./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とWebサイトポートをresources/app/config.tomlで変更できます。
opensslをインストールし、Gitクライアントにはすでに1つ含まれています。 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-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