Questions tagged [devil]

Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use

Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats.

100 questions
1
vote
1 answer

loading textures in C++ OpenGL using DevIL

Using C++, I'm trying to load a texture into OpenGL using DevIL. After scrounging around for different code segments, I have a bit of code done (shown below), but it doesn't seem to work completely. Loading a texture (Part of a Texture2D…
Rohit
  • 160
  • 1
  • 3
  • 12
0
votes
1 answer

iluFlipImage cause graphic problems

i read a book right now. Its about OpenGl. There is a example to load textures with devil. I've implement the code from the book 1:1. But iluFlipImage function cause graphical problems. Im using the .Net Framework 4.0 with toa-framework…
MR.ABC
  • 4,712
  • 13
  • 44
  • 88
0
votes
1 answer

Using the pixel data retrieved from an image using DevIL

I'm using Visual Studio 2010, C++. What I'm trying to do is retrieve pixel data (RGB colour specifically) from a loaded image and then use that in various checks. Currently, I want to loop through all the data and be able to detect when a pixel is a…
Rohit
  • 160
  • 1
  • 3
  • 12
0
votes
1 answer

Segmentation fault at 'ilutGLLoadImage'

Anyone happen to know why I'm getting a segmentation fault at line 2 below (this is after all my glInit stuff)? I've tried different image formats (.jpeg, .png, .bmp, all from internet). Debug tips or anything helps! If you wanna see more source,…
Rooster
  • 1,267
  • 3
  • 15
  • 23
0
votes
1 answer

can't call any functions with devIL

I would like to be able to use the devIL library for a project I am working on, but for some reason I cannot get it set up correctly. In my project, I have: #include #include #include If I do not call any devIL…
A D
  • 789
  • 1
  • 12
  • 29
0
votes
1 answer

DevIL error 1290. How can I fix it?

I would like to load image to my application, but I have an error: http://img510.imageshack.us/img510/5814/blad07864.png This is a code of this application: #include #include #undef _UNICODE #include "il.h" #pragma comment(…
user1019901
  • 561
  • 3
  • 5
  • 11
0
votes
1 answer

Load a cubemap in a DDS file with DevIL

I only get the first face in a cubemap. How do I access/load the other ones? With DevIL 1.7.8 on Ubuntu Natty: I use ilLoad or ilLoadImage to load a dds-file with 6 textures, but only the first face gets loaded. ilGetInteger() give the…
Deorbit
  • 293
  • 2
  • 11
0
votes
0 answers

Importing Blender object with Image texture in OpenGL

I tried to import obects with image texture from blender to opengl (using Devil) but thats what i got. It seems like the images overlap all the screen covering all the objects in the scene. How can i solve this problem? I think that the problem…
0
votes
0 answers

Improving Loading Times With DevIL and OpenGL

I've written a game engine using C++ and OpenGL, and at the start of the application, I load a couple of thousand textures with DevIL. This causes a long initial load. I'm wondering if anyone can give me tips on optimizing these DevIL loads as they…
JHall
  • 41
  • 2
  • 6
0
votes
0 answers

How to add il.h path from Devil to CMakeList

I need to use Devil for a school project and im having a bit of trouble. The #include says 'IL/il.h' file not found, so im trying to add the .h path to CMakeList. I install Devil with homebrew and add the following to…
Miguelii
  • 27
  • 7
0
votes
0 answers

create executable with ubuntu for windows

I have a program that open an image with OpenGL. In ubuntu I enter this command and it work fine.: $ gcc main.c -o main -lglut -lGL -lGLU -lIL && ./main image.png I not sure about this, I would like to run this program in windows (like an exe that…
huangkaiyi
  • 73
  • 2
  • 9
0
votes
1 answer

How to save an image in vc++ using DevIL

I am using DevIL in my vc++ application. I need to save an image. I have the bitmap image which is generated programatically. How can I save the image in a png format to a specific location?
Nelson T Joseph
  • 2,683
  • 8
  • 39
  • 56
0
votes
1 answer

Error in DevIL. cannot open file 'il_wrap.lib'

I am using DevIL in my vc++ application. When build the application I get an error fatal error LNK1104: cannot open file 'il_wrap.lib'. There is no such file (il_wrap.lib). I am using DevIL-SDK-x86-1.7.8. From where did I get the file il_wrap.lib.
Nelson T Joseph
  • 2,683
  • 8
  • 39
  • 56
0
votes
1 answer

Unable to load Tao.DevIl.dll

Windows 7 64 Bit i have downloaded Tao framework to work with Opengl and DevIl together. the problem is when i try to use devIl library i get this error under 64 bit platform ( settings > build > platform target) Unable to load DLL 'DevIL.dll': The…
Bilbo
  • 1
  • 2
0
votes
0 answers

Same DevIL-Project in WIN fails with Ubuntu

By using DevIL in Linux the function ilCopyPixels() returns always false, whereas it does work normally in Windows. I am trying to manipulate an input image with the library and it really works fine, but no chance when I try to compile it with g++…
smrj
  • 1
  • 1