Changes between Version 30 and Version 31 of PySoy Primer/Part1
- Timestamp:
- 01/12/13 02:37:59 (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PySoy Primer/Part1
v30 v31 54 54 === Light, Camera, Action! === 55 55 To make our cube show up, we need light to see it, a camera to watch it, and a projector to project what the camera sees onto the window, and of course we must position them properly, to be able to see what is happening. 56 We still have a pure blackwindow and that's just not very interesting. So, add these lines just under the line with which you created the scene.56 We still have a pure white window and that's just not very interesting. So, add these lines just under the line with which you created the scene. 57 57 {{{ 58 58 room['cam'] = soy.bodies.Camera(soy.atoms.Position((0, 0, 15))) … … 65 65 }}} 66 66 67 This last line attaches the "output" of the camera, which exists in the 3 d scene, to the blackwindow you have open. This way, what the camera "sees" is what will be drawn inside the window. Anything inside your scene now is rendered and outputted to the Window.67 This last line attaches the "output" of the camera, which exists in the 3D scene, to the white window you have open. This way, what the camera "sees" is what will be drawn inside the window. Anything inside your scene now is rendered and outputted to the Window. 68 68 69 69 Run pysoy_primer.py again. You should be able to see your first PySoy cube.
