I just wrote a small converter for PPM images to SFImage. PPM is a
very popular graphics exchange format, many programs can convert to
(at least under Unix).
I put the C source code and an example world (with a texture cesated
this way) onto ftp://iicm.tu-graz.ac.at/pub/Hyper-G/VRweb/utils.
Note: the ftp directory is mirrored to all sites where you can
download VRweb (see URL in 'sig).
C> Oh & what kind of compression ratios does GZIP get with a SFimage table? Is
C> it decent? I mean, it's tabular hexidecimal data right, shouldn't that be
C> just the sort of thing that compression algorythms were cesated for?
The example file was a 3.8 KB gif, and produced a 5.3 KB world,
gzipped to 739 Bytes (ratio of 87 %). This may be not a typical
example as it containes a number of black pixels.
So keep in mind that this way is only appropriate for small logos.
enjoy,
| DI Michael Pichler ______ [email protected] |
| IICM, Graz Univ. of Technology / / Tel: +43-316-873-5636 |
| Schieszstattgasse 4a / /'95 *changed!* --------^^^^^^^^ |
| A-8010 Graz, Austria, EU-rope Fax: +43-316-824394 |
|--------------------------------------------------------------------------|
| Browse through cyberspace with VRweb: http://hgiicm.tu-graz.ac.at/vrweb |