Results 1 to 6 of 6

Thread: rgba and texturemapping

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Pasadena, TX, USA
    Posts
    2

    rgba and texturemapping

    I need to know how to open/read an rgba file in C on a unix box, and then texturemap it to a sphere.
    First one to answer gets... well, nothing, but I'll appreciate it.

    Thanks,
    Tha' Moo.
    Zoom!

  2. #2
    Guest

    Re: rgba and texturemapping

    their are probably librarys you can download but here is the specs
    http://www.wotsit.org/download.asp?f=sgiimage

    you should also search sgi's website for info as the .sgi format is the same thing and I know they release dll's for free for windows I would expect that they would for unix

  3. #3
    Guest

    Re: rgba and texturemapping

    After some research I found a function to do it (although it is untested). It is not mine, so you must check out whether you may use it or not....

    here is the link
    http://www.cs.utah.edu/classes/cs5610/

    specifically here and here and here http://www.cs.utah.edu/classes/cs561...lab2/texture.c http://www.cs.utah.edu/classes/cs561...lab2/texture.h http://www.cs.utah.edu/classes/cs561...lab2/example.c

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Pasadena, TX, USA
    Posts
    2

    Re: rgba and texturemapping

    Many thanks
    Zoom!

  5. #5
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Re: rgba and texturemapping

    Paul Bourke, master programmer published these ...

    Loading 32 bit targa images (with source code) : http://astronomy.swin.edu.au/pbourke/dataformats/tga/

    Loading 32 bit SGI images (with source code) : http://astronomy.swin.edu.au/pbourke...ormats/sgirgb/
    Obsessive - A word used by the lazy to describe the motivated.

  6. #6
    Guest

    Re: rgba and texturemapping

    If all u want is to texture map a sphere with a rgba image, then that is easy.
    Just use glTexImage2d(GL_TEXTURE_2D, //target
    0, //Level Of detail.
    4, // RGBA
    width,
    height,
    border,
    GL_RGBA, // format
    GLUBYTE,
    image // The actual data
    );
    If u want to read a rgba image, u can use glReadPixels(...);

Similar Threads

  1. TextureMapping Confusion
    By fabianspring in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-20-2002, 02:52 PM
  2. DevIL texturemapping help!
    By imported_nomad in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-02-2002, 07:22 PM
  3. 1d texturemapping
    By saline in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-26-2001, 11:18 AM
  4. heightfield + texturemapping
    By iLLuminatus in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-16-2001, 07:22 PM
  5. texturemapping prob.
    By ann in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-19-2000, 11:42 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