You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the exception i get when the ImageRaster is created on the second layer (it works fine for i=0)
java.lang.NullPointerException: null
at com.jme3.texture.image.ByteOffsetImageCodec.writeComponents(ByteOffsetImageCodec.java:85) ~[bin/:?]
at com.jme3.texture.image.DefaultImageRaster.setPixel(DefaultImageRaster.java:152) ~[bin/:?]
[...]
Following the exception
--->
codec.writeComponents(getBuffer(), x, y, width, offset, components, temp);
slice Which slice to use. Only applies to 3D images, 2D image
* arrays or cubemaps.
ImageRaster assumes that different layers of the 3d texture are stored in different ByteBuffers, while TextureUtil assumes that the layers are stored interleaved on a single bytebuffer.
I want to split a 256x16 grid into a 16x16x16 3d texture.
This is my code
This is the exception i get when the ImageRaster is created on the second layer (it works fine for i=0)
Following the exception
--->
--->
--> image.getData(slice);
From the javadoc
ImageRaster assumes that different layers of the 3d texture are stored in different ByteBuffers, while TextureUtil assumes that the layers are stored interleaved on a single bytebuffer.
The text was updated successfully, but these errors were encountered: