***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***


As Tim says, the problem is in clib/ogl_bitmap_character.c. I have found that changing this code to use the standard glutBitmapCharacter routine instead of its own ogl_bitmap_character makes it work (under Fedora Core 4 Linux, anyway). Try replacing your clib/ogl_bitmap_character.c with the following:

==========================================================================

/*
   OpenGL bitmap string output.

   Copyright (C) 1998 Per Kraulis
     6-Feb-1998  first attempts
*/

/* public ====================
#include <GL/glut.h>
==================== public */

#include <assert.h>


/*------------------------------------------------------------*/
void
ogl_bitmap_string (void *font, char *str)
     /*
       Output the string using the given GLUT bitmap font.
       The font must be a GLUTbitmapFont.
       The raster position must be defined.
     */
{
  /* pre */
  assert (font);
  assert (str);

  for ( ; *str; str++) glutBitmapCharacter (font, *str);
}

=====================================================================

Marian Szebenyi
MacCHESS


Tim Fenn wrote:
***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***


On Tue, May 16, 2006 at 08:19:16AM -0700, Ethan A Merritt wrote:

On Tuesday 16 May 2006 06:41 am, Danny G Smith wrote:

I can get molscript to compile, but have problems getting the labels to print. It is in the input file, but it does not get rendered in the output. There are no error messages. It appears to be an issue with molscript, not with render, as we have tested the output from an sgi machine, using render on linux.

Funny you should mention that.  Ron Stenkamp brought the same problem
to my attention last week, thinking that it was a problem with render.
After some poking around, we established conclusively that the labels
were never making it into the Raster3D input file.
Furthermore, if I recall correctly, the same molscript executable
would produce labels when run on one machine but not another
(Ron - please fill in details!).

So I concluded that the problem was actually in some support library,
but I do not know which one that would be.



Ah, I remember this one now.  clib/ogl_bitmap_character.c contains
BitmapFonts, which are deprecated/broken in freeglut.  I changed this
to just use raster3d object types 10/11/12, so I've been thinking of
everything in terms of label3d.  povscript+ has the fix, if its of any
value.

-Tim

Reply via email to