Quick display of canvas textures

I am making a top-down game with simple 3D graphics. (I would be happy if it were like gta 2.) I implemented the affine texture mapping I found here , but it is too intense. >

So my question is: is there a better solution? I don't understand WebGL, but maybe hardware texture acceleration will be better than that? I need a function that will display a texture on a quad.

You can try my game here . (click Jto see wireframe and Kor Lto improve fps or quality). As you can see, this really needs some optimization. :-)

+5
source share
1 answer

Firstly, this is an amazing demonstration! Kudos for working on it.

For a use such as this WebGL, you will get maximum performance, and given that all you need is some textured cubes, I don’t think it would be terribly difficult for you. Yes, 3D has more of a learning curve than a 2D canvas, but given that you already do a lot of math to simulate 3D, you will probably find β€œreal” 3D to be easier!

LearningWebGL.com. , (, ) 5 .

, , , CSS! , , . , , , , WebGL.

+2

All Articles