Results 1 to 6 of 6

Thread: JPEG, PNG, TIFF

  1. #1
    Member Newbie
    Join Date
    Oct 2003
    Posts
    32

    JPEG, PNG, TIFF

    Is it possible to display the .JPEG, .PNG and .TIFF images in the OpenGL rendering context? If possible, from where i can download the info.

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2003
    Location
    Germany
    Posts
    229

    Re: JPEG, PNG, TIFF

    Either use a lib that supports your file formats (TIFF isn't supported widely due to some technical limitations of that format) or grab the file format's specs at http://www.wotsit.org and load them by yourself.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    Posts
    201

    Re: JPEG, PNG, TIFF

    Yes its possible but from experience I have found jpegs to be more of a hassle then anything. First of all the file is read in reverse so every other texture format will look right but if you draw your jpeg with out reversing you texture coords, the image will be upside down. Plus its a lossy format. I personally prefer tga's. They can get big at times but there are ways to compress them.

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Kent, WA, USA
    Posts
    21

    Re: JPEG, PNG, TIFF

    Targa is fun to say, too. Targa targa!

  5. #5
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    211

    Re: JPEG, PNG, TIFF

    use DevIL, at sourceforge, to load various images; in the most cases it works without problems, but there are some non-pursuable bugs with some images from time to time...

    [This message has been edited by DJSnow (edited 10-16-2003).]
    DJSnow

  6. #6
    Senior Member Regular Contributor
    Join Date
    Aug 2001
    Posts
    259

    Re: JPEG, PNG, TIFF

    There are many tutorials and code to load TGA and jpg files. They are commonly used in games. For jpg files I would suggest using libjpg TGA files you can create your own function for. google it/search the fourms here.

Similar Threads

  1. tiff to 3d mesh generation.
    By Hurricane_RusH in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-04-2018, 11:14 PM
  2. zoom the .tiff image ?
    By zarrin in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-15-2006, 05:17 AM
  3. Read a TIFF with OpenGL?
    By Rain in forum OpenGL: Windows
    Replies: 1
    Last Post: 03-02-2004, 01:13 PM
  4. Display TIFF file using OpenGL
    By songeb in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 01-18-2002, 05:03 AM
  5. Using TIFF Graphics with Sun Solaris
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-06-2001, 08:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean