Re: Loading simple text.flt into perfly

New Message Reply Date view Thread view Subject view Author view

Simon Mills (simon++at++wgs.estec.esa.nl)
Tue, 30 Nov 1999 10:03:00 +0100


Guillermo,

the OpenFlight loader does not support "text" records. This is noted in
the OpenFlight pf loader README file
/usr/share/Performer/src/lib/libpfdb/libpfflt/README.FLT.R15_3, see
below:

<snip>

----------------------------------------------------------
| MultiGen OpenFlight features NOT supported |
----------------------------------------------------------
  
- header attributes are ignored, except:
        - format revision
        - database units
        - projection type
  
- text beads are ignored
^^^^^^^^^^^^^^^^^^^^^^^^
  
- linestyle palette is ignored

<snip>

You will have to make your text normal geometry (polygon) nodes. I'm not
quite sure how you do that though. Hope this helps.

"Guillermo E. Gutierrez" wrote:
>
> Hi pfGurus,
> I've created a very basic text.flt file (using homegrown code) which I
> can't get loaded into perfly. I'm just starting out with this, so any
> help and suggestions would be greatly appreciated.
>
> The file (which follows the 15.4 OpenFlight spec) contains the
> following records in this order:
> Header record
> ColorTable record
> Group Record
> Push Record
> Group Record
> Push Record
> Text Record
> Comment Record
> Pop Record
> Pop Record
>
> The Comment Record contains a single text string and the Text Record's
> Font name parameter points to paradigmfont.dat. I can see a scene
> graph in perfly (which I think is a generic scene graph, because the
> second Group node has no children), but there's nothing on the
> screen. My questions are: 1) is this the right order of records for
> a basic text flight file? and 2) What is the best way of annotating an
> OpenFlight database with text (2d or 3d)?
>
> Thank you much,
> -guillermo
> ggutierr++at++harris.com
>
> What follows is perfly output:
> -------
> PF Info: pfdLoadFile_flt: database text.flt
> PF Info/Resource: loading file text.flt
> PF Notice/Assert: convTree(Group1) unexpected record 95
> "text" found.
> PF
> PF Info: OpenFlight geometry:
> PF Performer geometry:
> PF Libpr data:
> PF
> PF Info: OpenFlight hierarchy:
> PF Groups: 2
> PF Performer hierarchy:
> PF Groups: 1
> PF Cleaned: 2
> PF Scene-graph statistics:
> PF loading time: 0.131
> sec
> PF
> PF Info: pfdMakeShared optimizing traversal
> PF Unique state objects:
> PF None
> PF Redundant state objects:
> PF None
> PF Performance statistics:
> PF Elapsed time: 0.000 sec
> PF
> PF Info: pfdCombineLayers optimizing traversal
> PF Performance statistics:
> PF Elapsed time: 0.000 sec
> PF
> PF Info: pfdMakeSharedScene scene pfGeoState
> traversal
> PF Performance statistics:
> PF pfGeoStates: 0
> PF Elapsed time: 0.000 sec
> PF
> PF Info: pfuCollideSetup collision traversal
> PF Intersection data is cached
> PF Elapsed time: 0.000 sec
> PF
> PF Info: Total scene-graph statistics
> PF Scene-graph statistics:
> PF loading time: 0.342
> sec
> PF
> PF Info: Initialized 1 Pipe
> PF
> PF Info: pfuDownloadTexList texture processing
> PF Download totals
> PF Textures: 0
> PF Elapsed time: 0.000 sec
> PF
> PF Info: scaleFonts 1.00 - Load: 1.41 secs
> PF Info(33): Initialized 1 Channel
> PF
> PF Info: pfuRunProcOn() - Process 20194 running
> on CPU 0.
> PF Info: X input process 20194 running for
> channel 0
> PF Notice: Using 72Hz video rate.
> PF Info: Asynchronous X Input process 20194
> opened on Display :0.0
> PF Info: scaleFonts 0.99 - Load: 0.87 secs
> PF Info: scaleFonts - Make Font Bitmaps: 0.19
> secs
> PF Notice/Usage: OpenGL Error 0x501 - invalid value
> PF Notice/Usage: OpenGL Error 0x501 - invalid value
> PF Notice/Usage: OpenGL Error 0x501 - invalid value
> ...(goes on forever)

-- 
Regards, Simon
________________________________________________________________________

Simon Mills Silicon Worlds S.A. c/o Modelling & Simulation Section (TOS-EMM) Tel: +31 (0)71 565 3725 European Space Agency (ESA/ESTEC) Fax: +31 (0)71 565 5419 Postbus 299, 2200AG Noordwijk e-mail: simon++at++wgs.estec.esa.nl The Netherlands http://www.estec.esa.nl/wmwww/EMM ________________________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Nov 30 1999 - 01:03:41 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.