Changes between Version 30 and Version 31 of PySoy Primer/Part1


Ignore:
Timestamp:
01/12/13 02:37:59 (2 years ago)
Author:
MayankSingh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PySoy Primer/Part1

    v30 v31  
    5454=== Light, Camera, Action! === 
    5555To 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 black window and that's just not very interesting. So, add these lines just under the line with which you created the scene. 
     56We 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. 
    5757{{{ 
    5858room['cam'] = soy.bodies.Camera(soy.atoms.Position((0, 0, 15))) 
     
    6565}}} 
    6666 
    67 This last line attaches the "output" of the camera, which exists in the 3d scene, to the black 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. 
     67This 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. 
    6868 
    6969Run pysoy_primer.py again. You should be able to see your first PySoy cube.