2D shader to draw representation of rotating sphere.

Posted by TheBigO on Game Development See other posts from Game Development or by TheBigO
Published on 2011-03-05T04:07:38Z Indexed on 2011/03/05 7:32 UTC
Read the original article Hit count: 303

Filed under:
|
|

I want to display a 3D textured sphere, and then rotate it in one direction. The direction will never change, and the camera will never move. One way is to actually create a spherical mesh, map a texture to it, rotate the sphere, and render in 3D.

My question is, is there a way to display a 2D circle, that looks like a rotating sphere, with just a 2D shader.

In other words, can someone think of a trick, like mapping a texture to the circle in a particular way, to give the appearance of an in-place rotating sphere, that is always viewed from the side?

I don't need exact shader code, I'm just looking for the right idea.

© Game Development or respective owner

Related posts about math

Related posts about shaders