Menu

get the texels of a texture

Help
Malakian
2007-08-01
2013-04-03
  • Malakian

    Malakian - 2007-08-01

    Hello,

    I'm trying to access to the texels of a texture.

    I read a FltTexture node in a ".flt" file and load FltTxAttributes with the function "fltLoadAttributes". Then I can access to the numbers of texels in u and v direction, but how access to one of this texels ? the xloc and yloc attributes of FltTexture correspond in what?

    I also want to know if any documentations exists for this library.

    Tanks in advance,

    Malakian

     
    • Michael M. Morrison

      Malakian,

      The fltlib does not actually load textures, you will need to do this yourself.  The attributes file (FltTxAttributes) simply describes the texture, along with mapping modes and whatnot.

      You will need to find another library (like DevIL, for instance) that will load a number of file formats, and use this to actually load the texture map.  The texture file name is located in FltTexture::ID[200].  index, xloc and yloc all relate to the texture palette inside of Creator.

       

Log in to post a comment.