青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

Working with Maps and Levels(12)

Using Auto Maps

Your game world is a huge place, and when players start exploring their surroundings,
you may want to make things easier on them by providing a miniature version
of your map for their reference. Not just any map mind you—a map that is smart
enough to know where the player has been and the places he still needs to explore.

You need to display only those portions of the map that a player has explored.
Sections never visited do not need to be shown—that is, not until discovered by
players. In that way, players can look back to where they’ve been and maybe plot
out their paths to future destinations. This is the magic of auto mapping.

 

Auto Maps in Action

One of my favorite games, Phantasy Star Online, by Sega Corp., uses auto mapping
in a seamless fashion. Check out Figure 17.5, which shows the auto map at work in
the upper-right corner of the screen.

In Phantasy Star Online, the main player and other important characters in the
game are displayed on the auto map as well as small arrows. As the main player
walks around, the map scrolls to show the area around the player. As the player
visits new rooms (sections), the rooms are revealed on the auto map.

This auto-mapping feature are easy to re-create for your own game project.

 

Big Map, Small Map

The challenge here is to change your large game level into a small map suitable
for display in your game. Following snap shows a screen shot of the Mapping example
program. Notice the map in the upper-right corner of the screen. It uses alpha blending
(refer to Chapter 6 for more on this topic) to show the game action underneath.

The easiest way to make a smaller version of the in-game level is to go into your 3-D
editor and load up the level of the small map that you want to construct.

 

Loading and Displaying Auto Maps

Okay, the small auto map is created and waiting to be used. What you need to do at
this point is load the .X file and query it for the individual meshes contained
within. Using the Graphics Core’s cMesh object is perfect for loading the mesh.

Now, you construct an array of vertex buffers—one for each mesh in the auto map.
You fill each vertex buffer with the triangle face data from each mesh in the cMesh
object. The trick at this point is that although you are copying the vertex data from
the mesh to the vertex buffer, the Y-coordinate is tossed out so that the resulting
vertex buffer mesh is flat, and thus the 2-D look of the auto map.

To display the loaded map, you just position a camera, set up a viewport to render
to on the display, and render each vertex buffer. With auto mapping in place, you
can skip rendering the vertex buffers that represent sections of the map that have
not been visited by the character.

Although the concept sounds simple, get a jump on things by looking at some
working code.

posted on 2007-12-10 15:11 lovedday 閱讀(230) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導航

