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
1
vote
0 answers

SOIL OpenGL LNK2019 error

working with OpenGL using the SOIL Texture binding library. However whenever I try and load a texture, I get these errors: 1>libsoil.a(stb_image_aug.o) : error LNK2019: unresolved external symbol ___chkstk_ms referenced in function…
Matt
  • 1,471
  • 8
  • 20
  • 28
1
vote
1 answer

Textures not displaying correctly C++ opengl SOIL

Here is my problem; Image a box, or a cube, all sides right. If we were to put the box on a flat surface, the face touching the bottom, would be the floor or base. if the base had an inside, which most boxes do, from the outside you would not be…
Pkerkm
  • 65
  • 1
  • 9
1
vote
2 answers

Image loading causes slow processing in OpenGL

I am currently working on a project which needs to load image. I am using SOIL library to load JPEG image. I have to move the ball in the projection area. The movement of the ball works fine without the image loaded but it becomes discretely slow…
pranphy
  • 1,787
  • 4
  • 16
  • 22
1
vote
1 answer

Texture mapping on a cube appears wrong

I've created a cube and then changed its coordinates to make it a beam like this (click me). I am sure that the texture is being loaded fine as I have successfully loaded other textures in the project (using SOIL). The code of the beam is…
Chris
  • 3,619
  • 8
  • 44
  • 64
1
vote
1 answer

Image loading using openGL, SOIL

I tried a lot of examples for loading and displaying images in openGL using SOIL. while running the source code below, it displays just a wite quad without an image. I tried to open an image called: foto. I placed the image-file in the folder of the…
abcdef
  • 236
  • 1
  • 5
  • 17
1
vote
1 answer

opengl Soil texture

Here is the error message I am recieving from VS2010: Unhandled exception at 0x77358dc9 in AzimuthalEqui.exe: 0xC0000005: Access violation writing location 0x00000014. The line of code generating this error is: texture[1] = SOIL_load_OGL_texture …
0
votes
1 answer

SOIL image library and freeing memory

I'm trying to write a class using soil to encapsulate SOIL calls. I can't however find any other means of deleting the memory if I load the image using SOIL_load_OGL_texture So what's the correct way to clean up after this call?
Bartek Banachewicz
  • 38,596
  • 7
  • 91
  • 135
0
votes
1 answer

soil exception c++

when I made my game, all went fine, but suddenly I had a weird exception on the load picture of soil. It didn't happened in the start of the game, it happened suddenly, it was very weird. here a picture: http://oi39.tinypic.com/vgj9y.jpg here the…
menta man
  • 66
  • 9
0
votes
1 answer

How to load different images (loop) using SOIL for OpenGL c++?

Anyone knows how to loop different image from xml I parse (I used libxml2) then load it > using SOIL for OpenGL in c++? here's my code: LoadImage *img[0]; File getFile; int a; string imge; vector image3; void getImageNode(File getFile){ …
joi
  • 307
  • 1
  • 2
  • 11
0
votes
0 answers

Can I get soil clay, silt, and sand content from particle size analysis data (hydrometer ans sieve method) in R?

I made a particle size analysis on 150 soil samples using the hydrometer and sieve method. For each sample, I have a table with particle diameter (d) and percent passing (%P), which indicates the sample's amount consisting of particles smaller than…
0
votes
1 answer

SOIL2 don't load grayscale texture

I am new to OpenGL and am learning it at the moment. Using SOIL2, I'm loading a texture and trying to render it on the screen. I load the texture like this: GLuint texture; texture = SOIL_load_OGL_texture(("resources/textures/" + fileName +…
0
votes
0 answers

Install GSIF package in for R in Ubuntu 20.04

What are the alternative ways to install the GSIF package for geostatistics analysis in R on Ubuntu 20.04 with R version 4.2.3? I have tried common methods such as install.packages("GSIF") and install.packages("GSIF",…
Nges Brian
  • 479
  • 1
  • 8
  • 22
0
votes
1 answer

R package "soiltexture" version 1.5.1 installs but doesn't load

Unable to install R package "soiltexture" R package 'soiltexture’ version 1.5.1 installs on R without any warnings. When trying to load with 'library(soiltexture)', R studio will show busy for long time and section terminates. I am using RStudio…
J.M
  • 25
  • 4
0
votes
0 answers

No Storage of Type Specifier for Texture functions

I am trying to create a program that binds texture to different parts a pyramid. I thought I had included the SOIL libraries. But whenever I type glGenTextures, glBindTextures, and glTexImage2D, I get errors saying "this declaration has no storage…
MachoMan
  • 59
  • 6
0
votes
0 answers

I got this error: in if (nj > mxd) { : missing value where TRUE/FALSE needed when use ea_spline function to fit soil profiles (250)data (0, 5, 15, 30

id UDepth LDepth pred_SOC pred_clay pred_silt pred_sand 1 E0104 0 34 1.99826638 32.8049544 53.997127 14.465008 2 E0104 34 65 0.48402158 34.1738029 49.573291 16.062620 3 E0104 65 90 0.66509650 32.1084719…