Code

WP 3D Thingviewer

WP 3D Thingviewer


Description

This plugin provide a fully customizable 3D model files viewer to embedd your models on your Wordpress pages or posts.

You can load models into Wordpress media and then, by using the plugin shortcode generator, you can embed the thingviewer into you pages or posts.

The models are NOT EMBEDDED from Thingiverse-like website but HAVE TO BE on your own website.

In the thingviewer you can pan, rotate and zoom the camera (with mouse or keyboard).

A set of option buttons are provided to let you access some useful information (like the help for the available commands and and information window) and to enable functions like the full-screen mode and the auto-rotation camera mode.

It is possible to display a model dowload button that allow the user to donwload the model file for the loaded model.

The link can be “cloaked”, to prevent the leechers to crawl the link from the website

Customizations of the thingviewer appearance and functionalities can be done from configuration page.

NOTE: the plugin is intended to display 3D print models, without textures. The model color will be replaced with the color from the plugin configuration page.



Features List

  • Insert multiple thingviewers into the same page or post
  • Support multiple model file formats (STL, OBJ, FBX)
  • Ease of use via shortcode button generator (Classic Editor)
  • Mobile support
  • Customizable thingviewer appearance (fog color, model color, plane and grid color, bounding box color, loading icon and text color)
  • Control buttons visibility and appearance (background color, icon color)
  • Display download button the model file, with “link cloaking” capability
  • Camera autorotation rotation to “animate” the loaded model with Z-axis rotaion
  • Info window information visilibity (model filename, model size in KBytes, model triangles number, model surface area in cm2, model volume in cm3, model bounding box size in cm)
  • Fully translatable via .PO files
  • Plugin configuration page (made with Wordpress Settings API)
  • Built on Wordpress Plugin Boilerplate by Tom McFarlin.

Multiple model file support

The plugin support 3d model in STL (ascii or binary), OBJ or FBX file formats.

Mobile Support

The plugin is fully usable from mobile devices.

Multiple Thingviewers

You can insert multiple thingviewers in the same page o post or custom post.

Each thingviewer will share the same configuration settings, but can display different models.

Control Buttons



On the thingviewer is control buttons bar with buttons that let you

  • display the model info window, the bounding box and the help window
  • activate the autorotation mode
  • display the model bounding box
  • toggle the fullscreen mode
  • donwload the loaded model file

The appearance and the display of the buttons is configurable from the plugin configuration page.

Info Window


You can display a window with some useful informations about the loaded model, like model filename, model size in KBytes, model triangles number, model surface area in cm2, model volume in cm3, model bounding box size in cm.

It is possible to customize the displayed data and colors from the configuration page.

Bounding Box

You can display the bounding box that conain the loaded model.

The color of the bounding box is customizable from the configuration page.



Configuration Page

The plugin provide a configuration setting page where you can customize colors, buttons and typography.





by
by
by
by
by
by