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
1 answer

OpenGL textures not loading with SOIL

Hey I can't get my texture to show up and I have no idea what's wrong. Tutorials haven't helped. Here's my code: Player p(); //The glutDisplayFunc(); void display() { glPushMatrix(); glClear(GL_COLOR_BUFFER_BIT |…
Big Steve
  • 11
  • 2
0
votes
1 answer

How to plot a dose-response model in R?

I am relatively new to the R game, and thus trying to convert my data analysis to R. In excel I have fit a kinetic model to explain variation in yield as a function of Manganese availability. I would like to plot the model in R, in conjunction…
BH_
  • 1
  • 1
0
votes
1 answer

SOIL Load PNG Image into a Texture turns into an grey image

So I want to load a PNG image using SOIL, like this: unsigned char* image = SOIL_load_image("image.png", &width, &height, 0, SOIL_LOAD_AUTO); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE,…
waas1919
  • 2,365
  • 7
  • 44
  • 76
0
votes
2 answers

SOIL_load_image() returns null

ANSWER After using SOIL_last_result(), as dcook had suggested, I found out two things: 1) It couldn't find the image, as PaulMcKenzie said, so my working directory was indeed incorrect as genpfault mentioned. 2) After I set a full path, it mentioned…
Moo
  • 3,369
  • 4
  • 22
  • 41
0
votes
1 answer

Second window in C++ OpenGL deactivates SOIL texture in first window

So I've been playing around with SOIL for openGL class, and I am having a weird problem with my project. I am to display two windows containing three viewports each, in which I draw a textured cube or ellipsoid in order to demonstrate my…
Gnemlock
  • 325
  • 6
  • 22
0
votes
1 answer

How to embed any *.jpg image inside win32 executable and use it at run time

I am doing a project in pure OpenGL and FREEGLUT named Space Voyager. Problem is that during run time when programe calls a function to load all the images player has to wait around 2 minutes on loading screen!!!! Some of the images are like 16 MB…
sohail_chd
  • 13
  • 3
0
votes
1 answer

Mirror (flop) a JPG image loaded using SOIL_load_image

I have successfully loaded a .jpg image using the library libsoil-dev as found for Debian using the command uchar* img = SOIL_load_image(pfname_texture.c_str(), &img_width, &img_height, NULL, 0); The latter two parameters are int*…
Markus-Hermann
  • 789
  • 11
  • 24
0
votes
0 answers

Save OpenGL output to image using cross-platform libraries

I want to take screenshot from OpenGL window and save it to image file of any type. DevIL method described here gives correct PNG. Replace ilSaveImage with ilSave and you can save image in different formats. SOIL method here gives flipped vertically…
mioe
  • 11
  • 3
0
votes
1 answer

SOIL_load_OGL_texture returning NULL, possibly a working directory issue (XCode 6)

Ok, so I'm trying to use SOIL to load a .png file that's in a "textures" folder. The textures folder is located in the same directory as the code. I've gone into the scheme settings on the XCode project and changed the working directory to the one…
Adam B.
  • 81
  • 2
  • 7
0
votes
0 answers

Error undefinde reference

I'm trying to use the SOIL (simple opengl image library) in SDL, at compile time (using CodeBlocks in WindowsXP) is giving the following error 57 times: G:\mingw32\lib\libSOIL.a (SOIL.o) : SOIL.c || undefined reference to `glTexParameteri @ 12 '|. I…
vaati
  • 162
  • 2
  • 13
0
votes
0 answers

fltk, opengl, textures and SOIL in visual studio 2013

I have made an application in c++, using FLTK 1.3.2 on Mac OSX and am happy with its functionality and now need to produce a Win32 version (a motivating reason for using FLTK) I can get basic FLTK code to run on Windows now, but have come up against…
user3353819
  • 911
  • 2
  • 8
  • 21
0
votes
1 answer

lnk2019 unresolved external symbol _soli_load_image referenced in function _main

I have to solve this question in vs2012. title said.I included SOIL.h file in the header. but when I debug the programming.it said this error.I am using SOIL to draw something. help me...please... xd Code Below: #include #include…
Youku KMSFan
  • 67
  • 2
  • 12
0
votes
1 answer

OpenGL Texturing SPHERE using Soil?

Just wanted to ask a question on OpenGL texture mapping of a sphere. i want to create a planet(Earth) and i have tried to use SOIL for this because i found it to be the easiest but it's simply not working. All i am getting is a black screen. Could…
0
votes
0 answers

SOIL runtime error in Release Mode - Unhandled exception (ntdll.dll)

I am trying to load texture into GLuint (unsigned int). I did the following: material[materialNum].texture = SOIL_load_OGL_texture((fileLocation + "/" + mtlBufferStr).c_str(), SOIL_LOAD_AUTO, SOIL_CREATE_NEW_ID, SOIL_FLAG_MIPMAPS |…
UdiM
  • 480
  • 3
  • 19
0
votes
0 answers

identifier "Image" is unidentified

I have been trying to load 6 images onto each face of the cube, and I tried to search for a way to do it, and found out that using SOIL I can load the texture images. Currently I want to load an array of images (6), and use that to set the textures…
terasky
  • 13
  • 4