`
wjlgryx
  • 浏览: 298288 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

o3d 初级demos

view plaincopy to clipboardprint? <html>  <head>  <meta http-equiv="content-type" content="text/html; charset=UTF-8">  <title>O3D Example</title>     <mce:script type="text/javascript" src="o3djs/base.js" mce_src="o3dj ...
O3d 使用一个程序可控的图形管道模型而不是一个固定功能的管道。这个程序可控的管道使用shader语言,依据hlsl和Cg,使你可以通过vertex shaders和pixel shaders来直接对cpu编程。在程序可控CPUs出现以前,图形程序员被限制在固定功能的图形处理流水线中。计算transformations,lighting,texture coordinates和其他环境效果的算法是预编写在软件中来控制图形软件,如早期的OpenGL或Direcet 3D。 在依据固定功能的图形处理流水线的系统中,全局状态创建给lights,materials,和textures,然后shape 消 ...

o3d API (一)

1、 o3djs.rendergraph.createBasicView( !o3d.Pack pack !o3d.Transform treeRoot !o3d.RenderNode opt_parent !o3djs.math.Vector4 opt_clearColor number opt_priority !o3djs.math.Vector4 opt_viewport ) 参数: pack 管理生成对象的Pack包. treeRoot 视图的根节点. opt_parent 视图的渲染节点 ...
   要用o3d API在场景中导入3dmax建的模型,需要将模型转换为*.o3dtgz文件。转化之后的文件才可以被o3d读取,否则不能加载到场景中。转换之后,利用javascript场景加载函数o3djs.scene.loadScene()加载转换之后的.o3dtgz文件,就可将模型 ...
Global site tag (gtag.js) - Google Analytics