论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

非3D引擎实现3D赛车

文章类别:Flash | 发表日期:2008-9-21 19:20:22

  我原以为这样的3D赛车只能用3D引擎来做: http://www.fastfroots.de/ 结果不是这样的。太神奇了!
UploadFile/2004-5/2004521166129.swf
点击浏览该文件
有段关于2D模拟3D赛道的说明,先COPY过来看看 this is NOT a 3D engine,
it''''s just a smart concept of manipulating the appearance of the background image. the moving road and grass is made up of strips of the original image. From the bottom of the screen to the middle of the screen
there are movie clips placed with decreasing height,
say 10 at the bottom and 1 in the middle of the page and everything in between.
Every "strip movie clip" is masked using a mask with the same height as the strip movie clip itself (1-10).
Inside the strip mc the image is placed and scaled, smaller scale for strips with smaller height, to give the appearence of perspective.
The car has an angle (the direction of movement).
The car has a position on the huge image.
The images in the strip mc:s are rotated by the car angle around the car position coord on the image.
The images in every strip mc are moved to this position, with an offset in y-pos in the strip mc depending on the strip mc''''s position between the horizon and the bottom of the screen.
The collision detection is probably a comparison to a 2d array.
it''''s also possible to use an extra 3D engine just for trees and obstacles.
上一篇:{应用}flash隐藏类Tween 人气:2272
下一篇:{应用}水色一天 人气:1315
视频教程列表
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058