realbasic-games
[Top] [All Lists]

[ANN] Text3D beta 2

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: [ANN] Text3D beta 2
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Fri, 31 Mar 2006 22:14:39 -0800
Delivered-to: realbasic-games at lists dot realsoftware dot com
Here is my new Text3D class (5 hours of work). It now builds everything into a single trimesh.

Download:
http://www.miensoftware.com/files/rb/text3dclassbeta.zip

It is very easy to use: just load all the characters first, then call Text3DManager.build. You can create the Text3D objects like this: myText3D =new Text3D(text as string, [textStyle as TextStyle3D] , [wrapWidth as integer])

Here is how to do multiple styles in one Text3D object:
myText3D.style=Text3DManager.GetTextStyle("myStyleType1")
myText3D.setText "This is one style."+chr(13)
myText3D.style=Text3DManager.GetTextStyle("myStyleType2")
myText3D.append "Here is another style."

Seems easy enough? Currently the height and width property of a Text3D object does not yet work. Please test for bugs and give me feedback.

Features:
- supports multiple styles (can be mixed using the append method)
- supports multiple lines
- supports text wrapping
- change text dynamically

More to come:
- load TextStyle3D directly from a single file
- overlay and position text in a RB3D space
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • [ANN] Text3D beta 2, Lo Saeteurn <=