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
When creating data arrays from Uint8ClampedArray, VTK infers the texture type to be a float texture, not a UCHAR. This is (I suppose) because VtkDataTypes.UNSIGNED_CHAR is "Uint8Array", so the data type does not get properly detected when creating the texture.
Steps to reproduce
Create a DataArray from a Uint8ClampedArray, with some random pixel data
Display this data on screen (using an ImageMapper etc etc)
Detailed Behavior
getDefaultTextureInternalFormat in Rendering/OpenGL/RenderWindow.js doesn't match the data type to be uchar, and falls down to the default float case.
Expected Behavior
The OpenGL texture uses the right data type (UCHAR), that does not require the OES_texture_float_linear extension.
Environment
vtk.js version: 29.7.0
Browsers: Latest firefox+chrome
OS: Linux
The text was updated successfully, but these errors were encountered:
Bug description
When creating data arrays from Uint8ClampedArray, VTK infers the texture type to be a float texture, not a UCHAR. This is (I suppose) because VtkDataTypes.UNSIGNED_CHAR is "Uint8Array", so the data type does not get properly detected when creating the texture.
Steps to reproduce
Detailed Behavior
getDefaultTextureInternalFormat in Rendering/OpenGL/RenderWindow.js doesn't match the data type to be uchar, and falls down to the default float case.
Expected Behavior
The OpenGL texture uses the right data type (UCHAR), that does not require the
OES_texture_float_linear extension
.Environment
The text was updated successfully, but these errors were encountered: