Changeset 813

Show
Ignore:
Timestamp:
01/21/10 00:20:06 (7 weeks ago)
Author:
sience
Message:

-...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/example/lua/main.lua

    r812 r813  
    7373        ------------------------------ 
    7474        -- CaduneTree    
     75 
     76        -- generate Seed, save this if you want to generate this Tree again      
    7577        local p = CreateCaduneTreeParameters() 
    7678        p:SetNumLeaves(5) 
     
    8082        --p:SetLeafMaterial("Leaves/Orange") 
    8183    p:SetLeafMaterial("Leaves/Ivylite") 
    82          
     84 
    8385        local s = CreateCaduneTreeStem(p) 
    8486        s:Grow() 
     
    8688        local gfx_leav = s:CreateLeaves() 
    8789 
    88         gfx_stem:SetPosition(0,-6,23) 
    89         gfx_leav:SetPosition(0,-6,23) 
     90        gfx_stem:SetPosition(0,-5.6,23) 
     91        gfx_leav:SetPosition(0,-5.6,23) 
    9092 
    9193        ------------------------------ 
     
    104106        gCaelumSystem:SetSceneFogDensityMultiplier(0.0015) 
    105107        gCaelumSystem:SetManageAmbientLight(true) 
     108         
     109    -- Sunrise with visible moon. 
     110    local cl = gCaelumSystem:GetUniversalClock() 
     111    cl:SetGregorianDateTime(2007, 4, 9, 9, 33, 10) 
     112    cl:SetTimeScale(2500) 
    106113                         
    107114        --~ local sun = gCaelumSystem:GetSun() 
     
    132139        --~ local prec = gCaelumSystem:GetPrecipitationController() 
    133140        --~ if prec then 
    134         print("PREC") 
    135                 --~ --prec:SetPresetType(1) 
    136     --~ end 
    137                  
    138     -- Sunrise with visible moon. 
    139     local cl = gCaelumSystem:GetUniversalClock() 
    140     cl:SetGregorianDateTime(2007, 4, 9, 9, 33, 10) 
    141     cl:SetTimeScale(2500) 
     141        --~ print("PREC") 
     142                --~ prec:SetPresetType(1) 
     143    --~ end 
    142144 
    143145        ------------------------------ 
     
    188190        ------------------------------ 
    189191 
     192--only tests 
    190193gAmbientLight = {r=0.2,g=0.2,b=0.2} 
    191194Client_SetAmbientLight(gAmbientLight.r, gAmbientLight.g, gAmbientLight.b, 1) 
    192  
    193195local mgr = GetSceneManager() 
    194196local light = mgr:createLight("LichtName")