From c42e3e1b991c2befacf785cf984fc7d7eac104e4 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Tue, 29 Nov 2005 20:26:54 +0000 Subject: [PATCH] Removed crap from docstring --- direct/src/showbase/ShadowDemo.py | 54 +++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/direct/src/showbase/ShadowDemo.py b/direct/src/showbase/ShadowDemo.py index e910d88803..cec71a2c31 100755 --- a/direct/src/showbase/ShadowDemo.py +++ b/direct/src/showbase/ShadowDemo.py @@ -188,33 +188,33 @@ def arbitraryShadow(node): return sc -def testShadow(): +##def testShadow(): ## a = piratesAvatarShadow() - """ -from direct.showbase.ShadowDemo import * -from direct.interval.IntervalGlobal import * -b = loader.loadModel('/i/beta/PotC/Maya/Pirates/scenes/models/sets/buildings/spanish_buildings/TavernIntExt/tavern_ext/bar.egg') -bs = arbitraryShadow(b) -s = loader.loadModel('smiley') -s.reparentTo(bs.lightPath) -b.reparentTo((base.localAvatar)) -a = AmbientLight('cloudAmbientHi') -a.setColor(Vec4(0.9, 0.9, 0.9, 1.000)) -aNP = s.attachNewNode(a.upcastToPandaNode()) -b.setLight(aNP) -d = DirectionalLight("chernabogDirectionalLight") -d.setDirection(Vec3(0,1,0)) -d.setColor(Vec4(1)) -#d.setColor(Vec4(0.9, 0.7, 0.7, 1.000)) -dNP = s.attachNewNode(d.upcastToPandaNode()) -b.setLight(dNP) - -ival = Sequence(LerpPosInterval(bs.lightPath, 0.0, Vec3(-200,0,50)), - LerpPosInterval(bs.lightPath, 10.0, Vec3(-200,0,200)), - LerpPosInterval(bs.lightPath, 10.0, Vec3(200,0,200)), - LerpPosInterval(bs.lightPath, 10.0, Vec3(200,0,50)), -) -ival.loop() +## +##from direct.showbase.ShadowDemo import * +##from direct.interval.IntervalGlobal import * +##b = loader.loadModel('/i/beta/PotC/Maya/Pirates/scenes/models/sets/buildings/spanish_buildings/TavernIntExt/tavern_ext/bar.egg') +##bs = arbitraryShadow(b) +##s = loader.loadModel('smiley') +##s.reparentTo(bs.lightPath) +##b.reparentTo((base.localAvatar)) +##a = AmbientLight('cloudAmbientHi') +##a.setColor(Vec4(0.9, 0.9, 0.9, 1.000)) +##aNP = s.attachNewNode(a.upcastToPandaNode()) +##b.setLight(aNP) +##d = DirectionalLight("chernabogDirectionalLight") +##d.setDirection(Vec3(0,1,0)) +##d.setColor(Vec4(1)) +###d.setColor(Vec4(0.9, 0.7, 0.7, 1.000)) +##dNP = s.attachNewNode(d.upcastToPandaNode()) +##b.setLight(dNP) +## +##ival = Sequence(LerpPosInterval(bs.lightPath, 0.0, Vec3(-200,0,50)), +## LerpPosInterval(bs.lightPath, 10.0, Vec3(-200,0,200)), +## LerpPosInterval(bs.lightPath, 10.0, Vec3(200,0,200)), +## LerpPosInterval(bs.lightPath, 10.0, Vec3(200,0,50)), +##) +##ival.loop() + - """