Results 1 to 2 of 2

Thread: Inlined image

  1. #1
    amtri
    Guest

    Inlined image

    Hello,

    I've been asked to generate a DAE file where the textures are all included in the file itself rather than read from an external image file such as JPG or BMP.

    If I use
    Code :
    <image format="BMP">
       <init_from>myfile.bmp</init_from>
    </image>

    then I have no problem loading the image.

    But I'm trying to use
    Code :
    <image format="R8G8B8A8" width="3" height="1">
       <data>
       ... data here ...
       </data>
    </image>

    With the width and height given as above (3 and 1), I assume I should have 3 32-bit numbers in my <data> field. However, everything I've tried so far has not worked.

    Could somebody give me an example of an inlined image in R8G8B8A8 format with, say, 3 colors, red, green, and blue?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Inlined image

    Probably the software you are testing with does not support the <data> element. The important attribute that declares how to interpret the data values is the format attribute. It is application defined and can be as simple at "BMP" or "RGBA8" or more complicated. It must be unambiguous and known to the application however.

    The width and height attributes are the dimensions of the image in pixels.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •