Questions tagged [texturing]
119 questions
0
votes
1 answer
LWJGL OpenGL texturing not correct
I'm trying to make a simple button in OpenGL/LWJGL,
I can render my 2D QUAD correctly, but when i implement the texture, only about 3/4 parts of the whole quad gets textured, like this: https://dl.dropboxusercontent.com/u/60223805/glerror1.png
and…

user1568364
- 113
- 3
- 9
0
votes
1 answer
Shadows via shadowmaps and other textures - how to combine? OpenGL
Good day.
I draw a scene with shadows using shadow maps method (when we're rendering scene from light point of view to retrieve depth buffer, making shadow texture and projecting it on the scene, rendered from a camera point of view)
As I use…

Irene
- 27
- 7
0
votes
2 answers
Terrain Texturing
Is there a way to blend 2 textures in a gradient manner? ex. first textures starts at top and goes to the bottom, and second one starts bottom and goes top. I want to make them loose opacity like in a gradient to create a smooth connection. Is it…

mjanisz1
- 1,478
- 3
- 17
- 43
0
votes
1 answer
lodepng on windows of ogl texture crash
I'm using lodePNG to load texture from a png file but the program crashes when I load the texture.
char* filename = "texture.png";
unsigned width, height;
std::vectorimage;
GLuint texture[1];
//decode
unsigned error =…

mma1480
- 659
- 1
- 9
- 18
0
votes
1 answer
Pretransformed textured polygons
I'm only starting with 3D so I have a question about drawing pretransformed stuff onto the screen.
I was able to figure out how to draw colored polygons in pretransformed form by using some tutorials, but I just can't understand how to texture…

NewProger
- 2,945
- 9
- 40
- 58
0
votes
1 answer
Open GL texturing , texture coordinates are incorrect to what is rendered
I'm rendering a scene using opengl with textures loaded using some sample code and the FreeImage API.
Here is a link to what i'm seeing
[Image Removed]
I can confirm that all texture coordinates are provided to glTexCoord2f between 0.0f and 1.0f as…

ceorron
- 1,230
- 1
- 17
- 28
0
votes
2 answers
OpenGL 3.2 Texturing Issue
I'm working on a 2D engine in C++ at the moment.
I've run into a problem which I seem to believe I've come up against once before, but have since forgotten how I fixed it.
The engine is cross platform ( Win, OSX, Linux ) and to accomplish this I am…

OpticFroggy
- 97
- 2
- 10
0
votes
1 answer
Texture mapping a curved rectangle in OpenGL [python]
I'm having some problems with the texture mapping in OpenGL in python. I'm trying to draw a rectangle that is curved on the top and on the bottom but so far I've been able to only get it curved on the bottom. Somehow the upper doesn't want to form a…

lonelytransistor
- 3
- 3
0
votes
1 answer
Java 3D API - Prevent small texture blurriness
I have rendered this scene using the Java 3D API. At the bottom of the image, where the ground is closer to the viewer, there is a blurriness surrounding the black lines on the image. I would like to prevent this blurriness entirely. Here is the…

luke
- 407
- 2
- 12
-1
votes
1 answer
FBO texture is displaying completely black
I am attempting to follow ThinMatrix's water tutorial. To do this, I need to create an FBO and render it as a texture.
However as you can see, the water is completely black:
I am using the source code provided directly from the tutorial (copied…

Joehot200
- 1,070
- 15
- 44
-1
votes
1 answer
Why are my textures showing up as fractal patterns with my openGL renderer?
I'm working on getting textures to render using openGL. I'm part of the way there and stuck.
My goal is to get this picture: https://i.stack.imgur.com/67lqK.jpg
and this is where I'm at: https://i.stack.imgur.com/qBkwQ.png
Has anyone seen this issue…
-1
votes
1 answer
glTexStorage3D for Sparse Texture has glError Invalid Value, but values seem legit
I am trying to create a sparse texture array in OpenGL and as far as i can tell my values are okay. See the comment above the actual call for the values from debugger.
glGenTextures(1, &mTexId);
glBindTexture(GL_TEXTURE_2D_ARRAY, mTexId);
…

Joe
- 454
- 1
- 6
- 20
-2
votes
1 answer
OpenGL slow processing while loading a jpeg image using SOIL
I am working on a project to texture a sphere with a jpeg image and with some keyboard navigation keys for the user that rotates the sphere right or left. The problem is i tried using SOIL to load the image and it was successfully loaded, but the…

mallahyk
- 25
- 5
-5
votes
2 answers
OpenGL texturing using C++
GLuint createTexture(const char* filename, int width = 128, int height = 128)
{
GLuint texture;
char bitmap[width][height][3];
FILE* fp = fopen(filename, "rb");
assert(fp);
assert(fread(bitmap, 3*sizeof(char), width*height, fp)…