Alright, this is a fucking longshot and I know /g/ wouldn't know:Does anybody here have experience with WebGL? Specifically using the color of a "floor" texture to determine movement?I have movement. I have pre-stored the color values of each pixel of the texture.I cannot, for the life of me, get the math right to adjust my x/z coordinate in the scene to line with up the s/t coordinate in the texture.
>>590602Can you make like a JS-fiddle or something so we can look at the problem you're trying to solve? From what I can gather you are trying to "simulate" movement by moving texture coordinates around in stead of the actual character or whatever, is this correct? If so. The texture coords should update with the x/z vector of the "movement" for each frame so it will scroll as fast as the stationary character is simulated to move.
I see no mention of projection matrices or anything like that so that would be a start, I'm sure there's a bunch of tutorials out there.