选择显示字体大小

director 3d 基础(之六)

作者:十年磨一剑
出处:奥古多媒体

以下的事件控制显示修饰3d文本的字面。显示字面组合可以包括显示延展文本的前面、背面、字厚度,以及其它面的一些组合效果。举例说明,如果你只是选择显示前面和字厚度,背面就不会在3d文本上显示。

on setdisplayface
if member(‘‘textsample‘‘).displayface = [#front] then
member(‘‘textsample‘‘).displayface = [#tunnel]
setcomment

else if member(‘‘textsample‘‘).displayface = [#tunnel] then
member(‘‘textsample‘‘).displayface = [#back]
setcomment

else if member(‘‘textsample‘‘).displayface = [#back] then
member(‘‘textsample‘‘).displayface = [#back, #tunnel]
setcomment

else if member(‘‘textsample‘‘).displayface= [#back, #tunnel] then
member(‘‘textsample‘‘).displayface = [#front, #tunnel]
setcomment

else if member(‘‘textsample‘‘).displayface=[#front,#tunnel] then
member(‘‘textsample‘‘).displayface = [#front, #back, #tunnel]
setcomment

else if member(‘‘textsample‘‘).displayface = [#front, #back, #tunnel] then

member(‘‘textsample‘‘).displayface = [#front]
setcomment

end if
end

五、3dtext2

当你打开并播放3dtext2样版影片,你可以通过点击舞台左上角的按钮延展文本进3d世界。你可以点击另外两个按钮以应用一个材质球于每个字母。所有这三个按钮都有调用以下事件的行为,你可以在movie script中找到以下事件。
以下代码是一个错误捕捉,如果一个3d文本已经存在于3d世界中就促使这个事件退出。如果模型已经存在,而你试图创建另一个同名的,一个错误信息会出现。

on extrudetexttoworld
if not(member(‘‘scene‘‘).model(‘‘3dtext‘‘).voidp) then exit

prepareshaders事件调用创建所有影片中的材质球事件。preparelightandcamera事件调用设定影片的灯光与摄像机位置的事件。要预备灯光和摄像机位置,你必须先保证你在影片中的文本已经是看得见的。


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons