原文:
This section contains the
essentials of understanding what
Virtools is, and how it works. If
you start scripting before reading
this section, it is at your own
peril!
� What is Virtools?
� Elements, Classes, and
Object Oriented Design
� The Elements of a
Composition
� The Virtools Process Loop
� The Behavioral Engine
o Behaviors and Scripts
o Parameters
o Parameter Operations
o Attributes
o Virtools Scripting
Language (VSL)
� The Render Engine
***
� Initial Conditions
译文:
这些段落包含了关于 Virtools 的一些必不
可少的知识,以及如何使用它 ,你最好在使用
该软件之前读读这些.
1.什么是 Virtools?
2.组件,类,和对象设计
3.构成 Virtools 的所有组件
4.Virtools 的过程循环
5.Virtools 的事件行为引擎
事件行为以及对其的描述
参数
参数的设定和使用
属性
VSL 脚本语言
6.渲染引擎
7.初始状态
What is Virtools?
Overview
Virtools is an extensive
collection of technologies for 3D
visualization and interactivity.
The Virtools technologies are
broadly grouped as:
� an Authoring application
� a Behavioral Engine
� a Render Engine
� a Web Player
� a Software Development Kit
(SDK)
An Authoring Application
Virtools is an authoring
application that allows you to
quickly and easily create rich,
interactive, 3D content. Industry
standard media such as models,
animations, images and sounds are
brought to life by Virtools'
behavior technologies.
You cannot create models in
Virtools; Virtools is not a
modeling application. However,
simple media such as Cameras,
Lights, Curves, interface elements,
and 3D Frames (called dummies or
helpers in most 3D modeling
applications) can be created with
the click of an icon.
Virtools 是什么?
概要
Virtools 是一款应用广泛的 3D 形象与
事件交互的应用软件,Virtools 的应用
可被理解为以下几类:
1.用来编写代码的应用程序:提供 3D 及
时地互动行为.
2.行为事件的引擎:整合于制作的环境
平台,就是 Virtools 的操作环境.
3.渲染引擎:可以执行由应用程序所制
作出来的内容.
4.网络播放器
5.软件开发包:允许使用者新增 Virtools
的功能,内含各个行为模块的源代码,供
使用者参考或是修改.
1. 用来编写代码的应用程序
Virtools 可以迅速方便的处理丰富和交
互性强的 3D 模型.Virtools 可以赋予工
业上的一些模型,动画,图像和声音予以
生命!
你不能在 Virtools 中创建模型,它不是制
造 3D 模型的工具.但是,像摄像机,灯光,
曲线,接口元素和 3D 框架可以直接点击
该组件所对应的图标.
A Behavioral Engine
Virtools is a behavioral engine -
that is, Virtools processes
behaviors. A behavior is simply a
description of how a certain
element acts in an environment.
Virtools provides an extensive
collection of reusable behaviors
in Virtools that allow you to
create almost any type of content
through the simple, graphical
interface of the Schematic editor
- without writing a single line of
code!
For coders and scripters, the new
Virtools Scripting Language (VSL)
complements the Virtools Schematic
editor by providing script level
access to the Virtools SDK.
Virtools also has a number of
managers that help the Behavioral
Engine perform its duties. Some of
these managers (such as the
TimeManager) are an internal part
of the Behavioral Engine while
others (such as the SoundManager)
are external to the Behavioral
Engine
触发行为事件的引擎
Virtools 行为引擎也就是节点式
进程行为引擎.行为是对某些组件
在一个环境中是如何表现的而做
出的简单的描述.Virtools 中提
供了一个可以多次使用的行为库,
用户可以通过简单而又生动地接
口从里面创建几乎各种类型的可
重复使用的行为而不用编写单一
的代码.
假如用户有一定的编程水平,便可以从
Virtools 的 SDK 开发包中利用 VSL 语
言编写新的代码和脚本到 Schematic(脚
本流程图)编辑中.
Virtools 同样有着许多管理器,他们能
够帮助行为引擎去执行它们的职责和
任务.拿 TimeManager(时间管理器)来
说,它就是这些行为引擎的内部组件;
而 SoundManager(声音管理器)就是行
为引擎中的外部组件.
A Render Engine
Virtools has a render engine that
draws the image you see in the 3D
Layout of Virtools. The Virtools
render engine can be replaced with
a render engine of your own, or
customized to fit your specific
needs using the Software
Development Kit (SDK). Note
however that access to the source
code of the Virtools render engine
is subject to an additional
licensing agreement.
A Web Player
Good technology must be easily
accessible before it can be
considered a great technology.
Virtools provides a free Web Player
that can be downloaded by anyone -
and the download is less than 1 MB!
The Web Player contains a Playback
only version of the Behavioral
Engine and the complete Rendering
Engine. Further information on the
Virtools 3D Life Player is
available in the Online Reference.
渲染引擎
Virtools 拥有一个渲染引擎,它可以描
绘 你 在 3D 的 场 景 中 所 看 到 的 图
像.Virtools 渲染引擎可以代替你自己的
渲染引擎,或者也可以订做一个适合某
种特性的 SDK 软件开发包.需要注意的
是:然而想取出 Virtools 渲染引擎中的
资源必须与额外的许可证保持一致.
网络播放器
Virtools 对外提供了一个免费的网络播
放器,而且它的大小只有不到 1M.
只有在拥有完整的渲染引擎和行为引擎
的版本中,该网络播放器就有录放的功
能.更长远的说,在 Virtools 里的 3D 现实
播放器能够很容易的进行在线查询服务.
A Software Development Kit
Virtools includes a Software
Development Kit (SDK) that
provides access to certain parts of
the behavior and rendering
processes.
With the SDK, you could:
� create new behaviors (DLLs)
� modify the operation of existing
behaviors
� write new file importers or export
plugins, to support the modeling file
format of your choice
� replace, modify or extend the Virtools
rendering engine (subject to a
separate licensing agreement)
VSL also provides an interface to
the SDK from within Dev, so you can
easily and quickly test new ideas
and implement custom code without
implementing custom DLLs.
These are just examples - your
creativity is the only limit to how
far you can go!
软件开发包
Virtools 包含一个 SDK(软件开发包),
在 SDK 中提供了许多行为和渲染进程.
通过 SDK,你可以做以下一些事:
1. 创建新的行为事件.
2. 修改现有的行为事件.
3. 为你所选择的模型的样式编写输入
或输出埠.
4. 替换,修改或者扩展 Virtools 的渲染
引擎( )
VSL 脚本语言也为 SDK 内部的开发包提供
了接口,所以用户就能够轻而易举的为自己
定义的新功能进行测试并且不用通过 DLL
(动态程序链接库)执行代码。
这些只是跟大家举的一些例子-真正你能
走多远取决于你们的创造力!
Elements, Classes, and
Object Oriented Design