Login  Register

Texture mapping On the Earth model

Posted by ahn on Dec 04, 2014; 7:45pm
URL: https://forum.jogamp.org/Texture-mapping-On-the-Earth-model-tp4033715.html

Hi. I am trying to implement the Earth model.

I am trying to map earth texture on a sphere.
I have two different textures one is a texture of the Earth and the other is a texture about night light of the earth.
So I need to map the texture together on a sphere depend on where the light come from.
(if it faces to light then normal texture opposite side is night light texture)

As I am newbie to JOGL and I am studying by myself not easy find out the way how to solve..
Could anybody comment how to solve on this??

(I guess, I can solve it by blending the two picture or something?)