我正在学习 X3DOM,我想知道为什么当我在浏览器中从本地这个 html 代码执行时,纹理(URL http 链接,没有本地图像)没有加载。圆柱体看起来是黑色的。
<html>
<head>
<script src="http://www.x3dom.org/download/dev/x3dom.js"></script>
<link rel="stylesheet" href="http://www.x3dom.org/download/dev/x3dom.css">
<title>DOM Field Interface Test</title>
</head>
<body>
<div id="testbedDiv">
<h2>X3DOM Scene:</h2>
<x3d width='500px' height='400px'>
<scene>
<shape>
<appearance>
<ImageTexture url="http://drive.google.com/uc?export=view&id=0B0GIfItPpsqjMEUyLU9Fam9aQ0E"><ImageTexture/>
</appearance>
<Cylinder ></Cylinder>
</shape>
</scene>
</x3d>
</div>
</body>
</html>
或者,如果有人知道 .x3d http url 链接的“内联”标签也可以这样做(也没有本地)