Module ImportFrom alias alias alias alias Expr Str Import alias alias alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Num Num Num Expr 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 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 Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad TupleLoad Num Num Num Num Num Assign NameStore TupleLoad TupleLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str 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 keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Num Num Num Num Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Num Num Num Num Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Num Num Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num BinOpAdd UnaryOpUSub Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Num Num Num Num Assign NameStore ListLoad ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num Num Num Num Num ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num Num Num ListLoad Num ListLoad Str ListLoad Num Num Num ListLoad Num ListLoad Str ListLoad Num Num ListLoad Num Num ListLoad Str ListLoad Num ListLoad Num ListLoad Str ListLoad Num ListLoad Num ListLoad Str ListLoad Num Num Num ListLoad Num Num ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num Num Num Num Num Num Num Num Num ListLoad Str ListLoad Num Num Num ListLoad Str ListLoad Num Num Num Num Num Num ListLoad Str ListLoad Num ListLoad Str ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr While Call AttributeLoad NameLoad attr body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index BinOpMod NameLoad NameLoad Index Num BinOpDiv Num BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod BinOpAdd NameLoad Num NameLoad Assign NameStore IfExp CompareLt NameLoad Num ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword NameLoad keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body For TupleStore NameStore NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Num NameLoad ListLoad BinOpAdd SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Index NameLoad BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr If CompareGt NameLoad Num body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str AugAssignAdd NameStore Num orelse If CompareEq NameLoad Num body Assign NameStore Num orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Break Assign AttributeStore NameLoad attr NameLoad
N/A __future__ absolute_import division print_function unicode_literals N/A  Same as ForestWalk demo but with moving Camera and application of a
series of PostProcess filters
 N/A math random time N/A demo N/A pi3d N/A LOGGER N/A N/A N/A pi3d Log logger __name__ N/A N/A N/A LOGGER info 

