devil

Loading a BMP into an OpenGL textures switches the red and blue colors. (C++/Windows)

余生颓废 提交于 2019-12-30 06:24:15
问题 I'm trying to load a bitmap into an OpenGL texture and display it to the screen, but when I do so, the red and blue values seem to switch (e.g.: a blue image appears orange, green images remain unchanged, etc..). This problem only exists when loading bitmaps, I can load .pngs relatively error free. This is the code I'm using to load the bitmaps and set the textures. I'm using DevIl, but I'm not sure how relevant that is, as the problem existed when I used a different system (I don't quite

g++ with DevIL: unable to link

房东的猫 提交于 2019-12-23 04:29:31
问题 Firstly, I am using Fedora and learning OpenGL. I would like to work with DevIL a little, so I installed both DevIL and DevIL-ILUT packages from the official repository. I have a test code for loading and rendering a file available, so I decided to test it (I will be learning some DevIL basics at my course, and we were given that file to make sure DevIL works fine for us). The file contains line: #include "IL/devil_cpp_wrapper.hpp" so I copied the IL directory (which we also have available)

Dev IL linking and compiling error (0xc000007b) [closed]

瘦欲@ 提交于 2019-12-13 10:19:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm trying to make this project work Link to Lighthouse First a bunch of info: I'm using: Windows 7 Pro 64-bit and Visual Studio 2013 Ultimate (Project on default settings which I believe is 32-bit) About libraries: DevIL: I downloaded and installed this one DevIL 1.7.8 SDK for 32-bit Windows Assimp: assimp--3.0

Trouble with brew install devil

会有一股神秘感。 提交于 2019-12-13 06:49:05
问题 RGBDSLAM install is asking for devil $ rosdep install rgbdslam ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rgbdslam: No definition of [libdevil-dev] for OS [osx] But when I try to install devil I'm getting this: $ brew install devil Error: devil cannot be built with any available compilers. To install this formula, you may need to: brew install gcc $ brew install gcc Warning: gcc-5.3.0 already installed How can I get around this? Note

DevIL segfault, issues with png's, bmp's

人走茶凉 提交于 2019-12-13 06:27:14
问题 I am on mingw (gcc version 4.5.2). I get a segfault when opening certain files, including PNGs and BMPs. It was working fine on a 128x128 PNG but when I started testing with larger files I started getting a segfault. There are no issues with the TGA format, though. I know the library works for the most part, but not knowing whether it will decide to crash and burn like this is not good. gdb does not give me any hints about what's going on. I am able to compile DevIL from source, and I

error C2664 and C2597 in OpenGL and DevIL in C++

↘锁芯ラ 提交于 2019-12-13 05:13:38
问题 I guess this is a two part problem, which is why I couldn't find a more suitable title for the post. I am loading an image using DevIL and then converting it to a familiar format. Here is the part of my code I am having troubles with: //Copy to OpenGL texture if(!ilConvertImage(IL_RGBA, IL_UNSIGNED_BYTE)) { throw runtime_error(std::string("Unable to convert image") +filename +std::string(" to display friendly format")); } glGenTextures(1, &Main::texture); glBindTexture(GL_TEXTURE_2D, Main:

devIL causes program to be unable to start correctly

橙三吉。 提交于 2019-12-12 16:45:28
问题 I just tried to use devIL and ULIT to help me with opengl texture loading. However, whenever the program starts, I get the error: "The application was unable to start correctly (0xc000007b). Click OK to close the application." What happened? I'm using the Visual C++ 2010 RC, windows 7 64-bit. 回答1: It may happen if you attempt to run a 64-bit application, but Windows finds only the 32-bit version of some dependent DLL. You can fix this by making sure all the 64-bit dependency DLLs can be found

C++ “File format not recognized”?

拜拜、爱过 提交于 2019-12-12 05:45:33
问题 I'm trying to run the code located here: http://r3dux.org/2010/11/single-call-opengl-texture-loader-in-devil/ And it requires me to use DevIL, so I installed it to my c:\usr\ folder using the Win32 installer. I'm positive my environment is setup to read from the proper \lib folder as well. My linker looks like this: -lglfw -gluw32 -lopengl32 -lglu32 -ldevil Everything else loads fine, but when it gets to "ldevil", the compiler (Dev-C++) throws the error: File format not recognized. 回答1: Most

How to load devIL image from raw data

爱⌒轻易说出口 提交于 2019-12-12 04:56:56
问题 I would like to create devIL image from raw texture data, but I can't seem to find a way to do it. The proper way seems to be ilLoadL with IL_RAW, but I can't get it to work. The documentation in here says that that there should be 13-byte header in the data, so i just put meaningless data there. If I put 0 to "size" parameter of ilLoadL, I'll get black texture, no matter what. Otherwise my program refuses to draw anything. ilIsImage returns true, and I can create openGL texture from it just

Issue on using CMAKE with MSYS/MinGW linking dll files using DevIL image library

别说谁变了你拦得住时间么 提交于 2019-12-12 03:48:45
问题 actually i create a CMake script to localize the DevIL library using MSYS/MinGW on win32 platform. I've extend the origin FindDevIL CMake script to regard the MinGW root when try to find DevIL: project (DevILTest) cmake_minimum_required(VERSION 2.6) FIND_PACKAGE(OpenGL) IF(OPENGL_FOUND) MESSAGE(STATUS "OpenGL render API found.") MESSAGE(STATUS "Detected OpenGL path is : ${OPENGL_LIBRARIES}") ENDIF(OPENGL_FOUND) #Determine DevIL specific header file FIND_PATH(IL_INCLUDE_DIR il.h PATH_SUFFIXES