Skip to content
This repository
Browse code

more work on tquery.skymap dynamic

  • Loading branch information...
commit 86847fe563fd3e6435cca4ff0aca021a226e019e 1 parent 0e1080d
Jerome Etienne authored
30 plugins/skymap/examples/dynamic.html
@@ -28,15 +28,13 @@
28 28
29 29 // attempts to make a puddle
30 30 var sphere = tQuery.createPlane().addTo(world)
31   -
32 31 .setBasicMaterial()
33 32 .envMap(cubeCamera.renderTarget)
34 33 .color(0xffff00)
35 34 .back()
36 35 //.scaleBy(10)
37   -// .positionY(5).positionZ(-3)
  36 + //.positionY(5).positionZ(-3)
38 37
39   -// tQuery(cubeCamera).addTo(sphere)
40 38 tQuery(cubeCamera).addTo(sphere)
41 39
42 40 world.loop().hook(function(){
@@ -46,31 +44,5 @@
46 44
47 45 sphere.visible(true) // *cough*
48 46 })
49   -
50   - // world.loop().hook(function(delta, now){
51   - // var angle = 0.2 * now * Math.PI * 2;
52   - // sphere.positionY(Math.sin(angle)*0.5 + 0.6)
53   - // .scale(Math.sin(angle)*0.3 + 1)
54   - // })
55   -
56   - var character = tQuery.createMinecraftChar({
57   - skinUrl : '../../minecraft/examples/images/theflash.png'
58   - }).addTo(world)
59   - character.object3D().translateX(-0.7)
60   - .rotateY(Math.PI/3)
61   -
62   - var character = tQuery.createMinecraftChar({
63   - skinUrl : '../../minecraft/examples/images/batman.png'
64   - }).addTo(world)
65   - character.object3D().translateX(+0.7)
66   - .rotateY(-Math.PI/3)
67   -
68   - var character = tQuery.createMinecraftChar({
69   - skinUrl : '../../minecraft/examples/images/Mario.png'
70   - }).addTo(world)
71   - character.object3D()
72   - .rotateY(Math.PI)
73   - .translateX(0.4)
74   - .translateZ(+1)
75 47 })
76 48 </script></body>
8 plugins/skymap/examples/demo.html → plugins/skymap/examples/dynamicdemo.html
@@ -32,7 +32,11 @@
32 32 cubeCamera.renderTarget.minFilter = THREE.LinearMipMapLinearFilter;
33 33
34 34
35   - var sphere = tQuery.createSphere().addTo(world).translateY(0.8)
  35 + var sphere = tQuery.createCube().addTo(world)
  36 + .translateY(0.8)
  37 + .geometry()
  38 + .scaleBy(1/2)
  39 + .back()
36 40 .setBasicMaterial()
37 41 .envMap(cubeCamera.renderTarget)
38 42 .color(0xffff00)
@@ -76,7 +80,7 @@
76 80 .translateX(Math.cos(angle) * 0.8)
77 81 .translateZ(Math.sin(angle) * 0.8)
78 82 .rotateY(Math.PI - angle)
79   -
  83 +
80 84 // init batman
81 85 var character = tQuery.createMinecraftChar({
82 86 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.