Skip to content

Commit 1d21745

Browse files
Merge pull request #48 from SylvainCorlay/example
Remove camera example
2 parents ab2f059 + f7406dd commit 1d21745

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

examples/Examples.ipynb

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -230,50 +230,6 @@
230230
"display(renderer)"
231231
]
232232
},
233-
{
234-
"cell_type": "markdown",
235-
"metadata": {},
236-
"source": [
237-
"# Camera"
238-
]
239-
},
240-
{
241-
"cell_type": "code",
242-
"execution_count": null,
243-
"metadata": {
244-
"collapsed": false
245-
},
246-
"outputs": [],
247-
"source": [
248-
"geometry = SphereGeometry(radius=4)\n",
249-
"t = ImageTexture(imageuri='')\n",
250-
"material = LambertMaterial(color='white', map=t)\n",
251-
"\n",
252-
"sphere = Mesh(geometry=geometry, material=material)\n",
253-
"\n",
254-
"point = Mesh(geometry=SphereGeometry(radius=.1), \n",
255-
" material=LambertMaterial(color='red'))\n",
256-
"\n",
257-
"\n",
258-
"c = PerspectiveCamera(position=[0, 10, 10], fov=40,\n",
259-
" children=[DirectionalLight(color='white', \n",
260-
" position=[3,5,1], \n",
261-
" intensity=0.5)])\n",
262-
"\n",
263-
"scene = Scene(children=[sphere, point, AmbientLight(color='#777777')])\n",
264-
"p=Picker(event='mousemove', root=sphere)\n",
265-
"renderer = Renderer(camera=c, scene=scene, controls=[OrbitControls(controlling=c), p])\n",
266-
"coords = Text()\n",
267-
"display(coords)\n",
268-
"display(renderer)\n",
269-
"\n",
270-
"#dlink((p,'point'), (point, 'position'), (coords, 'value'))\n",
271-
"#\n",
272-
"#camera=WebCamera()\n",
273-
"#display(camera)\n",
274-
"#display(Link(widgets=[[camera, 'imageurl'], [t, 'imageuri']]))"
275-
]
276-
},
277233
{
278234
"cell_type": "markdown",
279235
"metadata": {},
@@ -326,12 +282,11 @@
326282
"source": [
327283
"# Examples to do\n",
328284
"- image texture (with webcam picture!)\n",
329-
"- set background color\n",
330285
"- animate something through space\n",
331286
"- scaled object: point that doesn't change size\n",
332287
"- vertex shade\n",
333288
"- parametric geometry\n",
334-
"- switch between phong, lambert, depth, and wireframe materials, normalmaterial\n"
289+
"- switch between phong, lambert, depth, and wireframe materials, normalmaterial"
335290
]
336291
}
337292
],

0 commit comments

Comments
 (0)