Panorama
Panorama copied to clipboard
How to make the image into a little planet effect
hi, please add a function that can make the image into a little planet effect, thanks
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);