VRMLファイルをHTML文書へ組み込んでホームページ上で表示させるにはembedタグを用います。
embedタグは、次のように記述します。
<embed src="VRMLファイルのパス名" width="750" height="500"></embed> |
widthとheightはVRMLファイルを表示する大きさを指定します。
次にVRMLファイルを組み込んだHTML文書の例を示します。
<html> <head><title>ball_rail.wrl</title></head> <body bgcolor="#67a377" text="#000000"> <h2 align="center">サッカーボールがレール上を転がる</h2> <center> <embed src="ball_rail.wrl" width="750" height="500"></embed> </center> </body> </html> |