Hi,
I want to write text, just 2d-, flat text, inside a 3d world scene. Imagine some
writings on a wall, or on a billboard, in the scene. I figure I'm going to use
FTGL, but I don't need 3d text, extruded, or whatever. It's just that the 2d
text on a flat (or cylindrical surface, like wrapped around a lampost for
instance) is seen in perspective, so I guess it needs to be rotated, scaled,
etc.
As I am a total newbie in this, I wonder if someone could point me to an example
of this kind of thing, a demo or sample that would help me find my way through
all the available API's. Right now I'm trying to get the demo that comes with
FTGL to work (not straightforward).
Thx,
Joao
--
Joao Moreira de Sa Coutinho
joao@teaser.fr
|
|
0
|
|
|
|
Reply
|
joao
|
5/18/2008 8:52:01 PM |
|
On May 18, 10:52 pm, joao <j...@teaser.fr> wrote:
> Hi,
>
> I want to write text, just 2d-, flat text, inside a 3d world scene.
>
Make a texture with the text in it...apply the texture
to the object.
--
<\___/>
/ O O \
\_____/ FTB. Remove my socks for email address.
|
|
0
|
|
|
|
Reply
|
fungus
|
5/18/2008 9:59:26 PM
|
|
On May 18, 3:52=A0pm, joao <j...@teaser.fr> wrote:
> I want to write text, just 2d-, flat text, inside a 3d world scene. Imagin=
e some
> writings on a wall, or on a billboard, in the scene. I figure I'm going to=
use
> FTGL, but I don't need 3d text, extruded, or whatever. It's just that the =
2d
> text on a flat (or cylindrical surface, like wrapped around a lampost for
> instance) is seen in perspective, so I guess it needs to be rotated, scale=
d,
> etc.
I use FTGL, but I don't think it supports wrapping text as you
describe. It is easy to use:
#include <FTGL/FTGLTextureFont.h>
FTGLTextureFont *font;
font =3D new FTGLTextureFont("arial.ttf");
font->FaceSize(12);
glEnable(GL_TEXTURE_2D);
font->Render("my text");
glDisable(GL_TEXTURE_2D);
Maybe you could do wrapping with FTGL using some weird modelview
transformation? Or, you could draw the letters one at a time with
increasingly rotated transforms. fungus' FTGLless idea is much better
and easy if you have static text.
- Chris
|
|
0
|
|
|
|
Reply
|
crjjrc
|
5/19/2008 12:36:32 PM
|
|
|
2 Replies
172 Views
(page loaded in 0.047 seconds)
Similiar Articles: Importing blender objects into an OpenGL program - comp.graphics ...... that purposes ;-) (it exports current blender scene into text ... Good exercise for a 3D-modelling/OpenGL beginner. ... Every time I try to import the image it gets put flat ... input & output in assembly - comp.lang.asm.x86... Seattle, WA 20% of the world is real. 80% is gobbledygook we make up inside our own ... create a window and write out text to ... format (use fixed pitch font to view ... A "does global variable exist" function - comp.lang.javascript ...... eval function is still called > from within ... A0 =A0 ; > =A0 =A0 script.text =3D "this ... modules may be out of date, or even flat out ugly, but there's still a world ... Part Numbering Systems for CAD management. - comp.cad.solidworks ...Part of the transition included moving to 3D CAD and ... How you view it has a lot to do with what you come up with. ... numbers with meaning would not work well in today's world ... Need a FORTRAN compiler for Win7 (or XP) - comp.lang.fortran ...... disab le-symvers --disable-werror --prefix=3D ... to change either in the source code or in > options within ... That will depend somewhat on the view you've selected. FAQ -- assembly-language/x86/general/part1 - comp.lang.asm.x86 ...The TSR supports context sensitive help within many ... if there is a god, that there is cancer and not world ... FWIW, I don't view assembly as an application (even ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... How to get envelope from AM signal without phase shift - comp.dsp ...Since the modulation light speed deviation is expected to only occur within a ... function FasterThanLightMovie(phi,Nframes) Phi =3D phi/180*pi; xv =3D [-1 ... 3D view controller in Flash using ActionScript 3 | Adobe Developer ...... to pan, zoom, and move objects within a 3D space. ... Constructing a 3D scene. Flash display objects such as Sprites are flat, even when put in a 3D world. Flat file database - Wikipedia, the free encyclopedia... language designed for the World Wide Web, with an hybrid flat ... the data is stored as text files within the website itself. Otherwise, flat ... Read; Edit; View history 7/30/2012 10:56:47 AM
|