Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
975 views
in Technique[技术] by (71.8m points)

graphics - Bump-map a sphere with a texture map

We would like to bump-map a sphere with a texture map. However, the surface of the sphere has an area that is 10 times the area of the texture map(area for both in pixels). Describe different ways in which the texture map can be used for bump mapping.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. usually rectangle texture is used for spheres

    texture (u,v) coordinates are used as angles for spherical coordinates. The result is that texels are bigger near equator and smaller near poles. At poles all the texels merge to single pixel. This is how to do it

    When you use these maps (color,normal,light,clouds):

    color normal light cloud

    when combined with single light source (Sun) I got this result:

    result

    On the left side with atmospheric scattering and on the right without it. If you zoom a bit you can see the mountains.

  2. There are more ways then just rectangular sphere maps

    You can use non linear sphere maps with different properties like eqisurface/distance etc. Here some examples of sphere maps (from google):

    rectangular:

    rectangular

    equidistant/paper model:

    equidistant/paper model

    equidistant:

    equidistant


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...