3D textures
3D textures
Is it possible to use 3D textures (not cube maps) with Irrlicht?
Re: 3D textures
Not yet. You can create workarounds, though, which isn't very hard either
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: 3D textures
Easiest workaround is to just generate a 2D slice of whatever plane you currently want to apply the 3D texture to
"this is not the bottleneck you are looking for"
Re: 3D textures
> generate a 2D slice
It does something similar now. I just though GPU would do that faster and better.
It does something similar now. I just though GPU would do that faster and better.
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: 3D textures
you could do that using the GPU using CUDA/OpenCL - iirc there's no builtin way to do that in most drivers, so if irrlicht did support it it'd probably slice it as needed, either on GPU or off GPU.
You could also just make a texture array with so many slices (whatever resolution you feel is reasonable) and then just use alpha blending (or something more sophisticated) to handle slices that cover multiple levels of the array (say a diagonal cut through a cube).
Although that's potentially ugly.
You could also just make a texture array with so many slices (whatever resolution you feel is reasonable) and then just use alpha blending (or something more sophisticated) to handle slices that cover multiple levels of the array (say a diagonal cut through a cube).
Although that's potentially ugly.
"this is not the bottleneck you are looking for"
Re: 3D textures
Our fork of Irrlicht supports 2D texture arrays, 3D textures and TBOs https://github.com/buildaworldnet/IrrlichtBAW
Re: 3D textures
If you are using ogl devsh fork has 3d texture and 2d arrays
if you are using dx i there is a version of the shader pipeline branch that has 3d texture and 2d arrays support
if you are using dx i there is a version of the shader pipeline branch that has 3d texture and 2d arrays support
Re: 3D textures
I will most probably push a new version to GIT sometime tomorrow or early next week... looking for testers