#1
|
|||
|
|||
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() |
#2
|
|||
|
|||
sorry i want to track this scene with the hmd-display...but the viewpoint its still the same...nothing move in the scene...
|
#3
|
|||
|
|||
Is your avatar receiving Live Character updates? It seems like that maybe the problem.
|
|
|
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 |