Closed devlak2001 closed 4 months ago
Hello, sorry I noticed another issue. When I try to open the camera on Chrome Android, the camera freezes. I get the following error in the console.
`Tracking error:
GLError: WebGL error.
---------- ERROR ----------
0:59: S0032: no default precision defined for variable 'vec4[9]'
---------- SOURCE CODE ----------
Hello! Please upgrade to version 0.2.0. This was already fixed in speedy-vision.
https://github.com/alemart/martins-js/releases
Thanks!
Hello, sorry I noticed another issue. When I try to open the camera on Chrome Android, the camera freezes. I get the following error in the console.
`Tracking error:
GLError: WebGL error.
---------- ERROR ----------
0:59: S0032: no default precision defined for variable 'vec4[9]'
---------- SOURCE CODE ----------
version 300 es
if 0 == 0
endif
if 0 == 0
define OUT_TYPE mediump vec4
elif 0 == 1
define OUT_TYPE mediump ivec4
elif 0 == 2
define OUT_TYPE mediump uvec4
else
error Unknown FS_OUTPUT_TYPE
endif
ifndef _GLOBAL_GLSL
define _GLOBAL_GLSL
define threadLocation() ivec2(texCoord * texSize)
define outputSize() ivec2(texSize)
define threadPixel(img) textureLod((img), texCoord, 0.0f)
define pixelAt(img, pos) texelFetch((img), (pos), 0)
define pixelAtShortOffset(img, offset) textureLodOffset((img), texCoord, 0.0f, (offset))
define pixelAtLongOffset(img, offset) textureLod((img), texCoord + vec2(offset) / texSize, 0.0f)
endif
ifndef _PYRAMIDS_GLSL
define _PYRAMIDS_GLSL
define pyrPixel(pyr, lod) textureLod((pyr), texCoord, (lod))
define pyrPixelAtOffset(pyr, lod, pot, offset) textureLod((pyr), texCoord + ((pot) * vec2(offset)) / texSize, (lod))
define pyrPixelAt(pyr, pos, lod) textureLod((pyr), (vec2(pos) + vec2(0.5f)) / texSize, (lod))
define pyrPixelAtEx(pyr, pos, lod, pyrBaseSize) textureLod((pyr), (vec2(pos) + vec2(0.5f)) / vec2(pyrBaseSize), (lod))
define pyrSubpixelAtEx(pyr, pos, lod, pyrBaseSize) textureLod((pyr), ((pos) + vec2(0.5f)) / vec2(pyrBaseSize), (lod))
define pyrSubpixelAtExOffset(pyr, pos, lod, pot, offset, pyrBaseSize) textureLod((pyr), (((pos) + vec2(0.5f)) + ((pot) * vec2(offset))) / vec2(pyrBaseSize), (lod))
define encodeLod(lod) ((LOG2_PYRAMID_MAX_SCALE + (lod)) / (LOG2_PYRAMID_MAX_SCALE + F_PYRAMID_MAX_LEVELS))
define LOD_EPS 0.0625f
define isSameLod(lod1, lod2) (abs((lod1) - (lod2)) < LOD_EPS)
define isSameEncodedLod(alpha1, alpha2) (abs((alpha1) - (alpha2)) < ENCODED_LOD_EPS)
endif
ifndef _FLOAT16_GLSL
define _FLOAT16_GLSL
define encodeFloat16(f) (vec2(packf16(f)) / 255.0f)
define decodeFloat16(v) unpackf16(uvec2((v) * 255.0f))
define encodePairOfFloat16(f) vec4(encodeFloat16((f).x), encodeFloat16((f).y))
define decodePairOfFloat16(v) vec2(decodeFloat16((v).rg), decodeFloat16((v).ba))
define encodeNullPairOfFloat16() vec4(1.0f)
define isNullPairOfFloat16(v) all(equal((v), encodeNullPairOfFloat16()))
define encodeDiscardedPairOfFloat16() vec4(0.0f, 1.0f, 0.0f, 1.0f)
define isDiscardedPairOfFloat16(v) all(equal((v), encodeDiscardedPairOfFloat16()))
define encodeFloat16NaN() vec2(0.5f, 1.0f)
define isEncodedFloat16NaN(v) all(equal((v), encodeFloat16NaN()))
endif
if 1
endif
define P(x,y) textureLod(corners, texCoord + pot * vec2((x), (y)) / texSize, 0.0f)
define S(j) decodeFloat16(pix[j].rb)
define B(j) float(isSameLod(decodeLod(pix[j].a), lod))