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

How to save texture to image using soil2 library

I am trying to save texture to a image using SOIL2 library. int _width, _height; unsigned char* _image = SOIL_load_image("C:\\Temp\\RED.png", &_width, &_height, 0, SOIL_LOAD_RGB); int save_result =…
Summit
  • 2,112
  • 2
  • 12
  • 36
0
votes
0 answers

Trouble linking SOIL2 to Visual Studio project

So I've downloaded the most recent src for SOIL2 and premake5. I run the command premake5 vs2019 and build the static library, which works just fine. I then go to my project properties, and do two things- 1) I include the source files in the…
0
votes
2 answers

libSOIL.a file is getting ignored on MacOS

I installed SOIL on my Mac (BigSur) in the normal way with make and make install. When I do cmake . to my OpenGL Project, everything is ok and SOIL is found. But when i do make, i get following warning/error: ld: warning: ignoring file…
0
votes
0 answers

cannot get visual studios 2019 to render properly using soil

The code rendered correctly before adding textures. I am able to use SOIL GLUT and eclipse just fine, its just with visual studios that nothing seems to work. Here is the code: #include #include #include…
0
votes
1 answer

Sampling from a texture gives a black model using opengl and SOIL2

I'm trying to texture a model but all I get is the model rendered totally in black. i use SOIL2 library to load the image into the memory and the following code shows Load function in my Texture class. bool Texture::Load(std::string texturePath) { …
0
votes
0 answers

SOIL image library cannot load image file from any other directory

Trying to load images for textures using SOIL, but it can be loaded only from program's directory, any other variants doesnt work(((( This code doesnt work: mage = SOIL_load_image("C:\\Codes\\Instinct\\March\\V 0.5\\3. UI\\bin\\Debug\\1\\3.jpg",…
0
votes
0 answers

which image format takes less time to load into memory

I have a requirement where i need to load a sequence of images to the memory and than play them back to back. I load all of the files into a std::vector and after they all get loaded i play them. this is code for loading each file. void…
Summit
  • 2,112
  • 2
  • 12
  • 36
0
votes
1 answer

Is there a way to split one texture into an array of them using SOIL in C++?

I'm using SOIL in my project, and I need to take in a single texture, and than convert it into an array of textures using different parts of the first texture. (To use a sprite sheet). I'm using SDL and OpenGL by the way.
William
  • 8,630
  • 23
  • 77
  • 110
0
votes
0 answers

Error when loading texture with SOIL_load_OGL_texture

I'm currently working on a little 3d renderer and was trying to add textures. Thing is when I try to load the texture using SOIL_load_OGL_texture I get an access violation error with vcruntime140d.dll . I saw another post here with a similar error,…
Noctuaris
  • 1
  • 2
0
votes
1 answer

Soil profiles with coloured volume fractions with "aqp" in R

I am trying to plot a soil profile in R using the package aqp: algorithms for quantitative pedology. The profile should represent matrix colour, plus mottling colour and percentage. For that purpose, I am using the function addVolumeFraction, which…
Carlos G
  • 19
  • 2
0
votes
0 answers

SOIL.lib can not be linked in the C++ project

I'm setting up the soil for my simple c++ game. But there are something wrong with my SOIL setup. I used vs2019 in the Win10, and I have also successfully set up my openGL (through the test sample). But when I tried to import the SOIL and built the…
0
votes
1 answer

Unresolved External Symbol on SOIL2 Files - requires opengl calls

It seems that when I try and build my project it fails the build because of some unresolved external symbols from SOIL2. It doesn't know what calls like: "__imp_glTexParameteri" are. I have glfw lib in my project but it still seems to think that I…
Kingrune
  • 87
  • 7
0
votes
1 answer

2d Texture missing triangle chunk using SOIL and OpenGL (C++)

I have some Java game dev experience and this is my first attempt at some C++ game dev. This game is supposed to be a very simple 2d Game a sort of whack'a'mole but with bubbles. It seems as though I'm not rendering my Sprites correctly so this…
0
votes
1 answer

Plotting contributing fractions in SoilProfileCollection in R, apg package

I am having trouble displaing the contributing fractions in my depth plot, as their the top number at each 10cm depth should be in black and the second in blue not alternating every depth step like it is displayed now. This is my code so…
Znerky
  • 1
  • 1
0
votes
1 answer

Can't install soil.h library

I've made a simple opengl game which uses soil.h in ubuntu but in my college fedora is installed, how do install soil.h in fedora in my college pc? I've already tried make install method in an earlier post and also tried "yum install libsoil.h-dev"…