Changes between Version 20 and Version 21 of PySoy Primer/Part1


Ignore:
Timestamp:
06/06/10 20:58:09 (5 years ago)
Author:
DavidCzech
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PySoy Primer/Part1

    v20 v21  
    1818{{{ 
    1919>>> import soy 
     20>>> from time import * 
    2021>>> scr = soy.Screen() 
    2122>>> win = soy.Window(scr,"Test Window") 
     
    3637{{{ 
    3738>>> 
    38 >>> cube = soy.shapes.Box(1,1,1) # Step 1: Shape 
    39 >>> mat = soy.materials.Material()# Step 2: Material 
    40 >>> mat.shininess = 5 # Looks nicer :D 
    41 >>> body = soy.bodies.Body(scene=sce,mesh=soy.meshes.Shape(mat),shape=cube) # Step 3: Body 
     39>>> cube = soy.shapes.Box(1, 1, 1) # Step 1: Shape 
     40>>> mat = soy.materials.Material() # Step 2: Material 
     41>>> mat.shininess = 5 # (Optional) Looks nicer (modifies the applied specular lighting; play with this setting to see how it affects appearance) 
     42>>> body = soy.bodies.Body(scene=sce, model=soy.models.Shape(material=mat), shape=cube) # Step 3: Body 
    4243}}} 
    4344