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

天行健 君子當自強而不息

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>
            久久视频在线看| 久久国产精品久久w女人spa| 欧美极品色图| 久久中文精品| 欧美不卡在线| 欧美国产激情二区三区| 欧美精品激情blacked18| 欧美激情一区| 国产精品区二区三区日本| 国产精品影视天天线| 国产亚洲欧美日韩精品| 伊人婷婷欧美激情| 亚洲乱码国产乱码精品精98午夜| 亚洲精品一区二区三区不| 亚洲视频图片小说| 久久av资源网| 亚洲高清在线精品| 亚洲国产精品va在线观看黑人 | 欧美激情1区2区| 欧美日韩亚洲一区二区三区在线 | 亚洲一区欧美激情| 久久精品99国产精品| 欧美ab在线视频| 国产精品久久久久久久久搜平片| 国产一区二区三区久久悠悠色av| 亚洲人成网站精品片在线观看 | 亚洲图中文字幕| 久久久久99精品国产片| 亚洲日本中文| 久久精品视频免费| 欧美午夜电影完整版| 在线成人免费视频| 午夜日本精品| 欧美亚洲视频在线看网址| 一区二区三区国产| 久久国产免费| 欧美日韩亚洲不卡| 亚洲国产精品久久久| 欧美一区二区三区在线视频| 欧美国产精品日韩| 亚洲欧美日韩成人| 欧美日本中文| 在线观看不卡| 欧美在线精品免播放器视频| 亚洲欧洲在线观看| 久久资源在线| 国产亚洲精品激情久久| 亚洲已满18点击进入久久| 欧美a级片一区| 欧美一区二区三区免费观看| 国产精品国产三级国产普通话蜜臀 | 亚洲福利视频二区| 久久不射中文字幕| 亚洲视频在线二区| 欧美日韩免费观看一区三区| 亚洲激情影院| 欧美激情1区2区3区| 欧美一区久久| 国内精品国语自产拍在线观看| 亚洲自拍偷拍一区| 一区二区国产精品| 国产精品videosex极品| 亚洲无毛电影| 一区二区三区国产在线观看| 欧美日韩国产天堂| 国产精品99久久不卡二区| 亚洲黄网站在线观看| 欧美福利在线| 一本大道久久a久久精品综合| 亚洲国产精品va在线看黑人| 欧美国产乱视频| 亚洲国产你懂的| 亚洲高清在线视频| 欧美国产在线观看| 亚洲视频在线播放| 亚洲尤物视频网| 国产一区二区欧美| 美国成人毛片| 欧美99久久| 亚洲深夜影院| 亚洲欧美综合精品久久成人| 国产一区二区0| 欧美国产精品va在线观看| 欧美精品久久99久久在免费线| 亚洲少妇最新在线视频| 香蕉国产精品偷在线观看不卡| 国产午夜精品理论片a级探花 | 一区二区电影免费观看| 国产精品成人免费| 亚洲已满18点击进入久久| 亚洲一区二区三| 国产综合色产在线精品| 欧美高清视频www夜色资源网| 欧美顶级少妇做爰| 亚洲在线成人精品| 久久精品国产亚洲aⅴ| 亚洲欧洲一级| 亚洲午夜电影网| 激情视频一区| 亚洲美女网站| 狠狠干成人综合网| 亚洲三级影院| 国产视频久久网| 亚洲黄色影院| 国产最新精品精品你懂的| 亚洲国产欧美一区二区三区同亚洲| 欧美午夜电影完整版| 女人香蕉久久**毛片精品| 国产精品啊啊啊| 欧美国产精品一区| 国产一区二区三区四区在线观看| 亚洲电影成人| 国产一区二区在线免费观看| 亚洲黄网站在线观看| 国产在线一区二区三区四区| 亚洲乱亚洲高清| 亚洲高清视频在线观看| 亚洲自拍偷拍色片视频| 日韩视频不卡中文| 久久亚洲精品一区二区| 欧美一区亚洲二区| 欧美视频中文字幕| 欧美电影电视剧在线观看| 国产日韩欧美精品| 一区二区三区产品免费精品久久75 | 欧美日韩精品在线观看| 欧美电影免费观看高清| 好吊一区二区三区| 亚洲制服少妇| 亚洲一区二区三| 欧美日本一道本在线视频| 欧美丰满高潮xxxx喷水动漫| 国内成+人亚洲+欧美+综合在线| 亚洲少妇在线| 亚洲一区国产一区| 欧美日韩亚洲综合一区| 亚洲精品久久久久久一区二区| 亚洲激情二区| 免费不卡在线观看| 亚洲丰满在线| 亚洲免费观看视频| 欧美精品日日鲁夜夜添| 亚洲国产视频一区二区| 亚洲精品一区二区网址 | 亚洲免费在线观看视频| 亚洲视频一区在线| 欧美视频在线一区二区三区| 一区二区三区国产在线| 亚洲免费小视频| 国产精品欧美日韩一区二区| 亚洲午夜视频在线观看| 午夜精品久久久久久久久久久久久 | 亚洲图片欧美午夜| 亚洲欧美日韩一区二区| 国产精品自拍在线| 久久精品99国产精品日本| 久久日韩粉嫩一区二区三区| 伊人精品视频| 另类av一区二区| 亚洲黄色成人网| 亚洲在线观看| 国产亚洲欧美另类中文| 葵司免费一区二区三区四区五区| 亚洲丶国产丶欧美一区二区三区| 99视频在线精品国自产拍免费观看| 欧美精品一区在线发布| 在线综合亚洲| 久久综合伊人77777尤物| 91久久久国产精品| 欧美日韩一区在线视频| 亚洲欧美资源在线| 欧美高清不卡| 午夜欧美理论片| 亚洲国产欧美一区二区三区久久 | 欧美大香线蕉线伊人久久国产精品| 亚洲激情六月丁香| 国产精品观看| 乱人伦精品视频在线观看| 99精品久久久| 免费观看在线综合色| 亚洲视屏在线播放| 在线观看日韩www视频免费| 欧美日韩视频在线观看一区二区三区 | 久久精品99久久香蕉国产色戒| 最近中文字幕日韩精品| 午夜日韩电影| 亚洲精品久久久久久久久久久| 国产精品美女午夜av| 免费观看一区| 欧美一区二区三区喷汁尤物| 91久久国产精品91久久性色| 久久大逼视频| 亚洲色图在线视频| 亚洲第一久久影院| 国产欧美一区二区三区在线老狼 | 美女视频黄a大片欧美| 中日韩在线视频| 亚洲国产综合在线看不卡| 国产精品综合| 欧美视频中文字幕|