≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Draw text
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]VP[/b] wrote: Not 100% sure what you mean - can you explain a little more of what you;re trying to achieve please? As mentioned, "draw text" does already exist as part of the SetSceneNodeProperty API. If you create a single 2D overlay, set it to "do not draw background", then you can use Java script or commands to display any text you like on the same overlay (any size/font/colour/position etc) - ie: dynamically re-use the same overlay for all your text, rather than creating separate overlays for each of your different texts. You can even read a text file and dump that to the 2D overlay or display changeable "variable" values by enclosing them in dollar-signs: $text$ For example, the following scene node parameters are adjustable: 'Pos X (percent)', 'Pos Y (percent)', 'Width (percent)', 'Height (percent)', 'Pos X (pixels)', 'Pos Y (pixels)', 'Width (pixels)', 'Height (pixels)', 'Alpha', 'Image', 'Background Color', 'Draw Text', 'TextColor', 'Text'. You can update the overlay at specific intervals (every few miliseconds) or trigger the update as a triggered event. Depending what you want to achieve, there are a few different methods of applying text. With a little thought and creativity, it's possible to make a scrolling effect or a typewriter effect with just a basic 2D overlay and text strings. Of course, you're not limited to using just 2D overlays for text. For more creativity, you can, for example, create 3D modelled alphabet and type in 3D if you wanted to (with individually spinning/scaling/bouncing letters/dynamic lighting or normal mapping) - or use a sprite sheet for bitmap-fonts which could then be mapped to a billboard or a texture etc with colour ripples, pixel morphs, and flash effects. Personally, I use billlboards with bitmap fonts to scale the text in and out of the screen and can apply fancy warps/transitions/fades and wobbles etc. and I use 2D overlays for Head-up displays and variable information. Haven't used a 3D text font yet but may incorporate it at some point.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact