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

天行健 君子當自強而不息

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>
            一区二区三区视频在线观看| 午夜伦欧美伦电影理论片| 久久这里有精品15一区二区三区 | 麻豆精品91| 欧美亚洲一区二区在线观看| 国产三级精品在线不卡| 久久99在线观看| 久久激情五月婷婷| 激情久久久久久久| 欧美黄污视频| 欧美日韩午夜视频在线观看| 亚洲欧美日韩第一区| 亚洲自拍偷拍一区| 在线观看国产日韩| 亚洲精品欧洲精品| 国产精品亚洲综合| 久久野战av| 欧美大片在线观看一区| 亚洲午夜在线观看视频在线| 亚洲自拍啪啪| 亚洲黄色免费网站| 亚洲精品在线视频| 国产精品视频精品视频| 欧美中文字幕精品| 欧美电影美腿模特1979在线看| 99综合视频| 欧美一级网站| 亚洲老板91色精品久久| 性欧美xxxx大乳国产app| 亚洲国产成人久久| 一本久久综合| 影音先锋在线一区| 亚洲视频一区二区免费在线观看| 国产日韩欧美a| 91久久精品一区| 欧美系列精品| 亚洲高清成人| 国产网站欧美日韩免费精品在线观看 | 狂野欧美性猛交xxxx巴西| av成人毛片| 久久久91精品| 午夜亚洲性色福利视频| 免费在线国产精品| 久久成人av少妇免费| 欧美激情久久久久| 久久久亚洲高清| 欧美三区不卡| 91久久久久久久久| 极品日韩久久| 亚洲欧美影音先锋| 亚洲一级片在线观看| 免费成人高清在线视频| 久久综合九色综合欧美就去吻| 欧美揉bbbbb揉bbbbb| 亚洲国产精品久久久久秋霞蜜臀 | 国产有码在线一区二区视频| 亚洲精品视频中文字幕| 亚洲国产小视频| 久久久久久久久岛国免费| 午夜天堂精品久久久久| 欧美日韩中文在线| 亚洲精品久久久久久下一站| 亚洲成色精品| 久久亚洲春色中文字幕| 久久人91精品久久久久久不卡 | 久久精品国产精品 | 亚洲第一区色| 久久噜噜亚洲综合| 久久综合九色欧美综合狠狠| 国产一区二区丝袜高跟鞋图片| 亚洲图片欧美午夜| 午夜精品久久久久久99热| 欧美午夜久久久| 一区二区三区欧美成人| 亚洲免费在线观看视频| 国产精品久久久久久久一区探花| 亚洲精品久久久久久一区二区| 99精品欧美一区二区三区综合在线| 美女图片一区二区| 欧美国产综合视频| 亚洲美女在线视频| 欧美日韩精品久久久| 99伊人成综合| 欧美资源在线| 在线观看国产欧美| 欧美精品久久99久久在免费线| 亚洲乱码视频| 午夜综合激情| 伊人久久男人天堂| 欧美精品久久久久久久| 亚洲午夜一区二区三区| 久久久一二三| 亚洲精品一二三| 国产精品久久国产精品99gif| 亚洲影院色无极综合| 久久躁狠狠躁夜夜爽| 亚洲精品国产精品国自产观看| 欧美日韩精品国产| 欧美亚洲网站| 亚洲丁香婷深爱综合| 亚洲免费在线看| 一区国产精品| 欧美四级电影网站| 欧美在线视频观看| 日韩视频免费观看| 久久精品免费电影| 亚洲九九爱视频| 国产精品视频久久久| 噜噜噜躁狠狠躁狠狠精品视频 | 你懂的亚洲视频| 一区二区三区国产精品| 国产一区二区黄| 欧美日韩国产美| 久久久久九九九九| 一区二区三区四区五区视频| 久久久青草青青国产亚洲免观| 亚洲看片免费| 在线观看亚洲a| 国产伦精品一区二区三区免费迷| 久久人91精品久久久久久不卡| 99国产精品私拍| 亚洲国产精选| 久久免费视频在线观看| 亚洲一区在线播放| 亚洲黄色av| 黄色在线成人| 国产精品三区www17con| 欧美日韩国产影片| 欧美成人午夜激情视频| 久久激情视频| 亚洲欧美在线视频观看| 99视频精品免费观看| 亚洲韩国一区二区三区| 欧美成人高清视频| 蜜桃av综合| 久热这里只精品99re8久| 欧美一区二区三区四区在线观看地址| 99精品国产福利在线观看免费| 亚洲第一区中文99精品| 狠狠色综合网站久久久久久久| 国产精品欧美日韩久久| 国产精品xxxxx| 欧美日韩天堂| 欧美日韩一区免费| 国产精品成人观看视频免费 | 久久国产加勒比精品无码| 亚洲综合不卡| 午夜精品一区二区三区电影天堂 | 亚洲视频一区二区| 在线看欧美日韩| 一区二区三区在线观看视频| 国产日韩精品在线播放| 激情成人综合| 在线视频观看日韩| 尤物yw午夜国产精品视频| 一区在线影院| 亚洲大片在线| 亚洲欧洲一区二区三区在线观看| 一色屋精品视频在线看| 亚洲国产小视频在线观看| 亚洲国产日韩欧美| 亚洲靠逼com| 亚洲在线一区二区三区| 性娇小13――14欧美| 久久精品一本| 欧美v国产在线一区二区三区| 欧美成人国产| 99国产精品99久久久久久| 中文在线一区| 久久精品国产2020观看福利| 裸体一区二区| 欧美香蕉视频| 国内精品久久久久影院 日本资源| 樱桃视频在线观看一区| 一本不卡影院| 欧美一区二区成人| 欧美成人精品1314www| 亚洲乱码日产精品bd| 午夜精品视频| 欧美成人亚洲成人| 国产精品久久久久久久久免费 | 国产午夜精品久久久| 最新亚洲一区| 亚洲免费在线看| 欧美freesex交免费视频| 亚洲免费高清| 久久精品官网| 国产精品电影在线观看| 精品福利电影| 亚洲综合清纯丝袜自拍| 欧美成人嫩草网站| 亚洲欧洲99久久| 欧美精品日韩www.p站| 国产亚洲精品高潮| 99亚洲一区二区| 久久在线播放| 亚洲淫性视频| 欧美日韩小视频| 亚洲日本久久| 麻豆成人精品|