* Text in OpenGL
@ 2007-10-07 4:00 Orlin Grigorov
2007-10-07 4:29 ` [Caml-list] " Jon Harrop
2007-10-07 8:42 ` Vu Ngoc San
0 siblings, 2 replies; 7+ messages in thread
From: Orlin Grigorov @ 2007-10-07 4:00 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
I've been struggling with this one. I'm developing an application, and I'm
using the gtkgl.area, and drawing some OpenGL renderings with lablgl.
Please, any suggestions on the best way to display text? Anything
available already, especially some texture mapped text libraries that I can
use?
Thank you in advance. Although this is my first post, I'm a very frequent
reader of this list!
Cheers,
Orlin
[-- Attachment #2: Type: text/html, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 4:00 Text in OpenGL Orlin Grigorov
@ 2007-10-07 4:29 ` Jon Harrop
2007-10-07 8:42 ` Vu Ngoc San
1 sibling, 0 replies; 7+ messages in thread
From: Jon Harrop @ 2007-10-07 4:29 UTC (permalink / raw)
To: caml-list
On Sunday 07 October 2007 05:00:56 Orlin Grigorov wrote:
> I've been struggling with this one. I'm developing an application, and I'm
> using the gtkgl.area, and drawing some OpenGL renderings with lablgl.
> Please, any suggestions on the best way to display text? Anything
> available already, especially some texture mapped text libraries that I can
> use?
>
> Thank you in advance. Although this is my first post, I'm a very frequent
> reader of this list!
Our Smoke Vector Graphics library is a high-performance renderer of arbitrary
2D vector graphics with high-resolution real-time zooming and panning of
vector scenes. In particular, it contains facilities for rendering the
computer modern fonts. See the third demo in the distribution for an example:
http://www.ffconsultancy.com/products/smoke_vector_graphics/
You can fill and stroke the font glyphs, of course. We also have mathematical
typesetting code if you need it (and have a budget!).
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 4:00 Text in OpenGL Orlin Grigorov
2007-10-07 4:29 ` [Caml-list] " Jon Harrop
@ 2007-10-07 8:42 ` Vu Ngoc San
2007-10-07 19:08 ` Orlin Grigorov
1 sibling, 1 reply; 7+ messages in thread
From: Vu Ngoc San @ 2007-10-07 8:42 UTC (permalink / raw)
To: Orlin Grigorov; +Cc: caml-list
Orlin Grigorov a écrit :
> I've been struggling with this one. I'm developing an application, and
> I'm using the gtkgl.area, and drawing some OpenGL renderings with
> lablgl. Please, any suggestions on the best way to display text?
> Anything available already, especially some texture mapped text
> libraries that I can use?
>
> Thank you in advance. Although this is my first post, I'm a very
> frequent reader of this list!
>
> Cheers,
>
> Orlin
>
well it is possible to use sdl for this. There are functions for reading
any truetype font file you have into a sdlvideo image. It actually
directly renders any string to an image. Then you have to convert it to
an opengl texture. It is not so difficult. Of course, since you are
actually using gtkgl this may sound a bit circumvoluted, and there is
probably a simpler way to do it. (?)
San
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 8:42 ` Vu Ngoc San
@ 2007-10-07 19:08 ` Orlin Grigorov
2007-10-07 21:17 ` Chris Campbell
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Orlin Grigorov @ 2007-10-07 19:08 UTC (permalink / raw)
To: Vu Ngoc San; +Cc: caml-list
[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]
Thank you all for the suggestions. Yes, the Smoke Vector Graphics library
looks like is extremely professional and good job. Still, I need something
easy and small, and I thought more about the "image to texture" suggestion,
and I think I found something, which will definitely work good for my
purposes. I decide to give it a try by going through latex, which will
produce a dvi file, then use "convert" to make it into a suitable format for
importing into an OpenGL texture.
What do you think?
On 10/7/07, Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr> wrote:
>
> Orlin Grigorov a écrit :
> > I've been struggling with this one. I'm developing an application, and
> > I'm using the gtkgl.area, and drawing some OpenGL renderings with
> > lablgl. Please, any suggestions on the best way to display text?
> > Anything available already, especially some texture mapped text
> > libraries that I can use?
> >
> > Thank you in advance. Although this is my first post, I'm a very
> > frequent reader of this list!
> >
> > Cheers,
> >
> > Orlin
> >
>
>
> well it is possible to use sdl for this. There are functions for reading
> any truetype font file you have into a sdlvideo image. It actually
> directly renders any string to an image. Then you have to convert it to
> an opengl texture. It is not so difficult. Of course, since you are
> actually using gtkgl this may sound a bit circumvoluted, and there is
> probably a simpler way to do it. (?)
>
> San
>
>
[-- Attachment #2: Type: text/html, Size: 1929 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 19:08 ` Orlin Grigorov
@ 2007-10-07 21:17 ` Chris Campbell
2007-10-07 21:59 ` Jon Harrop
2007-10-08 8:14 ` Vu Ngoc San
2 siblings, 0 replies; 7+ messages in thread
From: Chris Campbell @ 2007-10-07 21:17 UTC (permalink / raw)
To: Orlin Grigorov; +Cc: caml-list
For a simple alternative you could also try using something like
http://tdb.fi/ttf2png.shtml to generate a mosaic texture which you can
then load and plaster on some quads.
Regards,
Chris
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 19:08 ` Orlin Grigorov
2007-10-07 21:17 ` Chris Campbell
@ 2007-10-07 21:59 ` Jon Harrop
2007-10-08 8:14 ` Vu Ngoc San
2 siblings, 0 replies; 7+ messages in thread
From: Jon Harrop @ 2007-10-07 21:59 UTC (permalink / raw)
To: caml-list
On Sunday 07 October 2007 20:08:27 Orlin Grigorov wrote:
> Thank you all for the suggestions. Yes, the Smoke Vector Graphics library
> looks like is extremely professional and good job. Still, I need
> something easy and small, and I thought more about the "image to texture"
> suggestion, and I think I found something, which will definitely work good
> for my purposes. I decide to give it a try by going through latex, which
> will produce a dvi file, then use "convert" to make it into a suitable
> format for importing into an OpenGL texture.
>
> What do you think?
Yes. You might find it easier to render using Smoke (just tweak the demo) and
capture the glyphs as pixmaps using OpenGL.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Text in OpenGL
2007-10-07 19:08 ` Orlin Grigorov
2007-10-07 21:17 ` Chris Campbell
2007-10-07 21:59 ` Jon Harrop
@ 2007-10-08 8:14 ` Vu Ngoc San
2 siblings, 0 replies; 7+ messages in thread
From: Vu Ngoc San @ 2007-10-08 8:14 UTC (permalink / raw)
To: Orlin Grigorov; +Cc: Vu Ngoc San, caml-list
Orlin Grigorov a écrit :
> Thank you all for the suggestions. Yes, the Smoke Vector Graphics
> library looks like is extremely professional and good job. Still, I
> need something easy and small, and I thought more about the "image to
> texture" suggestion, and I think I found something, which will
> definitely work good for my purposes. I decide to give it a try by
> going through latex, which will produce a dvi file, then use "convert"
> to make it into a suitable format for importing into an OpenGL texture.
>
> What do you think?
>
I have done this too, it works quite well. Instead of convert I used the
pgnalpha device of gs, which is very good for managing transparency.
Then I loaded the image into GL using SDL, which, in your case, should
probably be done differently.
Good luck
San
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-08 8:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-07 4:00 Text in OpenGL Orlin Grigorov
2007-10-07 4:29 ` [Caml-list] " Jon Harrop
2007-10-07 8:42 ` Vu Ngoc San
2007-10-07 19:08 ` Orlin Grigorov
2007-10-07 21:17 ` Chris Campbell
2007-10-07 21:59 ` Jon Harrop
2007-10-08 8:14 ` Vu Ngoc San
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox