# Scene 4 Setup

CreateNode Scene4Node Root
EnableNode \Scene4Node 0
SetScale \Scene4Node 1.85 1.85 1.85

CreateVariable DickbotMotion Linear 3
SetVariableKeyFrame DickbotMotion 0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 0.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 1.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 1.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 2.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 2.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 3.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 3.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 4.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 4.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 5.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 5.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 6.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 6.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 7.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 7.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 8.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 8.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 9.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 9.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 10.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 10.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 11.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 11.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 12.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 12.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 13.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 13.5 -90.0 -130.0 0.0
SetVariableKeyFrame DickbotMotion 14.0 -90.0 -120.0 0.0
SetVariableKeyFrame DickbotMotion 14.5 -90.0 -130.0 0.0

CreateVariable DickbotMotionPos Linear 3
SetVariableKeyFrame DickbotMotionPos 0 -5.0f -10.0f 50.0f 
SetVariableKeyFrame DickbotMotionPos 6 -5.0f -10.0f 15.0f 

CreateNode SceneModel Scene4Node
AddProperty ModelRenderer DickBotRenderer \Scene4Node\SceneModel DickBotModel
BindMaterial DickBotRenderer Material MT_DickBot
SetRotation \Scene4Node\SceneModel DickbotMotion
#-90.0f -120.0f 0.0f
SetPosition \Scene4Node\SceneModel DickbotMotionPos
#-5.0f -10.0f 20.0f 

CreateNode N_ANIMAL Scene4Node
CreateTexture T_ANIMAL "Data\animal.png"
CreateMaterial MT_ANIMAL Data\Mats\BasicMaterial.txt
BindTexture MT_ANIMAL Texture T_ANIMAL
SetColour MT_ANIMAL AmbientColour 1.0f 1.0f 1.0f
CreateQuad MO_ANIMAL
AddProperty ModelRenderer AnimalRenderer \Scene4Node\N_ANIMAL MO_ANIMAL
BindMaterial AnimalRenderer Material MT_ANIMAL
SetScale \Scene4Node\N_ANIMAL T_ANIMAL
EnableNode \Scene4Node\N_ANIMAL 0

CreateNode N_VEGETABLE Scene4Node
CreateTexture T_VEGETABLE "Data\vegetable.png"
CreateMaterial MT_VEGETABLE Data\Mats\BasicMaterial.txt
BindTexture MT_VEGETABLE Texture T_VEGETABLE
SetColour MT_VEGETABLE AmbientColour 1.0f 1.0f 1.0f
CreateQuad MO_VEGETABLE
AddProperty ModelRenderer VegetableRenderer \Scene4Node\N_VEGETABLE MO_VEGETABLE
BindMaterial VegetableRenderer Material MT_VEGETABLE
SetScale \Scene4Node\N_VEGETABLE T_VEGETABLE
EnableNode \Scene4Node\N_VEGETABLE 0

CreateNode N_MINERAL Scene4Node
CreateTexture T_MINERAL "Data\mineral.png"
CreateMaterial MT_MINERAL Data\Mats\BasicMaterial.txt
BindTexture MT_MINERAL Texture T_MINERAL
SetColour MT_MINERAL AmbientColour 1.0f 1.0f 1.0f
CreateQuad MO_MINERAL
AddProperty ModelRenderer MineralRenderer \Scene4Node\N_MINERAL MO_MINERAL
BindMaterial MineralRenderer Material MT_MINERAL
SetScale \Scene4Node\N_MINERAL T_MINERAL
EnableNode \Scene4Node\N_MINERAL 0

CreateNode N_ABSTRACT Scene4Node
CreateTexture T_ABSTRACT "Data\abstract conceptacle.png"
CreateMaterial MT_ABSTRACT Data\Mats\BasicMaterial.txt
BindTexture MT_ABSTRACT Texture T_ABSTRACT
SetColour MT_ABSTRACT AmbientColour 1.0f 1.0f 1.0f
CreateQuad MO_ABSTRACT
AddProperty ModelRenderer AbstractRenderer \Scene4Node\N_ABSTRACT MO_ABSTRACT
BindMaterial AbstractRenderer Material MT_ABSTRACT
SetScale \Scene4Node\N_ABSTRACT T_ABSTRACT
EnableNode \Scene4Node\N_ABSTRACT 0