As yet there is no system for freeing gpu memory taken by shader
programs. On the pi after loading a total of 16 (2 base + 14 demo)
shaders, the screen will go black. Normally you wouldn't keep
loading lots of shaders in this way. Comment out some of the lines
where filter_list is defined
TODO - free shader memory?
 N/A DISPLAY N/A N/A N/A pi3d Display create w 1280 h 720 N/A N/A N/A DISPLAY set_background 0.4 0.8 0.8 1 N/A N/A N/A pi3d Light lightpos N/A 1 -1 -3 lightcol N/A 1.0 1.0 0.8 lightamb N/A 0.25 0.2 0.3 N/A shader N/A N/A pi3d Shader uv_bump N/A flatsh N/A N/A pi3d Shader uv_flat N/A tree2img N/A N/A pi3d Texture textures/tree2.png N/A tree1img N/A N/A pi3d Texture textures/tree1.png N/A hb2img N/A N/A pi3d Texture textures/hornbeam2.png N/A bumpimg N/A N/A pi3d Texture textures/grasstile_n.jpg N/A reflimg N/A N/A pi3d Texture textures/stars.jpg N/A rockimg N/A N/A pi3d Texture textures/rock1.jpg N/A FOG N/A N/A 0.3 0.3 0.4 0.7 650.0 N/A TFOG N/A N/A 0.2 0.24 0.22 1.0 150.0 N/A ectex N/A N/A pi3d loadECfiles textures/ecubes sbox N/A myecube N/A N/A pi3d EnvironmentCube size 900.0 maptype FACES name cube 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 mountimg1 N/A N/A pi3d Texture textures/mountains3_512.jpg N/A mymap N/A N/A pi3d ElevationMap textures/mountainsHgt.jpg name map width mapwidth depth mapdepth height mapheight divx 32 divy 32 N/A N/A N/A mymap set_draw_details shader N/A mountimg1 bumpimg reflimg 128.0 0.0 N/A N/A N/A mymap set_fog FOG N/A treeplane N/A N/A pi3d Plane w 4.0 h 5.0 N/A treemodel1 N/A N/A pi3d MergeShape name baretree N/A N/A N/A treemodel1 add N/A N/A treeplane buf N/A 0 0 0 0 N/A N/A N/A treemodel1 add N/A N/A treeplane buf N/A 0 0 0 0 0 90 0 N/A treemodel2 N/A N/A pi3d MergeShape name bushytree N/A N/A N/A treemodel2 add N/A N/A treeplane buf N/A 0 0 0 0 N/A N/A N/A treemodel2 add N/A N/A treeplane buf N/A 0 0 0 0 0 60 0 N/A N/A N/A treemodel2 add N/A N/A treeplane buf N/A 0 0 0 0 0 120 0 N/A mytrees1 N/A N/A pi3d MergeShape name trees1 N/A N/A N/A mytrees1 cluster N/A N/A treemodel1 buf N/A 0 mymap 0.0 0.0 200.0 200.0 20 8.0 3.0 N/A N/A N/A mytrees1 set_draw_details flatsh N/A tree2img 0.0 0.0 N/A N/A N/A mytrees1 set_fog TFOG N/A mytrees2 N/A N/A pi3d MergeShape name trees2 N/A N/A N/A mytrees2 cluster N/A N/A treemodel2 buf N/A 0 mymap 0.0 0.0 200.0 200.0 20 6.0 3.0 N/A N/A N/A mytrees2 set_draw_details flatsh N/A tree1img 0.0 0.0 N/A N/A N/A mytrees2 set_fog TFOG N/A mytrees3 N/A N/A pi3d MergeShape name trees3 N/A N/A N/A mytrees3 cluster treemodel2 mymap 0.0 0.0 300.0 300.0 20 4.0 2.0 N/A N/A N/A mytrees3 set_draw_details flatsh N/A hb2img 0.0 0.0 N/A N/A N/A mytrees3 set_fog TFOG N/A monument N/A N/A pi3d Model file_string models/pi3d.obj name monument N/A N/A N/A monument set_shader shader N/A N/A N/A monument set_normal_shine bumpimg 16.0 reflimg 0.5 N/A N/A N/A monument set_fog FOG N/A N/A N/A monument translate 100.0 N/A N/A N/A N/A mymap calcHeight 100.0 230 5.8 230.0 N/A N/A N/A monument scale 20.0 20.0 20.0 N/A N/A N/A monument rotateToY 65 N/A scshots 1 N/A rot 0.0 N/A tilt 0.0 N/A avhgt 3.5 N/A xm 0.0 N/A zm 0.0 N/A ym N/A N/A N/A mymap calcHeight xm zm avhgt N/A mykeys N/A N/A pi3d Keyboard N/A CAMERA N/A N/A pi3d Camera scale 0.5 N/A CAM2D N/A N/A pi3d Camera is_3d False N/A font N/A N/A pi3d Font fonts/FreeMonoBoldOblique.ttf N/A 221 221 128 255 N/A filter_list N/A N/A shaders/filter_toon N/A 0.0 0.0 0.0 N/A post_base N/A 2.5 N/A shaders/filter_sepia N/A 0.0 0.0 0.0 N/A shaders/filter_lens N/A -0.2 -0.2 0.3 N/A shaders/filter_blurradial N/A 0.0 0.0 0.0 0.0 0.1 N/A shaders/filter_shiftrgb N/A 0.25 0.3 0.1 N/A shaders/filter_noise N/A 15.0 100.0 0.25 N/A 0.01 N/A shaders/filter_crystalog N/A 10.0 100.0 0.25 N/A 0.0005 N/A shaders/filter_patterns N/A 1.0 0.3 N/A 0.01 0.001 N/A shaders/filter_displace N/A 14.0 N/A 0.05 N/A shaders/filter_space_dist N/A 2.0 N/A 0.01 N/A shaders/filter_color_dist N/A 21.0 3.0 7.0 N/A 0.002 -0.002 N/A shaders/filter_outline N/A 0.0 0.0 0.0 N/A shaders/filter_colorize N/A 1.0 0.5 0.0 0.0 1.0 0.5 0.5 0.0 1.0 N/A shaders/filter_neg N/A 0.0 0.0 0.0 N/A shaders/filter_charcoal N/A 0.0 0.0 0.0 1.0 1.0 0.7 N/A shaders/filter_blur N/A 0.0075 N/A shaders/filter_hatch N/A 0.1 0.0 0.0 N/A n_filter N/A len filter_list N/A i_filter -1 N/A N/A cx cz N/A 70.0 190.0 N/A c_rad 80.0 N/A frame 0 N/A st_time N/A N/A time time N/A N/A N/A DISPLAY loop_running N/A N/A N/A N/A rot 360.0 0.0 N/A N/A N/A N/A LOGGER info N/A N/A {} FPS was {:.5} format N/A N/A filter_list N/A N/A i_filter n_filter N/A 0 N/A 360.0 N/A N/A N/A time time st_time N/A i_filter N/A N/A i_filter 1 n_filter N/A texetc N/A N/A i_filter 3 N/A reflimg None N/A post N/A N/A pi3d PostProcess N/A N/A filter_list N/A i_filter N/A 0 add_tex texetc scale 0.5 N/A N/A N/A N/A post sprite set_custom_data 48 N/A N/A filter_list N/A i_filter N/A 1 N/A string N/A N/A pi3d String font font string N/A N/A filter_list N/A i_filter N/A 0 camera CAM2D is_3d False x 0 y -220 z 0.5 N/A N/A N/A string set_shader flatsh N/A st_time N/A N/A time time N/A N/A N/A len N/A filter_list N/A i_filter 2 N/A N/A N/A i delta N/A enumerate N/A N/A filter_list N/A i_filter N/A 2 N/A N/A N/A N/A N/A post sprite set_custom_data N/A 48 i N/A N/A N/A N/A N/A filter_list N/A i_filter N/A 1 N/A i N/A rot delta N/A xm N/A cx N/A N/A N/A math sin N/A N/A math radians rot c_rad N/A zm N/A cz N/A N/A N/A math cos N/A N/A math radians rot c_rad N/A ym N/A N/A N/A mymap calcHeight xm zm avhgt N/A rot 1.0 N/A N/A N/A CAMERA reset N/A N/A N/A CAMERA rotate tilt N/A rot 15.0 0 N/A N/A N/A CAMERA position N/A xm ym zm N/A N/A N/A post start_capture N/A N/A N/A monument draw N/A N/A N/A mytrees1 draw N/A N/A N/A mytrees2 draw N/A N/A N/A mytrees3 draw N/A N/A N/A mymap draw N/A N/A N/A myecube draw N/A N/A N/A post end_capture N/A N/A N/A post draw N/A N/A N/A string draw N/A frame 1 N/A k N/A N/A mykeys read N/A N/A k -1 N/A N/A N/A k 112 N/A N/A N/A N/A pi3d screenshot N/A N/A forestWalk N/A str scshots .jpg N/A scshots 1 N/A N/A N/A k 10 N/A N/A mc 0 N/A N/A N/A k 27 N/A N/A N/A N/A mykeys close N/A N/A N/A DISPLAY stop N/A N/A N/A CAMERA was_moved False