WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-17-2011, 01:28 AM
antoine antoine is offline
Member
 
Join Date: Aug 2011
Posts: 9
tracking

hi all,

whats wrong in this scripting...i didn't find the mistake...i wont to track the scene..but it doesn't work...thanks for all support.

greetings

a

script:

import viz
import vizmocap


##############################
#--- Konfiguration:Anfang ---#
# Live Characters Unterstuetzung aktivieren
ACTIVATE_LIVE_CHARACTERS = True
# Gender True für Mann false für Frau
GENDER = False

position = [-0.5,0,-5]

#viz.MainView.getHeadLight().disable()

myModel = viz.add('Trash.dae')
myModel.appearance(viz.TEXMODULATE)

mylight = viz.addLight()
mylight.position(0,2,-5,0)
mylight.direction(0,0,0)
mylight.spread(20)
mylight.intensity(1)
mylight.spotexponent(80)

myModel.setScale([0.0254,0.0254,0.0254])
myModel.setEuler([-90,0,0], viz.ABS_GLOBAL)


if GENDER:
avatar = viz.add('BodyMale/casual01_m_highpoly.cfg')
else:
avatar = viz.add('BodyFemale/casual25_f_highpoly.cfg')

avatar.setPosition([0,0,-5], viz.ABS_GLOBAL)

if ACTIVATE_LIVE_CHARACTERS:
# Avatar mit MotionBuilder (LiveCharacters) verbinden
lc1 = vizmocap.LiveCharacter('130.92.154.102', 8050, model = avatar)
m_avatar_Head = avatar.getBone('Bip01 Head')
viewlink = viz.link(m_avatar_Head, viz.MainView)
viz.eyeheight(0)
viewlink.preTrans(position) # Blickfeld positionieren
viz.go(viz.HMD | viz.STEREO)
else:
m_avatar_Head = avatar.getBone('Bip01 Head')
viewlink = viz.link(m_avatar_Head, viz.MainView)
viz.eyeheight(0)
viewlink.preTrans(position) # Blickfeld positionieren
viz.go()
Reply With Quote
  #2  
Old 10-17-2011, 02:33 AM
antoine antoine is offline
Member
 
Join Date: Aug 2011
Posts: 9
sorry i want to track this scene with the hmd-display...but the viewpoint its still the same...nothing move in the scene...
Reply With Quote
  #3  
Old 10-18-2011, 11:03 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Is your avatar receiving Live Character updates? It seems like that maybe the problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jumping and Noise in head tracking cyclonseye Vizard 7 08-02-2010 10:25 AM
trouble tracking multiple lights Vkathrynr Precision Position Tracker (PPT) 2 08-26-2009 12:07 PM
Can I get real time Intersense tracking data from another computer on the network? GoldenSun Vizard 4 04-30-2008 07:42 PM
tracking with multiple LEDS dan12345 Precision Position Tracker (PPT) 7 04-02-2008 10:44 PM
ImmersaDesk system tracking kgarr Vizard 10 09-14-2006 11:17 AM


All times are GMT -7. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC