A 3D Texture stores multiple layers of a normal texture, thus requiring a three texture-coordinates (U,V and W). The hardware can also apply texture filters and address modes to it.
Questions tagged [3d-texture]
38 questions
1
vote
1 answer
OpenGL Layered Rendering renders only zeros
I want to create a pyroclastic volume and store it in a 3D-Texture. This is no Problem when I do this on the CPU. But since the CPU is to slow for my application I want to create the 3D-Texture on the GPU with the help of layered rendering.
The…

Pikkostack
- 540
- 1
- 9
- 23
1
vote
1 answer
OpenGL Texture3D FragmentShader Write Into Layers
i want to filter a texture (no mipmapping) and write the filtered levels into a 3D-Texture. I already created a 3D-Texture with following code:
glGenTextures(1, &outTexture);
glBindTexture(GL_TEXTURE_3D, outTexture);
glTexParameterf(GL_TEXTURE_3D,…

TreCore
- 21
- 8
1
vote
0 answers
Sphere Material: 360-Video From Ultra-Fisheye Lens
For about a year I've been successfully creating 360-videosphere VR experiences in Unity, using Unity's MovieTexture and ultra-wide panoramic mp4 videos. Stitched together from five GoPro cameras, the source videos were 1200x800 wide, with the…

Shannon Perkins
- 353
- 4
- 12
1
vote
1 answer
OpenGL Gaussian Kernel on 3D texture
I would like to perform a blur on a 3D texture in openGL. Since it is separable I should be able to do it in 3 passes. My question is, what would be the best way to cope with it?
I currently have the 3D texture and fill it using imageStore. Should I…

tigeradol
- 259
- 2
- 16
1
vote
1 answer
Besides how texels are fetched, what differences are there between 2D and 3D textures?
I'm in the process of porting an OpenGL app to the web, and discovered that WebGL 1.0 does not support 3D textures (will support in 2.0).
I use 16 x 16 x 16 textures for the colour information of some simple models (for a blocky kind of look).
Now…

Fault
- 420
- 3
- 17
1
vote
1 answer
OpenGL - 3D texturing - conceptual questions
I have some conceptual questions about 3D textures and texture mapping in OpenGL that I am trying to wrap my head around. The questions pertain to the implementation of the code especially for 3D texturing in this tutorial:…

Eagle
- 1,187
- 5
- 22
- 40
1
vote
1 answer
Perfect (3D) texture mapping in opengl
I am trying to create a simple 3D-array visualisation in opengl. The 3D-array contains color values.
To achieve this, I could just draw lots of cubes, giving them texture-coordinates to point to the correct texel. Well, I tried it, and it works.
But…

scippie
- 2,011
- 1
- 26
- 42
1
vote
0 answers
Using large 3D textures in pyglet
I'm trying to do some GLSL particle stuff with precomputed velocity vector fields. These vector fields are stored as ~13 1024x170 float textures, each corresponding to a different "slice" in the z-plane. Ideally, I'd like to load these as a 3D…

user2217644
- 11
- 1
1
vote
2 answers
OpenGL 3D texture on cube
I have a simple 3d cube (all sides equal size) and a 3D texture in OpenGL. I want to map the 3D texture to the cube.
The result should be a cube which is colored all the way through such that every point inside the cube gets the color from a…

igr
- 4,529
- 2
- 15
- 20
0
votes
0 answers
Convert depth index of Data3Texture to z-coordinate of NDC
I want to clip a Data3DTexture (with width, height, depth) at a specific depth, so only render at this depth position and hide all other layers.
I adapt the clipping method from this idea (text ) to VolumeShader provided in ThreeJs.
The volume…

Toto
- 9
- 4
0
votes
0 answers
Convering a 32 bit data into 8 bit data for 3D textures
I am trying to save a 3D DXGI_FORMAT_R8G8B8A8_UNORM Texture to a file, then load that texture back afterwards. This is working for my 3D DXGI_FORMAT_R32G32B32A32_FLOAT texture, and this saves and loads correctly. However this is not working for the…

James
- 1
0
votes
1 answer
WebGL2 3D Texture Image coming upside-down, how to flip the output?
Originally I was working with 2D Textures and everything was fine because we are allowed to use UNPACK_FLIP_Y_WEBGL. However, in WebGL2 we are now able to utilize 3D Textures. The problem is that my output is still upside-down and now the…

adarian
- 334
- 7
- 24
0
votes
1 answer
Is iOS metal 3d texture sample method trilinear?
I am using a color lookup table to create a 3d texture, and use input color to find output color. but I found output color has some interrupt layer. Is this sampler sample 3d texture by using trilinear?
This is my code for creating 3d texture
the…

krosshj
- 855
- 2
- 11
- 25
0
votes
1 answer
How to render individual pixels for one layer of a 3DTexture in a framebuffer?
I have a 4x4x4 3DTexture which I am initializing and showing correctly to color my 4x4x4 grid of vertices (see attached red grid with one white pixel - 0,0,0).
However when I render the 4 layers in a framebuffer (all four at one time using…

billvh
- 57
- 5
0
votes
0 answers
Fragment shader for 3D-Textures
I want to use a fragment shader to write back into a 3D-Sampler: There is an array of images as input (as uniform sampler3D) to my opengl-es-application and i want to perform some per-pixel operations on it. Can i use a fragment shader to calculate…

Erik Brendel
- 683
- 9
- 23