Questions tagged [soil]

SOIL or Simple OpenGL Image Library is a lightweight image loading library for for C++ and C that is cross-platform.

SOIL stands for Simple OpenGL Image Library. It was created to be a lightweight image loading library for C++ and C and meant to be a static library.

Useful Links:

159 questions
0
votes
0 answers

linking soil, mingw, undef ref

I use Code::blocks 16.1 and MinGW compiler, Windows 7. I get 43 errors when tried to include SOIL library (the code is): #include unsigned char *image = SOIL_load_image("container.jpg", &width, &height, 0, SOIL_LOAD_RGB); It is in…
dude78
  • 1
  • 4
0
votes
1 answer

Expected CMakeLists correctly set to lib folder and compile the c file that needed to build the project, but got undefined symbol architecture

Goal: Trying to use SOIL2 to simply load image in OpenGL. Attempt: I have tried using headers only by including the SOIL.h and then compiling SOIL.c in CMAKE but I got similar error of Undefined symbols for architecture x86_64, said that It could…
lambda
  • 39
  • 5
0
votes
0 answers

CLion OSX linking librarys

I'm using openGL with CLion on OSX and am trying to add textures to some objects. I believe my CMake list is correct however when creating a texture using myTexture = SOIL_load_OGL_texture( "gfx/crate.png", SOIL_LOAD_AUTO, …
L.K
  • 33
  • 6
0
votes
1 answer

R: Selecting and making changes to values within column in data frame

I think I need to write an if/else loop of some kind to accomplish this, but I'm not sure where to start. I want to search within a column of my data frame for values that are of a certain length, and contain a certain symbol. For example, within…
Amanda S
  • 1
  • 2
0
votes
0 answers

SOIL loading some images, some not

I never had problems loading images with SOIL but now it is randomly not able to read images correctly. Most are still working. I compared working images with the ones that are not able to load and their properties are absolutely identical. The…
0
votes
1 answer

OpenGL SOIL - Failure to Load Texture

I'm following this tutorial step by step and I even copy-pasted the entire code but it still fails to load the texture. Here's my code, the parts that concern the question: GLuint texture; glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D,…
0
votes
0 answers

writing png image with PNGWriter and loading it with SOIL

I want to pre-render a scene in different positions and store the color an depth images in a png. I do this with PNGWriter. pngwriter image(640, 480, 0.0, path.c_str()); for(int i = 0; i < 640*480 ; ++i){ int x = i % 640; int y = i/640; …
Dominick
  • 291
  • 2
  • 13
0
votes
1 answer

Displayed image is corrupt on window /openGL

I'm trying to write a function which displays image. Function displays image but image is faint, inclined, uncolored and coating all of the screen. I used SOIL to load image. GLuint…
0
votes
1 answer

Installing SOIL

I have a problem linking SOIL and the compiler gave this error ld: library not found for -lSOIL cland: error: linker command failed with exit code 1 (use -v to see invocation)
0
votes
0 answers

OpenGL, SOIL, Textures and Transparent backgrounds

I can't seem to get the transparent background on my image to load as transparent. It's always white instead. I'm still fairly new to OpenGL/SOIL so if I did something stupid don't be mad :/ Does it have to do with my flag on the load being RGB…
0
votes
1 answer

Trouble with SOIL library linker error using C++

(Hello, this is my first post, and I am using Dev C++ IDE 5.11) I included the header, SOIL.h and the linker: -lSOIL. This program compiles with no problem and runs correctly, but when I add any function into my code from the SOIL library, I receive…
newbcoder
  • 15
  • 7
0
votes
1 answer

Using SOIL in Ubuntu 14.04

I'm having some real problems using SOIL in Ubuntu 14.04. I have managed to get SOIL to work in a windows environment and am porting the code from windows to ubuntu. I am sure I have managed to get SOIL to install on my Ubuntu machine. I have the…
0
votes
1 answer

Set a texture to a Solid Sphere with glut

I'm trying to load a texture into a sphere created by glutSolidSphere with soil.lib This is what i'm trying: GLuint texture[1]; /* load an image file directly as a new OpenGL texture */ texture[0] = SOIL_load_OGL_texture("Terra.bmp",…
Xhark
  • 781
  • 1
  • 9
  • 24
0
votes
1 answer

Loading OpenGL texture with SOIL in std::thread raises "Integer Division by Zero"

I can load a texture just fine in SOIL/OpenGL normally. No errors, everything works fine: // this is inside my texture loading code in my texture class // that i normally use for loading textures image = SOIL_load_OGL_texture ( file, …
Accumulator
  • 873
  • 1
  • 13
  • 34
0
votes
1 answer

load .png texture using soil, issue

Hey guys I'm new in OpenGL, and I have an issue while I try to display a texture.Every texture I try to display in .png format it just gives it's color, for example if I try to display a red brick it just appears the red, only the color. The code I…
turbos
  • 53
  • 6