Module ImportFrom alias alias alias alias Expr Str Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword TupleLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num NameLoad keyword ListLoad NameLoad ListLoad NameLoad NameLoad Num Num Num Num keyword Str Expr Call AttributeLoad NameLoad attr Num Num NameLoad keyword ListLoad NameLoad ListLoad NameLoad NameLoad Num Num Num Num keyword Str Assign NameStore Dict Str TupleLoad Num NameLoad TupleLoad Num NameLoad TupleLoad Num Num Str TupleLoad Num Num Str TupleLoad Num Num Str TupleLoad Num Num Str TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Num ListLoad ListLoad Str Num ListLoad ListLoad Str Num ListLoad Str Num ListLoad ListLoad Str Num ListLoad Str Num ListLoad ListLoad Str Num ListLoad Str Num ListLoad ListLoad Str Num ListLoad Str Num ListLoad ListLoad Str Num ListLoad ListLoad Str Num ListLoad ListLoad Str Num ListLoad Str Num ListLoad ListLoad Str Num Assign NameStore ListLoad ListLoad NameLoad ListLoad NameLoad NameLoad Num Num Num Num ListLoad NameLoad ListLoad NameLoad NameLoad Num Num Num Num ListLoad NameLoad ListLoad NameLoad NameLoad Num Num Num Num ListLoad NameLoad ListLoad NameLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Num NameLoad keyword Num keyword Num keyword Num keyword Str keyword NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num Num keyword TupleLoad Num Num Num keyword TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num Num keyword TupleLoad Num Num Num keyword TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpSub NameLoad BinOpDiv NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num NameLoad Num Call AttributeLoad NameLoad attr Num BinOpAdd Call AttributeLoad NameLoad attr Num Num BinOpDiv NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr While BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AugAssignSub NameStore BinOpMult NameLoad Num AugAssignSub NameStore BinOpMult NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body AugAssignSub NameStore BinOpMult NameLoad Num If CompareGt Call NameLoad NameLoad Num body AugAssignSub NameStore BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignSub NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body AugAssignSub NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad If Call AttributeLoad NameLoad attr Str body AugAssignSub NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body AugAssignSub NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareGt Call NameLoad BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num If Call AttributeLoad NameLoad attr Str body AugAssignSub NameStore Num If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Num If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Num If Call AttributeLoad NameLoad attr Str body AugAssignSub NameStore Num If Call AttributeLoad NameLoad attr Str body While Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str AugAssignAdd NameStore Num If Call AttributeLoad NameLoad attr Str body Assign NameStore Num If Call AttributeLoad NameLoad attr Str body While Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Expr CompareNotEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import division print_function unicode_literals N/A  Show how to use the Building class. This has the facility to define solid
objects that cannot pass through other solid objects. The walls of Building
are constructed of solid object. There are two examples of solid corridor
created near to the silo.
This demonstration also shows in a fairly rough way how lighting can be changed
as the view point moves (from inside to outside in this instance).
 N/A math N/A demo N/A pi3d N/A DISPLAY N/A N/A N/A pi3d Display create x 150 y 150 background N/A 0.4 0.8 0.8 1 N/A shader N/A N/A pi3d Shader uv_reflect N/A flatsh N/A N/A pi3d Shader uv_flat N/A blockimg N/A N/A pi3d Texture textures/squareblocks4.png N/A roofedgeimg N/A N/A pi3d Texture textures/roofedging.png N/A roofimg N/A N/A pi3d Texture textures/Roof.png N/A greenimg N/A N/A pi3d Texture textures/squareblocks4green.png N/A ectex N/A N/A pi3d loadECfiles textures/ecubes sbox jpg N/A myecube N/A N/A pi3d EnvironmentCube size 900.0 maptype FACES N/A N/A N/A myecube set_draw_details flatsh ectex N/A mapwidth 1000.0 N/A mapdepth 1000.0 N/A mapheight 60.0 N/A floorimg N/A N/A pi3d Texture textures/dunes3_512.jpg N/A bumpimg N/A N/A pi3d Texture textures/mudnormal.jpg N/A mymap N/A N/A pi3d ElevationMap mapfile textures/mountainsHgt2.png width mapwidth depth mapdepth height mapheight divx 64 divy 64 N/A N/A N/A mymap set_draw_details shader N/A floorimg bumpimg 128.0 0.0 N/A N/A N/A mymap set_fog N/A 0.3 0.25 0.1 0.8 500.0 N/A N/A N/A pi3d corridor 150 10 mymap details N/A shader N/A blockimg blockimg 1.0 0.0 4.0 4.0 walls ns N/A N/A N/A pi3d corridor 120 -40 mymap details N/A shader N/A blockimg blockimg 1.0 0.0 4.0 4.0 walls ew N/A openSectionSchemeMultimodel N/A #models N/A 0 None N/A 2 None N/A 0 0 edge N/A 1 0 edge N/A 2 0 edge N/A 2 2 edge N/A 2 0 N/A 1 0 N/A 1 2 4 N/A N/A R 2 N/A N/A C 0 N/A R 2 N/A N/A W 0 N/A CE 3 N/A N/A W 0 N/A CE 3 N/A N/A W 0 N/A CE 3 N/A N/A CE 3 N/A N/A W 0 N/A N/A W 1 N/A CE 3 N/A N/A CE 3 N/A details N/A N/A shader N/A blockimg blockimg 1.0 0.0 4.0 12.0 N/A shader N/A greenimg greenimg 1.0 0.0 4.0 4.0 N/A shader N/A roofimg blockimg 1.0 0.0 4.0 4.0 N/A shader N/A roofedgeimg 0.0 0.0 4.0 4.0 N/A building N/A N/A pi3d Building textures/silo_map.png 0 0 mymap width 15.0 depth 15.0 height 70.0 name draw_details details yoff -13 scheme openSectionSchemeMultimodel N/A outLight N/A N/A pi3d Light lightpos N/A 10 -10 20 lightcol N/A 1.0 1.0 0.7 lightamb N/A 0.35 0.35 0.4 N/A inLight N/A N/A pi3d Light lightpos N/A 10 -10 20 lightcol N/A 0.1 0.1 0.15 lightamb N/A 0.05 0.15 0.1 N/A b N/A building model N/A N/A N/A N/A b set_light inLight 0 N/A N/A N/A mymap set_light inLight 0 N/A inFlag True N/A scshots 1 N/A rot 0.0 N/A tilt 0.0 N/A avhgt 5.0 N/A aveyelevel 4.0 N/A aveyeleveladjust N/A aveyelevel N/A avhgt 2 N/A man N/A N/A pi3d SolidObject man N/A N/A pi3d Size 1 avhgt 1 N/A N/A pi3d Position 0 N/A N/A N/A mymap calcHeight 5 5 N/A avhgt 2 0 1 N/A inputs N/A N/A pi3d InputEvents N/A N/A N/A inputs get_mouse_movement N/A mouseOn True N/A frame 400 N/A record False N/A CAMERA N/A N/A N/A pi3d Camera instance N/A N/A N/A N/A DISPLAY loop_running N/A N/A N/A inputs key_state KEY_ESC N/A N/A N/A N/A CAMERA reset N/A N/A N/A CAMERA rotate tilt rot 0 N/A N/A N/A CAMERA position N/A N/A N/A man x N/A N/A man y N/A N/A N/A man z aveyeleveladjust N/A N/A N/A myecube position N/A N/A man x N/A N/A man y N/A N/A N/A man z aveyeleveladjust N/A N/A N/A N/A pi3d SolidObject drawall N/A N/A N/A building drawAll N/A N/A N/A mymap draw N/A N/A N/A myecube draw N/A N/A N/A inputs do_input_events N/A On some combined keyboard/mouse arrangements you might need to change
  this to inputs.get_mouse_movement(1) in order to get the correct input
   N/A N/A mx my mv mh md N/A N/A inputs get_mouse_movement N/A rot N/A mx 0.2 N/A tilt N/A my 0.2 N/A N/A jrx jry N/A N/A inputs get_joystickR N/A N/A N/A abs jrx 0.1 N/A N/A rot N/A jrx 3 N/A N/A N/A abs jry 0.1 N/A N/A tilt N/A jry 3 N/A xm N/A N/A man x N/A ym N/A N/A man y N/A zm N/A N/A man z N/A N/A jx jy N/A N/A inputs get_joystick N/A N/A N/A abs jy 0.2 N/A N/A xm N/A N/A N/A math sin N/A N/A math radians rot jy N/A zm N/A N/A N/A math cos N/A N/A math radians rot jy N/A N/A N/A abs jx 0.2 N/A N/A xm N/A N/A N/A math sin N/A N/A math radians N/A rot 90 jx N/A zm N/A N/A N/A math cos N/A N/A math radians N/A rot 90 jx N/A N/A N/A inputs key_state BTN_LEFT N/A N/A xm N/A N/A math sin N/A N/A math radians rot N/A zm N/A N/A math cos N/A N/A math radians rot N/A N/A N/A inputs key_state KEY_W N/A N/A xm N/A N/A math sin N/A N/A math radians rot N/A zm N/A N/A math cos N/A N/A math radians rot N/A N/A N/A inputs key_state KEY_S N/A N/A xm N/A N/A math sin N/A N/A math radians rot N/A zm N/A N/A math cos N/A N/A math radians rot N/A ym N/A N/A N/A mymap calcHeight xm zm avhgt N/A NewPos N/A N/A pi3d Position xm ym zm N/A collisions N/A N/A man CollisionList NewPos N/A N/A collisions N/A N/A N/A N/A man move NewPos N/A N/A inFlag N/A N/A abs N/A N/A N/A man z N/A building zpos 55 N/A N/A inFlag False N/A b N/A building model N/A N/A N/A N/A b set_light outLight 0 N/A N/A N/A mymap set_light outLight 0 N/A N/A N/A inputs key_state KEY_APOSTROPHE N/A N/A tilt 2.0 N/A N/A N/A inputs key_state KEY_SLASH N/A N/A tilt 2.0 N/A N/A N/A inputs key_state KEY_A N/A N/A rot 2 N/A N/A N/A inputs key_state KEY_D N/A N/A rot 2 N/A N/A N/A inputs key_state KEY_P N/A N/A N/A N/A inputs key_state KEY_P N/A N/A N/A N/A inputs do_input_events N/A N/A N/A pi3d screenshot N/A N/A silo N/A str scshots .jpg N/A scshots 1 N/A N/A N/A inputs key_state KEY_ENTER N/A N/A mc 0 N/A N/A N/A inputs key_state KEY_X N/A N/A N/A N/A inputs key_state KEY_X N/A N/A N/A N/A inputs do_input_events N/A N/A mouseOn mouseOn N/A N/A N/A inputs grab_by_type keyboard grab mouseOn N/A N/A N/A inputs release N/A N/A N/A DISPLAY destroy