Panorama icon indicating copy to clipboard operation
Panorama copied to clipboard

How to make the image into a little planet effect

Open heshanghuixitou123 opened this issue 8 years ago • 1 comments

hi, please add a function that can make the image into a little planet effect, thanks

heshanghuixitou123 avatar Jul 14 '16 01:07 heshanghuixitou123

If you want to view the textured sphere from the outside, the first step is to translate the sphere, right now the camera is set to the origin (0,0,0) same as the sphere.

If you add a glTranslatef(x, y, z) let me know if that begins to create the effect.

You want to animate the translation. And if you are dealing with viewing the textured sphere from the outside, do you want to see the inside texture or the outside texture?

glEnable(GL_CULL_FACE);

then

glCullFace(GL_BACK);
or
glCullFace(GL_FRONT_AND_BACK);
or
glCullFace(GL_FRONT);

mayakraft avatar Dec 22 '17 18:12 mayakraft