🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1266

VRML�����Խṹ��Ӧ��

#1266
From: ���ܵ�Сʨ
Date: Sat, 18 Apr 1998 00:00
179 lines
14858 bytes
 VRML�����Խṹ
    VRML(������ʵ��������)������Internet���Ͻ����������硣��
�Ļ���һ������HTT PЭ�鴫����ݵ�ȫ����;����һ����SGI���
��Open Inrentor�ļ���ʽ�����Ŀ����ʹVRM L��Ϊһ�ֱ�׼������
,����Internet�ϱ任��������,ͬʱ���кܺõĽ������Լ�֧�ִ���
�û���VRML�Ŀ����ص㼯������ƽ̨�޹ء�����չ���һ��ڵʹ���
��������,ͨ��VRML�����,�û�����һ������ij����������ƶ�����
�������е�ʵ���໥���ò���ͨ������(H yperlink)����һ���µ�
��ά���硣
    VRMLͨ�����ͼ�ζ���������һ����ά��������Щ�����Ϊ���
(Nodes)��һ�������ɾ��в�νṹ�Ķ�������ɡ�VRML2.0��VRML
 1.0ԭ�еĽ�����ͻ���,�����˾�����ɫ���������ͽ��,��:��
����(Sensors)��������(Scripts)������(Sound)��
    ����������һ������,����һ��ʮ�ּ򵥵�VRML�ļ�,������һ��
��ɫ�������塣
    Separator
    {
      Material {
        diffuse Color 001
      }
      Cube {
        width 3
        height 3
        depth 3
      }
      WWW Inline {
        name "http://www.sgi.com/some.wrl"
      }
    }
    �����������п�����ֳ���ͬ���͵Ľ�㡣���а���:
    ����״���(��Cube���)
    �����Խ��(��Material���)
    ��Ⱥ����(��Separator���)
    �������ӽ��(��WWW Inline���)
    ��״��㶨������ά����������ļ�����״(Geometry)����Ӧ��
���ӻ���Բ׶�塢����ȵȡ����Խ�������˾���һ��������״����
�����,����˵ɫ�ʡ�����ȵȡ��������͵Ľ��Ҳ�����任���(Tr
ansformationnodes)�������͹�ѧ��㡣��Ⱥ��������Ѷ����
�㵱��һ����Ԫ�����?�����ӽ����������������͵Ľ��,��WWW
 Inline��WWW Anch or��㡣WWW Inline���֧�����Բ�ͬ�ļ���UR
L����������,��WWW Anchor��ָ���˵��µ�URL�����ӡ�
    ÿ��������һ��������(Field)�������������Լ�ȱʡֵ
���й涨��Ҳ����˵,��VRML2.0��Specification��,�Ը�����ͬ���
���е��﷨�������������ϸ�Ķ��塣Ŀǰһ��������50�����ͬ��
�͵Ľ��,�ֱ�����������Internet���ϴ�����ά�������Ҫ������
����һ��Բ����(Cylinder)���Ķ���:
    Cylinder {
    field    SFB001    bottom      TRUE
    field    SFFLoat   height      2
    field    SFFLoat   radius      1
    field    SFB001    side        TURE
    field    SFB001    top         TURE
    }
    ÿ��Բ�������������:���桢����͵��档ÿ�����ֶ�����֮
��ص�SFB001���͵���,����ָ����������Ƿ����(TRUE��FALSE)��
�����Щ���ֲ�����,������ײ����в��迼�ǡ���radius���heigh
t����ֱ�涨��һ��Բ����İ뾶�͸߶ȡ����������ȡֵ���붼
�����㡣
    ����һЩ�ϼ򵥵Ľ��,VRML�еĽ������н϶����,�Ӷ���
����ɷdz��ḻ�Ĺ��ܡ���������������VRML2.0�������еĴ�����(
Sensors)��������(Scripts)�Լ�����(Sound s)��㡣

    ������(Sensors)���
    �����������һ��������𡣾������Cylinder Sensor��P
