textures Questions

1

I want to specify textures to be used when I render an array of sprites. So I put a texture index in their vertex data, and pass it as a flat value from my vertex shader to my fragment shader, but ...
Okelley asked 27/1, 2019 at 12:50

1

Solved

I have a OpenGL ES 2.0 QNX application that uses camera input, makes some processing and renders something to screen. All my shaders take GL_TEXTURE_EXTERNAL_OES texture from the camera as input a...
Knocker asked 24/7, 2018 at 13:48

1

Solved

I'm trying to create 2D texture object, 4x4 uint8_t. Here is the code: __global__ void kernel(cudaTextureObject_t tex) { int x = threadIdx.x; int y = threadIdx.y; uint8_t val = tex2D<uint8_t...
Coelostat asked 8/1, 2019 at 19:47

2

Solved

In the GLSL spec, and other sources about GLSL, sampler types are available in 3 dimensions: sampler1D, sampler2D, and sampler3D. However when I try to compile GLSL programs using WebGL in Chrome ...
Heartrending asked 2/6, 2011 at 3:33

2

Solved

Say I have an image of size 320x240. Now, sampling from an sampler2D with integer image coordinates ux, uy I must normalize for texture coordinates in range [0, size] (size may be width or height)....
Redfaced asked 13/11, 2016 at 14:4

3

Solved

In a game made with libgdx I have a TextureAtlas in which I have stored all the TextureRegions for my Animations of the Player. The Player by default has a blue T-Shirt (for example). Now I would l...
Graecoroman asked 4/6, 2014 at 9:56

1

Solved

So I read the OpenGL info page on textureGrad but it doesn't really explain anything. So you can explicitly specify the partial derivatives of P relative to X and Y What does this actually do? Ho...
Earthbound asked 9/1, 2014 at 1:20

1

Solved

I have a 512x512 SVG i'm drawing to a circular plane like this const texture = new THREE.TextureLoader().load('img/plane.svg'); ​ const material = new THREE.MeshBasicMaterial({ transparent: tru...
Lapel asked 18/7, 2018 at 20:18

4

Solved

I have an animation that I want to play flipped if the user presses the 'A' key on their keyboard. The animation is facing right in the file and is played normally until I try to flip the texture. ...
Rademacher asked 17/1, 2015 at 14:47

1

Solved

i'm trying to figure out for hours why I can't see the text inside the cube and I don't see why it's not working. There's two meshes, one of them is inside the other, but is invisible. When I com...
Unknot asked 5/6, 2018 at 0:32

3

Solved

When it comes to 3D animation, there are a lot of terms and concepts that I'm not familiar with (maybe a secondary question to append to this one: what are some good books to get familiar with the ...
Baxley asked 18/4, 2018 at 13:14

2

Solved

We use buffer objects for reducing copy operations from CPU-GPU and for texture buffer objects we can change target from vertex to texture in buffer objects. Is there any other advantage here of te...
Tilbury asked 29/1, 2014 at 7:44

2

Solved

I'm trying to use OpenGL (C++) to render two textures onto a rectangle. I'm having some trouble blending the two of them though. The first image comes from a .jpg file (https://learnopengl.com/img...
Arrivederci asked 17/8, 2017 at 18:44

3

I have a very basic knowledge of using OpenGL, especially on Android. I'm developing an app that uses OpenGL in order to switch between full screen images in a fast way (since it's too slow using t...
Ordinand asked 3/9, 2012 at 8:50

2

Solved

I want to draw a image to the screen, but what I get is the black square but without the texture on it. The image path is correct and loaded, because the rect have the correct size. I have a separa...
Calan asked 13/2, 2016 at 15:43

0

I'm trying to cluster textures, based on the features extracted from Gabor bank that I've created. But the result is far from what is typically expected so here is what I'm doing >> 1-generat...
Richthofen asked 11/3, 2018 at 8:46

2

Solved

I am using stb_image to load a 32-bit PNG file (RGBA) and I am creating an OpenGL texture with it. It works fine for 24-bit PNG files (with no alpha channel), but when I use a 32-bit PNG file, som...
Tinytinya asked 18/4, 2014 at 8:13

1

Solved

I have a problem with OpenGL and glGetTexImage(). I want to get the pixels of a texture that I've created before with code like this: glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, ...
Lancastrian asked 22/2, 2018 at 23:30

1

Solved

OpenGL has array textures, denoted in shaders by specific sampler types: sampler2DArray array_texture; But GLSL also allows samplers to be aggregated into arrays: sampler2D array_of_textures[10...
Handbreadth asked 19/2, 2018 at 2:21

2

I'm trying to get a video texture to play on geometry in iOS using three.js but instead of playing the video as a texture, the browser launches the video in a player that covers the window. I have ...
Manhunt asked 14/4, 2015 at 7:8

3

Solved

In my opengl project I need to convert an UIImage in texture; what's the way to do it? Can you help me?
Sibbie asked 16/1, 2013 at 16:18

3

In my game, I am using simple textures on quads. I could see Unity GUI allows us to slice the image by setting "image type" option as sliced. I would like to do the same to my other textures I use...
Lauranlaurance asked 14/2, 2015 at 13:38

3

I have a scene that has many objects, that all have different textures. For some reason 2 objects have a red hue to them, even though their textures have no red. You can still see the pattern in th...
Alfilaria asked 15/10, 2016 at 11:18

2

Solved

I'm trying to animate a Canvas-based texture that is mapped onto a plane, like a billboard. I've made a point of including material.needsUpdate & texture.needsUpdate, but I'm still unable to ge...
Englebert asked 16/9, 2012 at 21:3

4

Solved

How would I link in or compile SOIL (http://lonesock.net/soil.html) into my C++ OpenGL project on Mac OS X?
Malcommalcontent asked 10/12, 2009 at 23:17

© 2022 - 2024 — McMap. All rights reserved.