Threepress

Description

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-[gallery name] is put on the wrapper of the <canvas> 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.

Screenshots

  • A GUI for quickly creating scenes, with many features planned to be added
  • Added in v1.0 - heightmaps, fog and sunlight

Installation

The plugin will create one database table to store your galleries:
threepress_shortcodes,

This remains in place upon deactivation, so if you want to remove it you must do so manually.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Threepress” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Threepress” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.1

  • Initial release.

0.2

  • server: allow for various db prefixes
  • client: upgrade http model loads to match location

0.3

  • switch to js generated gallery form for portability

0.3.1

  • support integration with Threepress for Woocommerce

0.4.0

  • Sun added
  • wp.media include fixed
  • editor form polish

0.4.1

  • bloom effect added

0.4.2

  • version fix

1.0.0

  • core features added to editor – fog, heightmaps, shadows. Also editor UI update.

1.0.1

  • allow 10x more model ‘float’ granularity for ground contact

1.0.2

  • cleaner cam / light / ground positioning code, and bugfixes
  • UI tweaks

1.0.3

  • added snow
  • saving coordinates bugfix

1.1.0

  • ambient lights
  • animations

1.1.1

  • animation GUI bugfixes

1.1.2

  • animation display bugfix
  • multiple threejs versions