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

天行健 君子當自強而不息

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>
            亚洲精品欧美日韩专区| 久久一区国产| 国内精品模特av私拍在线观看| 欧美精品一区二区三区很污很色的 | 欧美精品二区三区四区免费看视频| 久久国产精品72免费观看| 午夜亚洲精品| 久久九九精品| 久久伊伊香蕉| 欧美国产综合视频| 欧美日产一区二区三区在线观看| 国产精品黄视频| 国产一区二区中文| 国内精品伊人久久久久av一坑| 精品动漫av| 9色国产精品| 亚洲视频久久| 久久一区二区三区超碰国产精品| 亚洲高清资源| 欧美激情在线免费观看| 一区二区久久久久| 欧美a级理论片| 亚洲午夜久久久| 久久艳片www.17c.com| 欧美日韩免费一区| 国产亚洲一区二区三区在线观看| 亚洲黄色影片| 欧美伊人久久久久久午夜久久久久 | 午夜亚洲性色视频| 可以看av的网站久久看| 亚洲精品久久久久久一区二区| 午夜精品www| 鲁大师影院一区二区三区| 欧美日韩一区视频| 影院欧美亚洲| 久久成人18免费观看| 91久久久久久久久| 亚洲欧美日韩天堂| 欧美精品七区| 在线 亚洲欧美在线综合一区| 中文在线资源观看网站视频免费不卡 | 久久国产精品99精品国产| 亚洲国产91色在线| 亚洲欧美日韩一区二区三区在线观看 | 激情欧美丁香| 欧美在线在线| 亚洲最新在线| 欧美承认网站| 伊大人香蕉综合8在线视| 亚洲欧美卡通另类91av| 亚洲二区三区四区| 久久精品国产久精国产爱| 国产精品免费看久久久香蕉| 亚洲精品孕妇| 欧美国产日韩一区二区在线观看| 午夜精品区一区二区三| 欧美亚洲不卡| 亚洲午夜久久久| 亚洲人成久久| 欧美成人在线免费观看| 亚洲国产美女| 两个人的视频www国产精品| 亚洲免费一区二区| 久久se精品一区精品二区| 国产精品一区二区在线观看网站| 一本久道综合久久精品| 欧美成人xxx| 久热精品视频在线观看一区| 国产一区二区三区网站| 久久精品1区| 欧美伊久线香蕉线新在线| 国产精品美女久久久久久久| 亚洲深夜影院| 99这里只有久久精品视频| 欧美日韩成人一区二区三区| 一区二区高清视频在线观看| 亚洲精品乱码久久久久久久久 | 欧美一站二站| 一区二区视频在线观看| 久久午夜av| 久久精品首页| 国内精品久久久久久影视8| 免费91麻豆精品国产自产在线观看| 欧美在线观看视频一区二区| 精品动漫3d一区二区三区免费版| 久久蜜桃资源一区二区老牛| 欧美成年人视频| 欧美福利精品| 亚洲免费影视第一页| 亚洲少妇最新在线视频| 国产精品亚洲一区二区三区在线| 欧美一区国产二区| 久久久久免费观看| 亚洲精品一区二区三| 9l视频自拍蝌蚪9l视频成人| 国产精品一页| 欧美成人精品一区二区| 欧美视频在线观看一区| 久久精品国产2020观看福利| 久久伊人亚洲| 亚洲午夜小视频| 久久av一区二区三区亚洲| 亚洲精品在线看| 亚洲国产老妈| 国产精品久久久久三级| 免费精品视频| 国产精品日韩在线| 亚洲国产1区| 激情成人av在线| 一本大道久久精品懂色aⅴ| 国产久一道中文一区| 欧美好吊妞视频| 国产精品网曝门| 欧美激情精品久久久久久蜜臀| 欧美性jizz18性欧美| 女人色偷偷aa久久天堂| 国产精品日韩欧美一区| 亚洲国产91| 精品69视频一区二区三区| 亚洲激情在线激情| 国产欧美一二三区| av成人免费观看| 亚洲第一精品在线| 99精品久久免费看蜜臀剧情介绍| 日韩一级免费| 亚洲国产精品一区二区三区| 亚洲综合色噜噜狠狠| 在线免费观看日本一区| 亚洲一区视频| 亚洲欧美成人一区二区在线电影 | 亚洲观看高清完整版在线观看| 亚洲男同1069视频| 亚洲视频大全| 欧美福利视频一区| 亚洲国产成人久久| 亚洲激情另类| 久热精品视频| 影音先锋另类| 久久成年人视频| 久久国产日韩| 国产精品视区| 亚洲一区激情| 亚洲欧美日韩精品久久久| 欧美日韩国产高清| 亚洲精品之草原avav久久| 亚洲国产成人精品久久久国产成人一区| 午夜精品久久久久久久久久久| 亚洲欧美高清| 国产农村妇女毛片精品久久莱园子| 国产精品一区亚洲| 亚洲毛片在线看| 美女视频黄免费的久久| 麻豆成人在线| 亚洲欧洲精品一区二区三区| 久久精品亚洲精品国产欧美kt∨| 免费看黄裸体一级大秀欧美| 亚洲国产精品第一区二区三区| 久久精品国产一区二区三区免费看 | 亚洲性人人天天夜夜摸| 欧美精品一区二区三区一线天视频| 亚洲国产精品黑人久久久| 在线观看欧美成人| 美国十次成人| 99精品国产在热久久下载| 亚洲欧美一区二区三区久久| 欧美午夜宅男影院| 欧美中文字幕在线观看| 欧美a级理论片| 亚洲精品日日夜夜| 国产精品午夜国产小视频| 久久精品夜色噜噜亚洲a∨| 欧美激情第六页| 在线中文字幕日韩| 精品不卡视频| 欧美三级视频在线观看| 欧美在线观看视频一区二区| 亚洲第一级黄色片| 亚洲欧美日韩系列| 亚洲国产精品国自产拍av秋霞| 欧美日韩大片| 久久精品免费看| 一区二区三区精品国产| 免费日韩精品中文字幕视频在线| 亚洲丝袜av一区| 亚洲国产精品va在线看黑人| 国产精品高潮呻吟久久av黑人| 久久成人在线| 亚洲精品国产日韩| 久久国产一区| 99国内精品| 经典三级久久| 国产精品蜜臀在线观看| 猫咪成人在线观看| 久久国产欧美日韩精品| 亚洲精品美女在线观看播放| 国产欧美亚洲日本| 午夜免费在线观看精品视频| 欧美成人午夜激情| 久久久久成人精品免费播放动漫| 亚洲激精日韩激精欧美精品|