Questions tagged [texturing]
119 questions
1
vote
7 answers
OpenGL texture loading issue
This is a very vague problem, so please feel free to clarify anything about this project.
I'm working on a very large application, and recently a very perplexing bug has cropped up regarding the texturing. Some of the textures that we are loading…

Andrei Krotkov
- 5,556
- 3
- 33
- 36
1
vote
0 answers
Drawing a textured quad pixel-exact in 2D with OpenGL 3.3?
How to scroll a textured quad "pixel-exact" over the screen
using float-positions with GL_LINEAR-filtering?
If I try this task, I could always see a hard pixel-change
during the very smooth movement if a subpixels-coordinate is
greater or equal than…

SoulfreezerXP
- 459
- 1
- 5
- 19
1
vote
2 answers
Correct storage allocation for textures in GL_TEXTURE_2D_ARRAY
Assume I have GL_TEXTURE_2D_ARRAY including 6 textures I'm loading it with:
vector::iterator vsit;
for(vsit=filenameTable.begin();vsit!=filenameTable.end();++vsit)
{
string filename = *vsit;
BMPData* bmpData =…

CppMonster
- 1,216
- 4
- 18
- 35
1
vote
2 answers
A couple of textures into one in Blender
I have some model in Blender. I'd like to:
Connect a few different textures into one and save it as bitmap
Make UV mapping for these connected textures
I need to solve this problem for textured models in OpenGL. I have data structure which giving…

CppMonster
- 1,216
- 4
- 18
- 35
1
vote
0 answers
OpenGL - Issue with transparent textures overlapping
I am pretty new to OpenGL I having been flowing the tutorials at http://open.gl/. I've tried to expand upon them for a school project. I am having an issue with multiple textures not rendering correctly. For some reason the previous texture is…

Chrono Fatalis
- 11
- 1
- 2
1
vote
1 answer
GLKit GLKVertexAttribColor: Dynamically changing colours
So As objects get further away from me I want to apply a fade.
The objects are textured.
I believe the colour of the object is controlled via this line
glVertexAttribPointer(GLKVertexAttribColor, 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), (const GLvoid…

Burf2000
- 5,001
- 14
- 58
- 117
0
votes
0 answers
Opengl texturing (with mimap or not) from a FBO
I must be missing something obvious in using FBO :
I call TMyForm::Init() once at the start of my application :
class TMyForm
{ ...
private:
Gluint mTextureId, mFboId;
int mWidth, mHeight;
}
void TMyForm::Init()
{
mWidth = 1920;
…

Arnaud
- 109
- 3
- 15
0
votes
1 answer
OpenGL Texturing Garbage
I have a problem with texturing – it loads the image correctly, but renders garbage onto the geometry. The geometry itself draws fine (a simple triangle), but no matter which texture I load it just spits random patterns onto the triangle.
I'm using…

Prime
- 4,081
- 9
- 47
- 64
0
votes
1 answer
Transparent texture with OpenGL ES without using the alpha channel
Is it possible with OpenGL ES to texture a quad in such a way that all pixel (0,0,0) of the texture are not drawn while all the others are drawn? I have RGB888 images and the black color (0,0,0) is to be considered as completely transparent, while…

Marco Masci
- 818
- 10
- 22
0
votes
0 answers
Add real life texture to .obj model
I have seen that there are a few older questions on here asking if adding a real life texture to a .obj file is possible using the in build Lidar scanner on newer devices, using RealityKit. Yet, there is still no solid answer to the solution. I am…

James McNulty
- 23
- 1
- 6
0
votes
1 answer
iOS OpenGL runtime texturing
Is it possible somehow to automatically continue the building of an existing mesh? How this can be done?
Let's say an example. I have a cuboid and I would like to have a bigger cuboid in runtime. The cuboid also have some texture and the new parts…

Infinite Possibilities
- 7,415
- 13
- 55
- 118
0
votes
0 answers
How to draw an OpenGL alphamap with filled foreground and background?
I'm drawing text from a texture atlas containing an alphamap GL_ALPHA, GL_UNSIGNED_BYTE --- it's produced by stb_truetype, if that's any help. Right now I'm drawing with GL_BLEND enabled and the texture with all the default settings. I can set the…

David Given
- 13,277
- 9
- 76
- 123
0
votes
1 answer
Ursina - Colorize custom model using MTL file
I'm using python 3.8, Windows 10, Ursina.
I have a custom 3D model, created with this tool. When exporting, it includes an MTL file (which I'm guessing it uses to store the shape colors).
When I go to load it in Ursina, it gives me the following…

Psychon Night
- 53
- 1
- 8
0
votes
1 answer
OpenGL Texturing mesh FrontSide and BackSide
I doesn't have experience with OpenGL (and my question proof this) but I need a little snipplet to solve a problem. I have a mesh, a square and I need to apply 2 Texture: 1 FrontSide and 1 BackSide.
This is the code to apply the texture…

Neo1975
- 124
- 11
0
votes
1 answer
Polybrush errors in unity 2019.4
i tried to import Polybrush in my unity project on editor 2019.4, and it seems causing many errors, is there a way to correct the errors and use Polybrush again ?
Thanks in advance.

WildFrog
- 21
- 5