[GRASS-dev] display text in wxNviz
Anna Kratochvílová
KratochAnna at seznam.cz
Fri Jul 8 12:54:47 EDT 2011
Hello,
I recently implemented the north arrow in WxNviz but I have problems with displaying text. You seem to have some experience so I wonder if you could help me. The problem is in the fontbase variable which is needed but I really don't understand what it is and how could I get it. It is calculated in [0] in Togl_LoadBitmapFont function. The north arrow can stay without text but scalebar and legend not, so I need some solution.
Thanks for any help.
Anna
[0] http://trac.osgeo.org/grass/browser/grass/trunk/visualization/nviz/src/togl.c
> ------------ Původní zpráva ------------
> Od: Maris Nartiss <maris.gis at gmail.com>
> Předmět: Re: [GRASS-dev] Re: [SoC] Weekly reports #4 wxNviz
> Datum: 29.6.2011 18:22:15
> ----------------------------------------
> Hello,
> adding coordinates can be a tricky task, as there's no single
> "de-facto" OpenGL text rendering library and such one is required to
> not reinvent the wheel. I was playing a bit around with some of them
> last spring, still had not enough time to find fast to implement and
> easy solution (and I'm not an OpenGL coder). We will have to decide
> which one to use to get text into NVIZ scene (FTGL?).
>
> If getting some text to be displayed is not that hard task, still I
> would strongly suggest to go for more. And by more I mean - unicode
> and TTF (or similar) font support for any text rendering to allow
> later on work on vector labels, user placed labels and signs.
>
> Just my 0.02 and no code :(
> Maris.
>
> 2011/6/29 Helena Mitasova <hmitaso at ncsu.edu>:
> > Anna,
> >
> > I just tested the latest updates and everything (light sphere, fringe,
> constant elevation, cutting planes) works great on Mac.
> > Looking at the wxnviz wiki http://grass.osgeo.org/wiki/WxNviz it seems that
> you have now resolved all known issues
> > (and it is only june!) so you can cross them out. Lot of the features (such as
> draping color, changing elevation of the constant plane, etc.)
> > are now much easier to use and faster as well.
> > I still need to test the volumes and the decorations that you might not have
> looked at yet.
> >
> > One thing that came to mind when I was doing some figures for publications was
> the possibility to add ticks with
> > coordinates to the fringe x,y,z axes - I am wondering how difficult it would
> be.
> >
> > Helena
> >
> > On Jun 24, 2011, at 10:48 AM, Anna Kratochvílová wrote:
> >
> >> Hi,
> >>
> >> 1) What do I have completed this week?
> >>
> >> I added new nviz features in workspace (light, view, constant planes). It
> took quite a lot of time to make it work properly.
> >> I will add other features continuously.
> >>
> >>
> >> 2) What am I going to achieve for next week?
> >> It seems that thematic points will be postponed. So I will follow the project
> plan (update nviz_cmd) and I will keep fixing bugs.
> >>
> >> 3) Is there any blocking issue?
> >> No
> >>
> >>
> >> Anna
> >> _______________________________________________
> >> SoC mailing list
> >> SoC at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/soc
> >
> > _______________________________________________
> > grass-dev mailing list
> > grass-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-dev
> >
>
>
>
More information about the grass-dev
mailing list