[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Home]
Settings Home
/3/ - 3DCG

Thread archived.
You cannot reply anymore.

File: 1489450535740.jpg (24 KB, 750x573)
24 KB
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.
Can 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.

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.