注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

神魔破杜梓的叨叨堂

Programming every day!

 
 
 

日志

 
 
 
 

SAN FLASHCISCO——Flash 3D Engine  

2008-06-24 15:56:00|  分类: My Tech |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
原文来自sanflashcisco.com

Introduction to 3D Engines

Please ask questions anytime


So .. what is an "Engine"?




So .. what is an "Engine"?

Well an engine is not ...

  • a Flash plug-in or add-on
  • practitioner of "Magic"

              So what is one?             

  • Collection of regular ActionScript classes
  • Fronted by a well defined API
  • Designed to simplify complexity tasks
  • Distributed as a SWC file or as source

Engine Tour

Papervision3D (PV3D)

Away3D

Sandy3D

Alternativa3D

Papervision3D

http://blog.papervision3d.org/

  • Open Source
  • Most famous/popular 3D Flash engine
  • Load/Parse COLLADA files
  • Website has "Getting Started" Links, Wiki Articles, forum/mailing-list and example projects.
  • Subversion for latest classes (Google Code)
  • Zip Download

      http://code.google.com/p/papervision3d/

Away3D

http://away3d.org/

  • Open Source
  • Based on Papervision3d (branched)
  • Load/Parse COLLADA/3DS Max/MD2/OBJ files
  • Website has Tutorials, Example projects, Getting started ZIP, Google Group.
  • Subversion for latest classes (Google Code)
  • Zip Download

      http://away3d.com/downloads


Sandy3D

http://flashsandy3d.com/

  • Open Source
  • Load/Parse COLLADA/3DS Max/WRL files
  • Boasts simple API to manage 3D elements
  • Roadmap is to launch the 3.0.3 release in the coming weeks with animated models (MD2), better performance and faster shading effects.
  • Website has Tutorials, Example projects, forum
  • Subversion for latest classes (Google Code)
  • Zip download link on website

Alternativa3D

http://alternativaplatform.com/en/

  • New (Russian) kids on the block
  • Boasts managed multi-player 3D world in the future via a server component and simple API.
  • API similar to existing Flash 3D APIs (scene, camera, view).
  • Best performing Flash 3D to date.
  • SWC for non-commercial use,  licenses coming for commercial use.
  • Documentation is new and starting to grow. Forum.

// Creating scene

http://docs.alternativaplatform.com/download/attachments/18645018/HelloAlternativa3D.swf?version=1undefined

scene = new Scene3D();
scene.root = new Object3D();
box = new Box(100, 100, 100, 3, 3, 3);
box.setMaterialToAllSurfaces(

                                                                                    new WireMaterial(1,0xFFFFFF));
scene.root.addChild(box);

// Adding camera and view
camera = new Camera3D();
camera.x = 100;
camera.y = -150;
camera.z = 100;
scene.root.addChild(camera);

view = new View();
addChild(view);
view.camera = camera;

view.width = stage.stageWidth;
view.height = stage.stageHeight;

// Create controller and connect camera
cameraController = new CameraController(stage);
cameraController.camera = camera;

// Set default control keys
cameraController.setDefaultBindings();

// Turn on camera collision detection
cameraController.checkCollisions = true;

// Set collision detection radius for camera
cameraController.collisionRadius = 20;

// Aim camera at the cube primitive
cameraController.lookAt(box.coords);

// Activate camera controls
cameraController.controlsEnabled = true;

Thank You

Next Up:  Trevor McCauley (aka. Senocular)

3D sans the Engine



  评论这张
 
阅读(371)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017