[WordPress] 外掛分享: Threepress

前言介紹

  • 這款 WordPress 外掛「Threepress」是 2021-05-19 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2025-02-28,距離現在已有 66 天。
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kerryoco |

外掛標籤

chat | gltf | threejs | 3d model | multiplayer |

內容簡介

輕鬆地在 WordPress 中嵌入 three.js

您可以做什麼:
在任何地方創建 three.js 圖庫

使用 Threepress 管理員中的短代碼生成器創建圖庫,然後將短代碼貼到您想要的任何位置 – 渲染短代碼的 JavaScript 會載入所有公共頁面。

一個圖庫渲染一個 three.js 場景。

要自定義圖庫的佈局或尺寸,請使用 CSS。一個類似 #threepress-gallery- 的 ID 標籤會放置在 元素的包裝器上,或使用 .threepress-gallery / .threepress-gallery canvas 類來定位所有的圖庫。

圖庫渲染程序(three.js 物件)應自動調整以匹配您給定的尺寸,以防止扭曲或模糊。

如果您想要自定義編碼您自己的圖庫,請向下滾動到「JavaScript 開發人員」。

注意事項

所有模型必須採用「.glb」格式 – 大多數 3D 程序可以導出此格式。

它們與其他所有內容一樣存儲在媒體庫中,但可以通過簡單過濾「.glb」擴展名的 Threepress 库輕鬆找到。

對於 JavaScript 開發人員:

在給定頁面上的所有圖庫都可以在全局變數 THREEPRESS 的 galleries 屬性中使用。請參閱 Gallery 類(static/js/ThreepressGallery.js)以獲取有關與這些互動的見解。

原文外掛簡介

Easily embed three.js in WordPress
What you can do:
Create three.js galleries anywhere
Create galleries using the shortcode generator in the Threepress admin, and then paste the shortcode wherever you want – the javascript that renders the shortcodes is loaded on all public pages.
A gallery renders one three.js Scene.
To customize the layout or dimensions of your gallery, use CSS. An id tag of form #threepress-gallery- is put on the wrapper of the element, or use class .threepress-gallery / .threepress-gallery canvas to target all galleries.
The gallery renderer (three.js object) should adjust to match your given dimensions automatically to prevent skewing or blurring.
If you want to custom code your own gallery, scroll down to ‘javascript devs’.
Notes
All models must be in “.glb” format – most 3d programs can export to this.
They are stored in the Media Library like everything else, but can be found easily through the Threepress library, which simply filters for “.glb” extensions.
For javascript devs:
All the galleries on a given page will be available in the global variable THREEPRESS, in the galleries property. See the Gallery class (static/js/ThreepressGallery.js) for insight on interacting with these.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Threepress」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.3.5 | 0.3.6 | 0.3.7 | 0.3.8 | 0.3.9 | 0.4.0 | 0.4.1 | 0.4.2 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.3.0 | 1.4.0 | 1.4.1 | 1.4.2 | 1.5.0 | 1.5.1 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.5 | 1.6.6 | 1.6.7 | 1.7.0 | 1.7.1 | 1.7.2 | 1.7.3 | 1.7.4 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon