The Trident:(坐标轴)
var axis:Trident = new Trident();
view.scene.addChild(axis);
// 三个坐标轴的长度都是200,并且都标有X,Y,Z字母
var axis:Trident = new Trident(200,true);
The RegularPolygon:(普通多边形)
// radius:半径;sides:多边形的边数
polygon = new RegularPolygon({radius:200,sides:3});
view.scene.addChild(polygon);
// 可以将一个三角面切分为3个三角面,如果贴图材质扭曲的话
polygon.subdivision = 3;
The Sphere:
var sphere:Sphere = new Sphere({radius:50,segmentsW:10,segmentsH:10});
var sphere:Sphere = new Sphere();
sphere.radius = 50;
sphere.segmentsW = 10;
sphere.segmentsH = 10;
// 设置 sphere 的转动轴,false 表示转动轴为Z轴,true 表示转动轴为Y轴
sphere.yUp = false;
// 翻转材质,为了在球的内部也见到贴图
sphere.invertFaces();
// 两面材质都可见
sphere.bothsides = true;
The Skybox and Skybox6:
- 专门用于制作全景
的huge Cube
- Skybox可以分别指定6张不同的图片
作为材质
- 而 Skybox6只能将一张3*2的预先已经合成好的一张图片
作为材质。
var mat:BitmapMaterial = new BitmapMaterial( (new texture() as Bitmap).bitmapData );
largeCube = new Skybox6(mat);
largeCube = new Skybox(frontMaterial,leftMaterial,backMaterial,rightMaterial,upMaterial,downMaterial);
// 将每一个三角面细化成四个面积相等的三角面,由此来减少纺射透视的扭曲
largeCube.quarterFaces();
分享到:
相关推荐
GlobFit: Consistently Fitting Primitives by Discovering Global Relations
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part2.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
Part 2: Intents, ActionBar, and More Part 3: Android Services Part 4: Content Providers Part 5: Lists and Adapters Part 6: Broadcast Receivers Part 7: App Widgets Part 8: Networking and the Web (HTTP)...
are two types of primitives: 3D primitives or solids, and 2D primitives or surfaces. By placing a collection of primitives in the correct location and of the correct size we can create a represent ...
用于Unity3D的各种形状的模型,包括棱柱体,半圆柱体,给你的游戏各种想象的空间
Integrated Performance Primitives
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part3.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part1.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
1 Introduction to 3D Graphics and OpenGL 2 Using OpenGL 3 Drawing in Space: Geometric Primitives and Buffers 4 Geometric Transformations: The Pipeline 5 Color, Materials, and Lighting: The Basics 6 ...
第一講:Primitives 第二講:std::allocator 第三講:malloc/free 第四講:loki::allocator 第五講:其他主題 第
1 Introduction to 3D Graphics and OpenGL 2 Using OpenGL 3 Drawing in Space: Geometric Primitives and Buffers 4 Geometric Transformations: The Pipeline 5 Color, Materials, and Lighting: The Basics 6 ...
intel integrated performance primitives 程序设计,数据类型,基础范例
如何下载 Intel Integrated Performance Primitives –intel IPP
MonoGame.Primitives2D 2D XNA Primitives项目已移植到现代世界。 NuGet 包: : 示例项目: : 变更日志2020-02-19 (1.1.1) NuGet软件包修复ReferencedFrameworkAssemblies在NuGet包中创建了一个问题2020-02-19...
英文版ARM公司技术资料,讲述ARMv6的同步原语以及如何在ARMv5之前的CPU上通过 SWP 和 SWPB 指令实现同步。
npm install sync-primitives 原料药 信号 构造函数 number [value = 1] 获得 Object [选择] boolean [blocking = true] boolean [超时= -1] return : Promise. 释放 锁 function fn Object [选择] boolean ...
如何使用Altera FPGA芯片的内部资源,可以实现芯片内部资源的合理分配。
From geometric primitives to animation to 3D modeling to lighting, shading and texturing, Computer Graphics Through OpenGL®: From Theory to Experiments is a comprehensive introduction to computer ...
Hosting the .NET Composition Primitives 讲述.NET Composition Architecture架构