LoginSignup
0
0

More than 5 years have passed since last update.

jsdoでjthreeをホスティングする

Posted at

こちらの記事を見て、jthreeをjsdoでホスティングしたくなった。
v2.1は動かなかったので、v1.5.1を使った。
手順
まず、gomlを書く。
xml
<?xml version="1.0" encoding="UTF-8"?>
<goml>
<head>
<gmt id="Gmt" type="Cube" param="3.0 3.0 3.0" />
<rdr frame="body" camera="camera:first"/>
</head>
<body>
<scene>
<camera style="positionZ: 10;" />
<mesh gmt="#Gmt" />
</scene>
</body>
</goml>

次に、jthreeを書く。
html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js">
</script>
<script src="/assets/A/u/R/d/AuRdd">
</script>
<script src="/assets/5/q/y/f/5qyf5">
</script>

最初に、jquery読んで、jThree.js、jThree.Trackball.jsを読み込む。
js
jThree.goml("/ohisama1/pzT5/js", function(j3) {
j3.Trackball();
});

"/ohisama1/pzT5"は。gomlのurlを指す。
実際は、これ。
goml
jthree

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0