Example #1
0
if 0:
    print "Testing taking a screenshot..."
    
    path = "pymodules/webserver/screenshot/"
    pic = "current.png"
    
    hmm = r.takeScreenshot(path, pic)
    
if 0:
    print "Testing event sending, camera for now..."#   , r.SwitchCameraState
    hmm = r.sendEvent(r.SwitchCameraState)
    print "test done?", hmm

if 0:
    print "Testing camera swap..."
    hmm = r.switchCameraState()
    #print hmm
    
if 0: #get entity
    #idnum = new_id
    idnum = naali.getCamera().id
    print "Getting entity id", idnum,
    e = naali.getEntity(idnum)
    print "got:", e
    #print dir(r)
    #rotate(e)
    #move(e)

if 0: #test avatartracking, works :)
    try:
        a = naali.getUserAvatar()
Example #2
0
 def update(self, t):
     if self.cam is None and self.scene is not None:
         cament = naali.getCamera()
         self.cam = cament
         r.switchCameraState() #supposes that FREECAM was off, turns it on.
Example #3
0
if 0:
    print "Testing taking a screenshot..."

    path = "pymodules/webserver/screenshot/"
    pic = "current.png"

    hmm = r.takeScreenshot(path, pic)

if 0:
    print "Testing event sending, camera for now..."  #   , r.SwitchCameraState
    hmm = r.sendEvent(r.SwitchCameraState)
    print "test done?", hmm

if 0:
    print "Testing camera swap..."
    hmm = r.switchCameraState()
    #print hmm

if 0:  #get entity
    #idnum = new_id
    print "Getting entity id", idnum,
    e = r.getEntity(idnum)
    print "got:", e
    #print dir(r)
    rotate(e)
    #move(e)

if 0:  #test avatartracking, works :)
    av_entid = 2628869553
    print "<:::",
    try:
Example #4
0
 def update(self, t):
     if self.cam is None and self.scene is not None:
         cament = naali.getCamera()
         self.cam = cament
         r.switchCameraState()  # supposes that FREECAM was off, turns it on.