style="width: 100%; height: 500px" src="http://omni360.github.io/webgl/keyframe-robot.html" allowfullscreen="allowfullscreen" frameborder="0">
以下是源码,将代码复制到文本文件保存成html文件:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Articulated Animation with key frames</title>
<link rel="stylesheet" type="text/css" href="./css/webglbook.css">
<script src="./libs/Three.js"></script>
<script type="text/javascript" src="./libs/Tween.js"></script>
<script type="text/javascript" src="./libs/jquery-1.6.4.js"></script>
<script type="text/javascript" src="./libs/jquery.mousewheel.js"></script>
<script type="text/javascript" src="./libs/RequestAnimationFrame.js"></script>
<script type="text/javascript" src="./sim/sim.js"></script>
<script type="text/javascript" src="./sim/animation.js"></script>
<script type="text/javascript" src="./sim/ColladaLoader.js"></script>
<script type="text/javascript" src="./keyframe-robot.js"></script>
<script type&#