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

天行健 君子當自強而不息

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 閱讀(228) 評論(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>
            亚洲黄色在线视频| 国产精品99久久久久久宅男 | 国产精品jvid在线观看蜜臀| 亚洲国语精品自产拍在线观看| 欧美一级片一区| 一区二区三区产品免费精品久久75 | 一区二区三区产品免费精品久久75| 欧美xx69| 亚洲精品一区二区三区婷婷月| 欧美www在线| 蜜桃伊人久久| 亚洲人线精品午夜| 亚洲成色999久久网站| 久久琪琪电影院| 伊人久久男人天堂| 欧美国产大片| 欧美久久一区| 亚洲自拍偷拍网址| 亚洲欧美在线一区二区| 国产一区二区三区四区三区四 | 亚洲欧美成人一区二区在线电影| 欧美激情久久久久久| 欧美日韩三级电影在线| 亚洲精品在线免费观看视频| 亚洲第一精品福利| 欧美精品1区2区| 亚洲午夜电影网| 亚洲伊人久久综合| 亚洲深夜福利| 欧美亚洲免费高清在线观看| 欧美日韩亚洲国产精品| 亚洲精品日本| 亚洲美女电影在线| 国产精品二区影院| 欧美一区二区三区成人| 久久激情视频免费观看| 亚洲国产高潮在线观看| 亚洲福利视频在线| 国产精品激情电影| 久久久久国产免费免费| 裸体歌舞表演一区二区| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲精品影视| 国产亚洲一区二区三区在线播放| 麻豆精品视频在线观看| 99re国产精品| 女生裸体视频一区二区三区| 噜噜噜在线观看免费视频日韩| 亚洲国产高清一区二区三区| 亚洲福利在线视频| 国产精品99免费看| 久久综合网hezyo| 欧美日韩国产综合久久| 久久国产精品99精品国产| 美国成人直播| 欧美一区二区在线播放| 欧美国产日韩a欧美在线观看| 亚洲在线观看视频网站| 久久久av网站| 亚洲一区三区视频在线观看| 久久中文欧美| 午夜精品视频在线| 国产日韩精品一区观看| 久久理论片午夜琪琪电影网| 欧美好吊妞视频| 久久精品人人做人人爽| 免费在线观看成人av| 久久国产日韩| 国产精品ⅴa在线观看h| 欧美激情精品久久久久久| 国产精品www.| 亚洲黄色成人| 欧美在线观看视频一区二区三区 | 亚欧美中日韩视频| 欧美国产欧美综合| 欧美高清视频在线 | 欧美日韩精品福利| 久久影院午夜论| 国产精品乱码人人做人人爱| 欧美激情区在线播放| 国产在线视频欧美| 欧美极品在线视频| 午夜精品免费| 欧美日韩精品免费观看| 久久在线视频在线| 国产日韩av一区二区| 亚洲精品韩国| 99国产精品久久久久久久成人热 | 99re在线精品| 日韩一二三在线视频播| 免费日本视频一区| 欧美成人蜜桃| 在线精品国产欧美| 久久精品99国产精品日本| 久久av一区二区三区| 国产人妖伪娘一区91| 亚洲女人av| 亚洲大胆在线| 一区二区三区精品在线| 一区二区欧美激情| 欧美破处大片在线视频| 欧美黄污视频| 亚洲精品美女免费| 欧美人牲a欧美精品| 亚洲精品美女在线| 中文在线一区| 国产农村妇女毛片精品久久麻豆| 亚洲一区二区三区乱码aⅴ蜜桃女 亚洲一区二区三区乱码aⅴ | 欧美一级播放| 久久亚洲春色中文字幕| 黄色免费成人| 欧美高清hd18日本| 日韩视频一区二区三区在线播放免费观看 | 久久成人资源| 久久黄金**| 国产又爽又黄的激情精品视频| 欧美在线观看你懂的| 欧美69视频| 99在线热播精品免费| 欧美性猛交xxxx免费看久久久 | 欧美国产三区| 国产精品女人毛片| 欧美亚洲视频| 亚洲第一久久影院| 久久久久99| 久久久www成人免费精品| 黑人中文字幕一区二区三区| 老司机免费视频久久| 亚洲美女视频网| 久久精品国产99精品国产亚洲性色| 狠狠色丁香久久婷婷综合丁香| 久久亚洲色图| 亚洲视频一区在线观看| 麻豆精品精华液| 亚洲一级高清| 亚洲国产欧美一区二区三区久久 | 亚洲女女做受ⅹxx高潮| 国产欧美综合在线| 欧美激情综合五月色丁香| 国外视频精品毛片| 亚洲福利视频在线| 狠狠爱综合网| 欧美久久精品午夜青青大伊人| 亚洲一二三区精品| 欧美国产日韩亚洲一区| 性做久久久久久免费观看欧美| 亚洲第一黄网| 国产欧美在线视频| 欧美四级在线| 欧美精品一区二区视频| 久久成人资源| 亚洲女爱视频在线| 一本色道久久加勒比88综合| 欧美国产日韩xxxxx| 欧美在线综合| 亚洲自拍三区| 99riav国产精品| 亚洲国产日韩欧美| 国精品一区二区| 一个人看的www久久| 亚洲综合色自拍一区| 久久综合网hezyo| 欧美一区二区日韩| 亚洲一区二区三区乱码aⅴ蜜桃女| 影音欧美亚洲| 国产一区视频在线观看免费| 欧美偷拍一区二区| 欧美日韩一区二区视频在线观看| 免费看的黄色欧美网站| 久久av资源网站| 午夜在线播放视频欧美| 制服丝袜亚洲播放| 夜夜爽夜夜爽精品视频| 亚洲国产你懂的| 欧美sm极限捆绑bd| 嫩草伊人久久精品少妇av杨幂| 久久婷婷久久一区二区三区| 欧美专区一区二区三区| 欧美影院在线| 一区二区三区四区五区精品| 国产精品爱久久久久久久| 亚洲无线一线二线三线区别av| 国产亚洲精品久| 国产精品久久久久久久久借妻| 欧美色图首页| 欧美深夜影院| 欧美日韩亚洲一区二区三区在线 | 亚洲图片欧美一区| 亚洲婷婷国产精品电影人久久| 亚洲一区尤物| 香蕉av777xxx色综合一区| 久久国产色av| 理论片一区二区在线| 欧美高清在线播放| 欧美三级电影大全| 国产一区二区高清| 在线免费一区三区| 欧美成人高清视频| 午夜久久黄色| 欧美在线视频日韩|