Skip to content
Browse files

more work on tquery.skymap dynamic

  • Loading branch information...
1 parent 0e1080d commit 86847fe563fd3e6435cca4ff0aca021a226e019e @jeromeetienne committed Feb 27, 2013
Showing with 7 additions and 31 deletions.
  1. +1 −29 plugins/skymap/examples/dynamic.html
  2. +6 −2 plugins/skymap/examples/{demo.html → dynamicdemo.html}
View
30 plugins/skymap/examples/dynamic.html
@@ -28,15 +28,13 @@
// attempts to make a puddle
var sphere = tQuery.createPlane().addTo(world)
-
.setBasicMaterial()
.envMap(cubeCamera.renderTarget)
.color(0xffff00)
.back()
//.scaleBy(10)
-// .positionY(5).positionZ(-3)
+ //.positionY(5).positionZ(-3)
-// tQuery(cubeCamera).addTo(sphere)
tQuery(cubeCamera).addTo(sphere)
world.loop().hook(function(){
@@ -46,31 +44,5 @@
sphere.visible(true) // *cough*
})
-
- // world.loop().hook(function(delta, now){
- // var angle = 0.2 * now * Math.PI * 2;
- // sphere.positionY(Math.sin(angle)*0.5 + 0.6)
- // .scale(Math.sin(angle)*0.3 + 1)
- // })
-
- var character = tQuery.createMinecraftChar({
- skinUrl : '../../minecraft/examples/images/theflash.png'
- }).addTo(world)
- character.object3D().translateX(-0.7)
- .rotateY(Math.PI/3)
-
- var character = tQuery.createMinecraftChar({
- skinUrl : '../../minecraft/examples/images/batman.png'
- }).addTo(world)
- character.object3D().translateX(+0.7)
- .rotateY(-Math.PI/3)
-
- var character = tQuery.createMinecraftChar({
- skinUrl : '../../minecraft/examples/images/Mario.png'
- }).addTo(world)
- character.object3D()
- .rotateY(Math.PI)
- .translateX(0.4)
- .translateZ(+1)
})
</script></body>
View
8 plugins/skymap/examples/demo.html → plugins/skymap/examples/dynamicdemo.html
@@ -32,7 +32,11 @@
cubeCamera.renderTarget.minFilter = THREE.LinearMipMapLinearFilter;
- var sphere = tQuery.createSphere().addTo(world).translateY(0.8)
+ var sphere = tQuery.createCube().addTo(world)
+ .translateY(0.8)
+ .geometry()
+ .scaleBy(1/2)
+ .back()
.setBasicMaterial()
.envMap(cubeCamera.renderTarget)
.color(0xffff00)
@@ -76,7 +80,7 @@
.translateX(Math.cos(angle) * 0.8)
.translateZ(Math.sin(angle) * 0.8)
.rotateY(Math.PI - angle)
-
+
// init batman
var character = tQuery.createMinecraftChar({
skinUrl : '../../minecraft/examples/images/batman.png'

0 comments on commit 86847fe

Please sign in to comment.
Something went wrong with that request. Please try again.