ShiVa Developer Forum • View topic - PLUGIN: Text Objects.
 

PLUGIN: Text Objects.

The new ShiVa Asset Store. A forum for product inquiries, reviews, comments and critique.

PLUGIN: Text Objects.

Postby Fraser » 2016-07-07 15:50

Image

This plugin gives you nice text mesh objects to put right into your 3D scene.
Currently Windows/Android only.

9 Format types

Left.
Center.
Right.

Left Justify Space (spaces are widened to justify the text).
Center Justify Space (spaces are widened to justify the text).
Right Justify Space (spaces are widened to justify the text).

Left Justify Scale (Whole line is scaled to justify the text).
Center Justify Scale (Whole line is scaled to justify the text).
Right Justify Scale (Whole line is scaled to justify the text).

Super simple API
Concentrate on writing your game, let this plugin take care of your 3D text needs.
Code: Select all
SD_Text.setAlignemnt ( SD_Text.kAlign_Left )
local hObjNewText, nWidth_m, nHeight_m = SD_Text.createText ( sMyString, nLineHeight_m, nMaxAllowedWidth_m )


Image

The text meshes are made with 1 quad per character (0 for space). Quads are 4 vertex and 6 index each.

Image

Mesh generation is instant, you will not notice any frame drop when you call it.

The returned object can be treated like any other regular 3D model in ShiVa3D:
You can change it's material at runtime using shape.setMeshMaterial ( hText, sMaterialName ).
You can group objects and call scene.combineRuntimeObjectsGroup.
You can call scene.destroyRuntimeObject, etc.

Store link:
Coming soon...
User avatar
Fraser
Platinum Boarder
Platinum Boarder
 
Posts: 1324
Joined: 2012-02-05 19:28
Location: Europe

Re: PLUGIN: Text Objects.

Postby broozar » 2016-07-08 15:54

store link: online :)
http://www.shiva3dstore.com/sdtextobject

neat idea for VR. definitely don't forget to call scene.combineRuntimeObjectsGroup!
User avatar
broozar
Administrator
Administrator
 
Posts: 4163
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: PLUGIN: Text Objects.

Postby Fraser » 2016-07-09 00:16

Thx @broozar!
User avatar
Fraser
Platinum Boarder
Platinum Boarder
 
Posts: 1324
Joined: 2012-02-05 19:28
Location: Europe


Return to Asset Store

Who is online

Users browsing this forum: No registered users and 1 guest

cron