Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

3D Model Viewer

Mô tả

This plugin allows you to show your 3D models easily in your wordpress blog.

Simply upload the model and all files references (eg. textures) to the wordpress media gallery,
add a shortcode to the page where the model should be shown and there you go.

Currently, Collada DAE and OBJ and OBJ/MTL files are supported.
Please file a request for other required file formats.

The 3D stage is highly configurable: Define background, ambient or directional light
as well as the cameras and your models position and scale.

Ảnh màn hình

  • The plugin in action

Cài đặt

Install this plugin from the wordpress plugin directory as usual and activate it.
Add the shortcode [3D], wherever you want your model to appear.
Here are the arguments to this short code:

  • model: name of the model file in the media gallery or full URL. Mandatory. Using OBJ/MTL? – Use the material option below to specify path to the mtl file.
  • width, height: Size of the 3d stage. If in percent, then relative to the size of the div around the canvas. Optional, default is 500×300.
  • background: Background color. Optional, default is “ffffff”.
  • opacity: Background opacity. Optional, default is 1.
  • ambient: Color of ambient light. Optional, default is “404040”.
  • directional: Direction and color of directional light source. Optional, default is “1,1,1:ffffff”
  • modelposition: Point of origin of the model. Optional, default is “0,0,0”.
  • modelscale: Scale of the model. Optional, default is “1,1,1”.
  • class: CSS class of div around canvas. Optional, no default.
  • style: CSS style of div around canvas. Optional, no default.
  • id: id of div around canvas. Optional, default is “stage”.
  • fps: Number of animation frames per second. Optional, default is 30.
  • material: URL of OBJ/MTL file.
  • camera: Camera coordinates, default is 50,50,30.
  • fov: Camera field-of-view in degrees. Default is 75.

ví dụ:

[3D width=”600″ height=”400″ background=”436523″ opacity=”0.5″ model=”dummy1.dae” camera=”50,50,300″ modelposition=”2,2,2″ modelscale=”2,2,2″ ambient=”BBBBBB” directional=”1,1,0:FFFF44″ class=”3d” style=”float: right” id=”coffee” fps=20]

Hỏi đáp

None yet.

Đánh giá

18 Tháng Năm, 2017
As of 4.7.5 this error appeared non-static method WP_3D::register_scripts() should not be called statically in C:\wamp\www\wordpress-4.7.4\wp-includes\class-wp-hook.php on line 298` 4 **** stars because the 3D model did work initally
3 Tháng Chín, 2016
Very much your addition was pleasant. Models look perfectly. Thanks for your work.
Đọc tất cả 6 đánh giá

Người đóng góp & Lập trình viên

“3D Model Viewer” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

1.9

  • Parameter rename: model-scale => modelscale, model-position => modelposition
  • Multiple 3D stages on one page possible
  • New material option for OBJ/MTL
  • New fov-parameter

1.7

  • Find models not attached to page or when full URL is given

1.6

  • Bugfix: Show model without interaction. Timing problem fixed. (I hope;-)
  • Only load scripts when 3D shortcode present on page.
  • Show uploaded models in media manager

1.5

  • OBJ and OBJMTL format supported.
  • Performance tuning: Renders only on demand.

1.3

  • width and size can be reltaive to the size of the div around the canvas (which in turn can be set via CSS).

1.2

  • Performance after moving camera optimized.

1.1

  • CSS class and style and parameters.
  • background opacity parameter.
  • optional id parameter for more than one stage on a page.

1.0.0

First version of the 3D plugin.
Supports DAE files and extensive configuration of the stage.