Skip to content

Invalid texture data with deactivated mipmaps #88

Closed
@stlemme

Description

@stlemme

Using the texture filter combination (linear/linear)

<texture name="arvideo" filterMin="linear" filterMag="linear">
    <video autoplay="true" id="inputvideo" src="resources/my-video.mp4"></video>
</texture>

as shader input in conjunction with the usage of an Xflow operator results in an

Error: WebGL: texImage2D: invalid typed array type for given texture data type

Instead of directly passed the HTMLElement to WebGL, an ImageData object is retrieved from an internal canvas to fetch a frame of the video stream. This call returns an Uint8ClampedArray, which in turn is not valid as argument to be given to texImage2D (requires Uint8Array).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions