From: Dan Johnston (dan.johnston++at++nrc.gc.ca)
Date: 08/31/2005 08:49:36
I recently did some changes to my applications to allow a
display of an image in the background of any channel.
The low-level draw callback will call glDrawPixels with
the image scaled to fit the display window size of the
pfChannel.
This works fine, but I used copies of the pfdImage code
(found in ../Performer/src/lib/libpfdu ) to load the
image file and pack it into the format needed by
glDrawPixels. (I copied the files and changed them
because - for one thing - the image data is
'malloc' from non-shared memory, not pfMalloc
and therefore not pfDelete.)
I would prefer to use the more general pfTexture.
I have looked at a lot of Performer source code, read
the sections of the manual on textures a few times,
and hacked up some test code. No luck so far.
(Actually I can load the file with pfLoadTexFile
and then call a modified pfdImageFromPfTexture
to change a static image to a usable format.)
Can I get image data from pfTexture in a format
usable by glDrawPixels? I can allow a lot of
initialization time (i.e. image conversion) at start
up of my applications as long as run-time is
still fast. I would prefer to use the pfTexture
image data directly without a run-time conversion
so that I can create features like using a video
stream as the source for my pfTexture.
Thanks for any ideas or help!
Daniel.Johnston++at++nrc.gc.ca
--
___|__ |
/ | \ ||\ Daniel (Dan) Johnston
/___|___\ || \ Dan.Johnston++at++nrc.gc.ca
_____|____ || \ National Research Council of Canada, London, ON
| | | || \ Integrated Manufacturing Technologies Institute
\___| | | ||____\ Tel: (519) 430-7081 Fax: (519) 430-7140
\_o_\___|____|_|______\_ Inst: http://www.nrc.gc.ca/imti
\ o / These opinions are my own! Not those of NRC.
\________________/ Virtual Reality:
http://imti.nrc.gc.ca/vetc_e/vetc_e.html
More Tall Ships - Fewer Computers!
This archive was generated by hypermail 2b29 : Wed Aug 31 2005 - 08:52:00 PDT