X3D: ничего не отображается при использовании ElevationGrid

Я использую этот пример, но проблема не в отображении чего-либо при использовании ElevationGrid, но при использовании других примеров, например, все формы работают нормально. Может ли кто-нибудь дать мне какую-либо информацию или предложения, потому что я должен нарисовать местность «Земля»? это HTML-файл

    <!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>

person zaid    schedule 20.04.2016    source источник
comment
Пожалуйста, добавляйте код как код, а не как изображение...   -  person MeanGreen    schedule 20.04.2016


Ответы (1)


ElevationGrid содержится только в «полной» версии (x3dom-full.js)

Так что просто напишите:

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

вместо

<script src="http://x3dom.org/release/x3dom.js"></script>
person jamjamg    schedule 11.08.2016