統計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            浪潮色综合久久天堂| 欧美影院一区| 亚洲国产va精品久久久不卡综合| 午夜久久久久久久久久一区二区| 国产精品欧美经典| 性色av一区二区怡红| 亚洲欧美另类中文字幕| 国语自产精品视频在线看8查询8 | 久久亚洲精品视频| 亚洲成色777777女色窝| 亚洲国产精品传媒在线观看| 欧美激情91| 亚洲男女毛片无遮挡| 欧美一区二区三区免费观看视频 | 一区二区亚洲精品| 欧美国产视频在线观看| 欧美日韩国产限制| 亚洲欧美日韩另类精品一区二区三区| 亚洲在线网站| 在线免费观看日本一区| 99精品视频免费观看| 国产深夜精品| 亚洲国产精品一区二区久| 欧美午夜免费电影| 久久香蕉精品| 欧美视频网站| 免费看亚洲片| 国产精品美女午夜av| 嫩草成人www欧美| 欧美日韩一区免费| 久久亚洲春色中文字幕| 欧美三级在线视频| 免费亚洲婷婷| 国产精品亚洲一区二区三区在线| 免费视频一区| 国产日韩精品一区二区三区在线| 亚洲欧洲精品一区二区精品久久久| 国产精品免费网站| 亚洲国产一成人久久精品| 国产欧美日韩视频一区二区| 亚洲人成网在线播放| 国户精品久久久久久久久久久不卡| 亚洲高清视频中文字幕| 国模精品娜娜一二三区| 日韩亚洲一区二区| 亚洲国产一区二区三区高清 | 美女精品在线观看| 国产精品午夜电影| 亚洲欧洲一区二区三区久久| 一区二区在线观看视频在线观看| 亚洲自拍啪啪| 亚洲免费视频在线观看| 欧美激情一二三区| 免费中文日韩| 国产主播一区二区三区四区| 亚洲一级黄色| 亚洲欧美清纯在线制服| 欧美久久久久久久久久| 亚洲国产高清高潮精品美女| 伊人婷婷欧美激情| 欧美一级片在线播放| 欧美在线播放高清精品| 国产精品理论片| 亚洲午夜激情免费视频| 亚洲影院免费| 国产精品国产三级国产普通话99 | 欧美日韩国产小视频| 亚洲高清视频的网址| 亚洲精品久久嫩草网站秘色| 可以免费看不卡的av网站| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产一区二区中文字幕免费看| 亚洲自拍偷拍色片视频| 欧美中文在线视频| 国产一区二区按摩在线观看| 欧美在线免费播放| 美女黄毛**国产精品啪啪| 好吊色欧美一区二区三区视频| 欧美一区二区三区电影在线观看| 久久久久国产精品麻豆ai换脸| 精品99一区二区三区| 老牛影视一区二区三区| 亚洲人成在线影院| 亚洲欧美国产精品桃花| 国产日产精品一区二区三区四区的观看方式| 亚洲午夜精品久久久久久浪潮| 午夜久久电影网| 狠狠色噜噜狠狠色综合久| 久久视频一区| 99精品热视频| 久久精品在线观看| 尤物九九久久国产精品的分类| 美乳少妇欧美精品| 999亚洲国产精| 欧美专区日韩专区| 亚洲国产三级网| 欧美亚州在线观看| 久久久久久久性| 亚洲精品欧洲精品| 久久精彩视频| 99精品欧美一区| 国产欧美精品一区aⅴ影院| 久久婷婷国产麻豆91天堂| 91久久精品美女高潮| 欧美伊人久久大香线蕉综合69| 在线不卡中文字幕播放| 欧美性大战xxxxx久久久| 欧美与欧洲交xxxx免费观看 | 欧美激情精品久久久久久变态 | 一区二区亚洲精品| 欧美日韩三级| 久久久欧美精品| 一区二区国产日产| 蜜臀99久久精品久久久久久软件| 一区二区高清在线| 国内精品免费在线观看| 国产精品狠色婷| 欧美大胆成人| 欧美中文在线观看国产| 亚洲无人区一区| 亚洲第一天堂av| 美国成人毛片| 久久福利电影| 亚洲永久精品大片| 亚洲伦理网站| 在线日本成人| 韩日欧美一区二区三区| 国产精品手机视频| 欧美三日本三级三级在线播放| 美女爽到呻吟久久久久| 欧美亚洲一级片| 亚洲天堂第二页| 日韩西西人体444www| 欧美福利电影网| 免费在线视频一区| 久久亚洲精品视频| 久久久精品视频成人| 欧美一区视频| 欧美一区二区免费观在线| 亚洲一区二区毛片| 亚洲私人影院在线观看| 一区二区三区高清在线观看| 亚洲精品影视在线观看| 亚洲国产精品一区在线观看不卡| 狠狠色狠狠色综合| 国产在线精品成人一区二区三区| 国产视频亚洲精品| 国产一区二区三区网站| 国产综合亚洲精品一区二| 国产一区二区高清视频| 国产亚洲视频在线| 韩国av一区二区三区四区| 国产在线拍揄自揄视频不卡99| 国内视频精品| 在线看一区二区| 亚洲精品中文字幕在线观看| 亚洲狼人精品一区二区三区| 99国产精品99久久久久久| 一区二区三区www| 亚洲一区免费网站| 久久精品国产综合精品| 久久亚洲一区二区| 欧美福利电影网| 亚洲理论在线观看| 亚洲一区二区三区免费观看| 久久福利视频导航| 麻豆精品传媒视频| 欧美日韩视频在线一区二区| 国产精品免费区二区三区观看| 国产一区欧美| 日韩视频欧美视频| 亚洲欧美日韩国产成人精品影院| 久久精品人人做人人爽| 欧美韩日一区二区三区| 一本久久a久久精品亚洲| 欧美专区在线播放| 欧美极品一区二区三区| 国产精品久久久久7777婷婷| 黄色国产精品一区二区三区| 亚洲精品少妇30p| 久久成人国产| 亚洲欧洲精品一区二区三区波多野1战4| avtt综合网| 久久亚洲精品视频| 国产精品久久久久久五月尺| 一区二区在线视频播放| 亚洲视频1区| 久久综合色播五月| 亚洲蜜桃精久久久久久久| 久久国产精品第一页| 欧美日韩一区综合| 在线观看不卡| 欧美中文字幕视频在线观看| 91久久综合亚洲鲁鲁五月天| 欧美在线高清| 国产精品盗摄一区二区三区| 亚洲第一页自拍| 久久国产精品久久精品国产| 亚洲免费av网站| 美日韩精品免费观看视频|