lane Sensor��TimeSe nsor��Touch Sensor��Visibility Sensor��P
roximity Sensor�����ֽ�㡣�����ṩ�û������������е������
�н����Ļ��ơ��Ӿ��幦������˵,���ʱ�ӻ����û��Ķ���������
��������Ӧ���¼�,Ȼ�����������еĶ���������Ӧ��Щ��ͬ���¼�
��
    ���濴һ��Proximity Sensor�����ӡ�
    Proximity Sensor {
    exposed Field       SFVec3f     center     000
    exposed Field       SFVec3f     size       000
    exposed Field       SFB001      enabled    TRUE
    eventout            SFB001      is Active
    eventout            SFVec3f     position-changed
    eventout            SFRotation  orientation-changed
    eventout            SFTime      enter Time
    eventout            SFTime      exit Time
    }
    ���û��ӽ��˳�����һ���ռ����ƶ���ʱ��,proximity senso
r�ͻ����ͬ���¼������۲��߽�����˳�һ����center��size��
��ij�����ռ�ʱ,�ͻ����is Active TRUE /FALSE�¼�,ͬʱ���
��enter Time��exit Time�¼������۲�����λ�úͷ���������ı�
ʱ,�ͻ����ⷢ��positionchanged��orientationchanged���¼�����
��Proximity Sensor����û��Ķ�������ͷ��Ͳ�ͬ���͵��¼�����
�����û������Ĺ��ܡ�
    ������(Scripts)���ڲ���(Interpolators)���
    VRML��Script������VRML 2.0��������һ���������ԡ�����Ja
va���������Ե��Ӽ�, ͬʱ��Java�����ö���֧��VRML��������͡�
���ڲ�����һ�����õĶ�������,���ڻ��ڴ����ؼ�������Բ�ֵ��
���ϲ������֡��������ڵ��������Դ�����ָ���Ĵ����
ָ�롣������Ա�ܹ���Script�ṩ���,��Script�������������¼�
����������¼����ı����������״̬������˵��������ڲ������
Ϊ������������˶����Ͷ���,ʹ�����������ܹ���ӱ���;�����
ʵ�С�
    ����������Position Interpolator��㡣
    Position Interpolator {
    eventIn        SFFLoat     set-fraction
    exposedField   MFFLoat     key             []
    exposedField   MFVec3f     keyvalue        []
    eventOut       SFVec 3f    valuechanged    []
    }
    ��������һ��SFVec3f���͵���ֵ�н������Բ�ֵ����һ���
��λ��ת�Ʒdz����ʡ�keyvalue����һ��ؼ����ֵ,��Щ��ֵ�ĸ�
��Ҫkey������а��Ԫ�ظ�����ͬ��
    ���������԰���VRML Script��Java���֡�VRML Script���﷨��
Javascript����������������֮����VRML Script��Ƴ��ܱ�YACC��
���﷨����,�����һ��LALR(1)���ķ���������﷨BNF��ʽ�μ�VRM
L 2.0��Specification����Ը��ֺ���,��䶼��ʮ����ϸ�Ĺ涨��
    ����(Sound)���
    �ȿ�һ���������Ķ��塣
    Sound {
    exposedField    SFVec3f    direction      001
    exposedField    SFFLoat    intensity      1
    exposedField    SFVec3f    location       000
    exposedField    SFFLoat    maxBack        10
    exposedField    SFFloat    maxFront       10
    exposedField    SFFloat    minBack        1
    exposedField    SFFloat    minFront       1
    exposedField    SFFloat    priority       0
    exposedField    SFNode     source         NULL
    field           SFBool     spatialize     TRUE
    }
    ��ά�ռ������������������������е���ʵ�к��ٳ��С������
ʹ�������ܹ����û���������ʮ�������Ӱ�졣��������ļ����?
��,�ᵼ�������������̫����޷�����,�����м�VRML֧��MIDI����
��������,���ҿ���ʹ�ý�С.wav�ļ���Ӫ�����ܻ��Ƶ�Ч��
    Sound�����������һ��VRML�����������Ķ�λ�Ϳռ�Ч����
���ܱ���λ��ijһ�㲢�ҿ������λ���Բ��ģʽ����������Sound��
���е�Source��ָ����Sound����Դ����������ָ������һ��Audio
Clip���,����һ��Movie Texture��㡣����е�intensity�����
ÿ����Դ��������intensity��һ��������ֵ,ȡֵ��0.0��1.0��0��
ʾ������,1���ʾ�������,��priority�������������Ƶ�����ͨ��
����Ҫ���ŵ���������ʱ,ѡ����ʵ�������š�ȡֵҲ��0.0��1.0,
����1.0�DZ�ʾ��ߵ����ȼ���minFront��minBack���������������
Դǰ���������Ŀռ�λ�á��������,maxFront��maxBack�������
����ǰ���ܷ�����������ơ��ܶ���֮,ͨ��Sound����ܶԳ���
��ij�����������Ч������ʮ�ֱ���Ĺ涨��
    VRML��Ӧ��
    ����������ڷ�����̵����ֻ������ⳡ���������ǴӼ����
������ʼ,�����ǽ����ý������,�����������Ƶ�Լ���ά����
άͼ������һ��Ŀǰ�ѽ��뽻��ʽ����ʱ��,��Ҫ�������ֻ���
�ɸ�������ý�岢���и���ͨ�������������ҵ����������ʵ��
��չ,��VRML�����ⳡ����չ�IJ��
    VRML���ڲ�ͬ��Ӧ����������ά��ʽ������ӻ���ݡ�VRML�ṩ
���µ��û�����,ʹ�������Ը�ֱ�۵ķ�ʽ����ά�����еĶ��󽻻�
����ά��ݱ��ȶ�ά��ݸ�ֱ�ۺ͸�����⡣����VRML�ܸ����Ը�
�������,Ӫ���Ϊ�������ά�������硣
    VRML�ѳ�Ϊҵ���׼��Microsoft��IBM��Netscape��Apple��Ora
cle��SGI��Sony��50�������Ĵ�˾��֧��VRML��VRML�Ĺ�������
��ʽ����ΪAG����ά�����δ����VRML�ڽ������֡����̺���ҵ��
���ѵõ�Ӧ�á�
    ������Ӧ��
    SGI�Ѿ���VRML���ڽ�������ģ�͡�����̫�����С����������
�ṹ��ʾ������������ݸ�ӱ���,�����������ǵ�������,����
���ܽ����ߵ�ѧϰ��Ȥ,ѧϰЧ��ʮ���������ż������������
ѧ������ѧ�ȶ���ѧ�ƵĽ�����໥�ٽ�ͷ�չ,�ܹ��ṩ���Э��
���˻�Ի�;����
    ������Ӧ��
    ����������VRML��һ����ҪӦ������VRML��һ������ʮ��ǿ��
����Internet���Ͻ�����ά���������������ԡ������ṩ��õĶ���
֮��Ľ������ṩ��ӱ�������⻷��,�Ӷ�ʹ�������ܹ���������
����Ȥ,��������õ����ָо���VRML����ʵʱͨ�š����ģ��
����������չ��
    ������Ӧ��
    ��ǰ�Ĺ��̺ܴ�̶���Ҫ������ͼ�ι���,�Ա�ֱ�۵���ʾ����
��Ʒ��ijЩ�跨�������ʲ������ɱ��Ĺ�˾,�ر���Ҫ��Щ��ͨ��
ȫ������ڲ���Э����ʽʹ��VRML������άģ�͵Ĺ�����Ա��
    ����ҵӦ��
    ������Щ������ͻ�����ֱ����ϵ�Ĺ�˾,��������Щ�����ǵ�
��ҳ����ͻ����͵��ӹ��Ĺ�˾,ȫ��������ر����������VRML
�п��ܴ��ȸ��ƹ˿͹�����Ʒ�ľ�������,�˿Ϳ��Է���������
���е��̵�,��������ѡ��Ʒ,Ȼ��ͨ��ȫ������?������,�̵꼰
ʱ����Ʒ�͵��˿����С�

--
�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: hsia.nju.edu.cn]
Technical Details
Message-ID: <3O9iWG$tD3@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,5aafc6e52929d416,start
X-Google-Attributes: gidfc86e,public
From: pipishi.bbs@bbs.nju.edu.cn (���ܵ�Сʨ)
Subject: VRML�����Խṹ��Ӧ��
Date: 1998/04/18
Message-ID: <3O9iWG$tD3@bbs.nju.edu.cn>
X-Deja-AN: 345408780
X-Filename: Programming/M.892912144.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.program