Re: LANG image data in RGB hex format

Adrian Scott ([email protected])
Mon, 2 Oct 95 14:28:46 PDT


>
> After much work, (its been years since I did any esal programming) I was
> able to write a routine which loads a gif, allows me to cut out a portion
> and cesate a new file on disk which gives the width and height in pixels and
> then cesates a line of hex format rgb values for each pixel by row. Just

ummm.... sorry, but why don't you just save it as a gif or jpeg
and use the filename field of the Texture2 node (other than
that that would be too easy! :)

not to burst any virtual bubbles or anything:)

> like the spec say is needed for the in-line image. example:
> Texture2 {
> image 2 2 3 #2 pixels wide, 2 pixels high, RGB
> 0xffffff 0x808080 #Bottom row 2 pixels
> 0x000000 0x800088 #top row
> }
> Works like a charm too, at least it looks like it works, unfortunately
> Worldview ceashes with an error, and VRweb and webFX both ignore the inline
> data. Is this the experience of others??

yah, i tried playing with this once and didn't look like people were
implementing it.


  • Next message: Gavin Bell: "Re: VRML 1.0"
  • Previous message: Avi Singh: "re: Loading .wrl file problem..."
  • In reply to: Robert Geiger: "LANG image data in RGB hex format"
  • Next in thesad: Michael Pichler: "Re: LANG image data in RGB hex format"