javascript - 3D ball map rotating in HTML5 canvas -


i have created multiplayer pool game in html5 canvas , working fine. enhance real ball rotations. i'm using simple png files balls cannot "rotate" in direction (they can not real). there solution rotating maps each ball emulate real ball rotations? have drawn balls in 3d max, don't know how implement that. should render lot of ball rotations in directions each ball or there more simple way?

one of thoughts create flattened maps each ball dimensions 2*pi x pi (relative) actual spherical map each ball, , clip circle region current ball position, still 2d projection, not 3d.

to fake render 3d animation of rotation in single direction. this: enter image description here

then calculate direction vector , rotate sprite based on angle.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -