2016-04-20 5 views
1

-je utiliser cet exemple, mais le problème est affiche pas une chose quand utiliser le ElevationGrid mais quand par exemple l'utilisation d'autres par exemple toutes les formes de son travail normal peut avoir une personne l'information est ou des suggestions pour moi parce que je dois tirer le terrain « terre »? this the html file« X3D »: n'est pas afficher quelque chose quand utiliser le ElevationGrid

<!doctype html> 
<html> 
<head> 
    <title>Getting Started with X3D - Step 1</title> 
    <meta name='description' content='Getting started with X3D in 3 easy steps. Step 1: HTML5 page.' /> 
    <meta name='keywords' content='x3d, x3dom, getting started, tutorial, easy' /> 
    <meta encoding="utf-8" /> 
    <link rel="stylesheet" href="getting-started.css" /> 
    <script src="http://x3dom.org/release/x3dom.js"></script> 
<link rel="stylesheet" href="http://x3dom.org/release/x3dom.css" /> 
</head> 


<body class='page'> 
    <div class='page-header'> 
     <h1>Getting Started with X3D</h1> 
     <h2>Step 1 &ndash; HTML5 Page</h2> 
    </div> 
    <div class='page-content'> 
     <p>This is the initial page. It consists of standard HTML5 tags and contains no X3D. The box below defines the area to be used for the X3D scene.</p> 
     <div class='scene'> 
      <div class='x3d-content'> 
      <x3d x='0px' y='0px' width='1000px' height='700px'> 
    <scene> 
      <viewpoint position='0 0 10' ></viewpoint> 
       <shape> 
       <appearance> 
        <Material diffuseColor='0.4 0.4 0.1'></Material> 
       </appearance> 
       <ElevationGrid DEF='ElevationGrid' creaseAngle='1.57' xDimension='9' zDimension='9' xSpacing='1.0' zSpacing='1.0' solid='FALSE' height='0.0, 0.0, 0.5, 1.0, 0.5, 0.0, 0.0, 0.0, 0.0,0.0, 0.0, 0.0, 0.0, 2.5, 0.5, 0.0, 0.0, 0.0,0.0, 0.0, 0.5, 0.5, 3.0, 1.0, 0.5, 0.0, 1.0,0.0, 0.0, 0.5, 2.0, 4.5, 2.5, 1.0, 1.5, 0.5,1.0, 2.5, 3.0, 4.5, 5.5, 3.5, 3.0, 1.0, 0.0, 0.5, 2.0, 2.0, 2.5, 3.5, 4.0, 2.0, 0.5, 0.0, 0.0, 0.0, 0.5, 1.5, 1.0, 2.0, 3.0, 1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 1.5, 0.5,0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0'></ElevationGrid> 
      </shape> 
      </scene> 
     </x3d> 
      </div> 
     </div> 
    </div> 

</body> 
</html> 
+0

S'il vous plaît ajouter le code code , pas comme une image ... – MeanGreen

Répondre

0

ElevationGrid est contenu seulement dans la version "complète" (x3dom- plein .js)

Alors il suffit d'écrire:

<script src="http://x3dom.org/release/x3dom-full.js"></script> 

au lieu de

<script src="http://x3dom.org/release/x3dom.js"></script>