Results 1 to 6 of 6

Thread: DevIL texturemapping help!

  1. #1

    DevIL texturemapping help!

    Greetz,

    OK, so the DevIL has a manual teaching you how to load images...so after loading an image in DevIL, how do I use it to texturemap?

    Any source code to guide me will be great!

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2001
    Posts
    104

    Re: DevIL texturemapping help!

    What the heck is DevIl? Any of these "Make your own Doom within 5 minutes" programs for which they want 500$?
    ...
    Ah, I see, an imagine library... Well, when using OpenGL there are anyway only some less formats of choice and for all of them there is a library included in the nVidia SDK. (www.nvidia.com) You should use DDS (S3TC) in general. It's easy loadable and has like no quality loss. For high quality graphics like for the userinterface, you should use then either BMP or JPG. For all of them there are tons of examples in the internet.

    BlackJack

  3. #3
    Member Contributor
    Join Date
    Mar 2002
    Location
    Figueira da Foz, Portugal
    Posts
    84

    Re: DevIL texturemapping help!

    Actually, DevIL is quite easy to use with OpenGL and makes loading most images a piece of cake, and I think recent versions have S3TC support.

    you can use ilutGLBindTexImage():
    Code :
    	// Lets OpenILUT know to use its OpenGL functions.
    	ilutRenderer(ILUT_OPENGL);
    	// Goes through all steps of sending the image to OpenGL.
    	TexID = ilutGLBindTexImage();
    	// We're done with our image, so we go ahead and delete it.
    	ilDeleteImages(1, &ImgId);
    This is from GLtest.c in one of the DevIL examples

  4. #4

    Re: DevIL texturemapping help!

    ey, where did you grab sample codes for gl? i went to the site (www.imagelib.org) and found just sdk and docs for download... .

  5. #5
    Member Contributor
    Join Date
    Mar 2002
    Location
    Figueira da Foz, Portugal
    Posts
    84

    Re: DevIL texturemapping help!

    Well, I have it on "DevIL-1.2.0.zip".

    Maybe it's included with the full library source in these new releases.

  6. #6
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: DevIL texturemapping help!

    BlackJack, color cell like compression has significant quality loss. In fact it's quite nasty for the modest ratio you get (much worse than JPEG at equivalent compression) but it is chosen because it guarantees a fixed compression ratio and so hardware can address it correctly. I could contrive an image that would make you change your mind about quality loss

    [This message has been edited by dorbie (edited 07-02-2002).]

Similar Threads

  1. TextureMapping Confusion
    By fabianspring in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-20-2002, 02:52 PM
  2. 1d texturemapping
    By saline in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-26-2001, 11:18 AM
  3. rgba and texturemapping
    By mooface in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-06-2001, 09:26 PM
  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