Skip to content

Releases: felixmariotto/three-mesh-ui

hiddenOverflow + (InlineImage => InlineBlock)

04 Jun 18:15
Compare
Choose a tag to compare

Big changes in this release :

  • new attribute : hiddenOverflow. It's like the CSS overflow: 'hidden', see live example here. It can be used to scroll a big page inside a smaller container, an example of this is coming shortly.

  • InlineImage is discontinued, in favor of a more versatile InlineBlock, that can potentially include more Blocks and InlineBlocks inside itself. Of course it can also be used to display an inline image, like in this example

  • It's been a tough choice, but I've decided to discontinue fontMaterial, backgroundMaterial, and geometry Text. Now all materials are generated internally by three-mesh-ui, which was necessary for hiddenOverflow. It's also more performant, and will allow more cool things in the future.

  • To replace fontMaterial and backgroundMaterial, there is now fontColor and fontOpacity to control a font style, and backgroundColor, backgroundOpacity and backgroundTexture to control the background style.

v3.3.1...v4.0.0

InlineImage

31 May 20:31
Compare
Choose a tag to compare

keyboard Russian layout + performance improvement

29 May 11:05
Compare
Choose a tag to compare
  • add Russian layout to the keyboard
  • update keyboard example to showcase all the layouts
  • fix some issues in UpdateManager, improved performance a bit

v3.1.0...v3.2.0

keyboard component + improved performance

25 May 15:35
Compare
Choose a tag to compare
  • Add a Keyboard component, which is at the moment the more advanced VR keyboard for Three.js. It supports French and English layouts, Russian coming soon.

  • From now on, components updates will only happen when triggered by ThreeMeshUI.update(). This improves a lot the performance, because it avoid updating a component twice unnecessarily. Most of the time you will want to add ThreeMeshUI.update() in your loop function, before renderer.render().

v2.2.0...v3.0.0

borderRadius + backgroundSize

23 May 14:03
Compare
Choose a tag to compare
  • It's now possible to set the borderRadius property of a Block, which will create a nice rounded corner (like CSS property border-radius)

  • Another new attribute : backgroundSize. Like the CSS property background-size, allows you to make a texture stretch or fit the Bock border, contained or not.

  • Important bug fix : fix the centering of MSDF text

v2.1.0...v2.2.0

Components inherit from THREE.Object3D

21 May 17:33
Compare
Choose a tag to compare
  • Components now inherit from THREE.Object3D, so you can now use your UI components exactly like you are used to :
    Block.position.set( 0, 1.6, 0 )
    Block.rotation.x = Math.PI / 5
    Block.visible = false
    Block.traverse( function )
    raycaster.intersectObject( Block )

  • Update VRControl.js, so that raycasting is done in the examples

  • Update the buttons example raycasting accordingly.

  • Update all the examples, so that the root Block is added to the Scene directly, without a THREE.Group container

v2.0.0...v2.1.0

re-organization

20 May 17:37
Compare
Choose a tag to compare
  • Reorganize the src directory
  • Now only one Text class, use textType attribute to choose a text type (geometry or MSDF so far)
  • Set fontColor and fontOpacity attributes to customize MSDF fonts

v1.3.0...v2.0.0

Support MSDF font for heavy text rendering

14 May 16:27
Compare
Choose a tag to compare
  • update examples to showcase MSDFText aae50a4
  • makes carriage return width less 7986457
  • center MSDFText vertically 60e107f
  • fix z-fighting with white space glyphs 845cb57
  • fix carriage return f3551b3
  • give carriage return zero width 759b42f
  • fix horizontal spacing 04d776e
  • fix error glyph index 0552d6a
  • upload font textures in FontLibrary df2b37a
  • first step adding msdf glyphs to the scene 416aa9c
  • check for white space, tabs and line break 0ba72ec
  • create MSDFText object, and modify FontLibrary to differentiate between typeface and MSDF fonts 3ddc07a
  • add three-bmfont-text to dependencies ea7f118

v1.2.2...v1.3.0