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

天行健 君子當自強而不息

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>
            久久亚洲综合色| 亚洲国产专区| 伊人久久大香线| 亚洲精品欧美激情| 欧美一区二区三区成人| 久久综合电影一区| 久久婷婷一区| 国产精品多人| 亚洲精品久久久久久久久久久| 久久伊人免费视频| 欧美刺激性大交免费视频| 国产精品呻吟| 亚洲天堂成人在线观看| 免费不卡中文字幕视频| 亚洲影视在线播放| 欧美激情一区二区三区高清视频| 国产日韩在线看片| 亚洲主播在线观看| 亚洲区免费影片| 久久成人综合网| 99精品国产在热久久| 久久午夜影视| 在线亚洲精品| 最新亚洲激情| 免费观看成人| 亚洲激情在线| 在线一区观看| 国产精品―色哟哟| 欧美www视频| 久久精品国产2020观看福利| 国产精品永久| 欧美一区二区三区在线| 美日韩免费视频| 亚洲精品偷拍| 午夜亚洲伦理| 韩国av一区二区三区| 久久久青草青青国产亚洲免观| 亚洲欧美国产毛片在线| 国产欧美日韩亚洲| 久久国产精品久久久久久久久久| 亚洲免费在线视频一区 二区| 依依成人综合视频| 夜夜夜久久久| 亚洲精品女人| 久久亚洲精品伦理| 欧美在线观看视频一区二区| 老巨人导航500精品| 亚洲免费黄色| 亚洲一区二区三区精品动漫| 亚洲欧洲在线一区| 一区二区欧美在线| 国产欧亚日韩视频| 99国产精品99久久久久久| 伊人精品视频| 欧美一区三区二区在线观看| 在线日韩中文字幕| 亚洲日韩视频| 亚洲成人在线免费| 欧美在线不卡| 99re6热在线精品视频播放速度| 亚洲美女毛片| 欧美日韩国产91| 欧美一区二区三区免费在线看| 欧美激情一区| 亚洲成人在线视频播放 | 中日韩高清电影网| 亚洲免费福利视频| 欧美jjzz| 欧美激情在线观看| 欧美午夜无遮挡| 久久天天躁狠狠躁夜夜爽蜜月| 国产免费成人av| 亚洲欧美电影院| 欧美中文字幕在线| 国产日韩精品一区二区| 欧美一区二区三区久久精品茉莉花 | 欧美日韩国产一区二区三区| 亚洲国产乱码最新视频| 国产日产欧产精品推荐色 | 一区二区三区四区国产精品| 国产精品99久久久久久久女警 | 麻豆9191精品国产| 欧美成人第一页| 日韩午夜激情av| 欧美日韩一二三区| 免费久久精品视频| 在线日本成人| 欧美国产精品v| 久久久国产一区二区| 欧美深夜影院| 欧美成人精品影院| 亚洲精选在线观看| 欧美日韩精品一区| 亚洲女与黑人做爰| 久久久久久尹人网香蕉| 在线看欧美视频| 欧美久久电影| 欧美大片一区二区| 狠狠色丁香久久婷婷综合丁香| 久久免费视频观看| 亚洲精品一区久久久久久| 亚洲免费在线视频| 欧美日韩成人在线观看| 一本久久a久久精品亚洲| 欧美一区二区视频在线| 伊人夜夜躁av伊人久久| 欧美日韩午夜| 久久激五月天综合精品| 亚洲人成网站精品片在线观看| 午夜视频在线观看一区二区三区| 欧美三区在线观看| 欧美自拍偷拍| 亚洲美女av网站| 另类天堂视频在线观看| 伊人久久亚洲热| 欧美性开放视频| 久久激情婷婷| 一区二区三区**美女毛片| 美女精品国产| 亚洲字幕在线观看| 亚洲欧洲精品一区| 狠狠入ady亚洲精品| 国产精品家庭影院| 欧美国产精品劲爆| 久久精品免费观看| 免费看的黄色欧美网站| 亚洲在线一区二区三区| 亚洲精品乱码久久久久久蜜桃91| 国产精品色午夜在线观看| 欧美高清视频在线播放| 久久久免费观看视频| 亚洲成人在线视频播放 | 亚洲影院污污.| 亚洲精品在线二区| 136国产福利精品导航网址应用| 欧美性视频网站| 欧美美女操人视频| 欧美激情成人在线视频| 久久一区二区精品| 久久精品人人做人人综合| 亚洲欧美激情一区| 亚洲一区二区三区免费在线观看| 亚洲国产婷婷综合在线精品 | 一本色道婷婷久久欧美| 国产精品毛片高清在线完整版| 亚洲欧美日韩一区二区三区在线| 久久久免费精品视频| 午夜视频一区二区| 午夜精品在线视频| 欧美在线视频播放| 欧美一区2区三区4区公司二百| 亚洲午夜精品| 亚洲成人影音| 亚洲国产欧美精品| 亚洲黄色三级| 亚洲精品久久久久久下一站| 亚洲国产三级| 日韩图片一区| 中文一区在线| 午夜视频在线观看一区二区三区| 亚洲欧美日韩成人| 欧美影院成年免费版| 欧美在线视频日韩| 久久视频在线视频| 欧美激情久久久久| 日韩视频在线免费观看| 亚洲午夜激情网页| 亚洲精品国产系列| 中日韩午夜理伦电影免费| 亚洲一区二区三区乱码aⅴ| 午夜日韩在线观看| 久久手机精品视频| 欧美激情综合网| 国产精品久久久久久av福利软件 | 久久亚洲私人国产精品va| 老司机免费视频久久| 欧美乱大交xxxxx| 国产欧美日韩一区二区三区在线| 国产欧美日韩视频一区二区三区| 狠狠久久五月精品中文字幕| 亚洲精品日韩在线观看| 亚洲在线播放| 欧美二区在线看| 在线亚洲欧美| 美女精品国产| 国产精品老女人精品视频| 狠狠色伊人亚洲综合网站色| 亚洲精品免费电影| 久久精品中文字幕免费mv| 欧美激情视频一区二区三区免费 | 欧美日本视频在线| 国产偷国产偷亚洲高清97cao| 在线观看成人av| 亚洲专区一二三| 亚洲成人资源| 午夜宅男欧美| 欧美视频免费在线观看| 在线成人www免费观看视频| 亚洲欧美一区二区三区极速播放 | 亚洲男人第一av网站|