Page 1 of 1

3D textures

Posted: Sun Jan 22, 2017 4:04 pm
by numzero
Is it possible to use 3D textures (not cube maps) with Irrlicht?

Re: 3D textures

Posted: Mon Jan 23, 2017 2:42 pm
by Mel
Not yet. You can create workarounds, though, which isn't very hard either :)

Re: 3D textures

Posted: Mon Jan 23, 2017 6:25 pm
by Cube_
Easiest workaround is to just generate a 2D slice of whatever plane you currently want to apply the 3D texture to

Re: 3D textures

Posted: Thu Feb 16, 2017 9:58 pm
by numzero
> generate a 2D slice

It does something similar now. I just though GPU would do that faster and better.

Re: 3D textures

Posted: Fri Feb 17, 2017 7:18 am
by Cube_
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.

Re: 3D textures

Posted: Fri Feb 17, 2017 1:18 pm
by devsh
Our fork of Irrlicht supports 2D texture arrays, 3D textures and TBOs https://github.com/buildaworldnet/IrrlichtBAW

Re: 3D textures

Posted: Fri Feb 24, 2017 8:17 pm
by Granyte
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

Re: 3D textures

Posted: Fri Feb 24, 2017 8:44 pm
by devsh
I will most probably push a new version to GIT sometime tomorrow or early next week... looking for testers :D