![]() |
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() |
sorry i want to track this scene with the hmd-display...but the viewpoint its still the same...nothing move in the scene...
|
Is your avatar receiving Live Character updates? It seems like that maybe the problem.
|
All times are GMT -7. The time now is 07:19 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC