図形にリンクを張る - VRML

更新:

VRML 図形にリンクを張る。

図形にリンクを張る
  1. NODE
    以下のノードは、球をクリックするとリンク先のページへジャンプするVRMLノードです。
    #VRML V2.0 utf8
    
    Anchor{
      children[
        Transform{
          children Shape{
            appearance Appearance{
              material Material{
                diffuseColor 1 0 0
              }
            }
            geometry Sphere{
              radius 1
            }
          }
        }
      ]
    url "http://www.yahoo.co.jp/"
    description "Yahoo!"
    }
    
  2. リンク
    Anchor{
    children[
     物体の定義
    ]
    url "URLのアドレスやパス"
    description "文字列(英語のみ)"
    }
    と書きます。
    url "http://www.yahoo.co.jp/"
    はリンク先のURL。
    description "Yahoo!"
    はマウスが物体に重なったときに表示される文字です。
  3. サンプル
    1. リンク

このエントリーをはてなブックマークに追加