![]() |
|
|
|
#1
|
|||
|
|||
|
I checked my task manager and I only have one Vizard running.
So I tried your code and, as you said, the 8080 port is used and if I change it to 9253, as you suggest, the error disappear. Do I have to change some vizard code to correct that? Thanks for your answer Chris KoRnemuse |
|
#2
|
|||
|
|||
|
Unfortunately, at this time, there's no method for redirecting vizconnect to another port. I'll work to add a search option for available ports into a future release. Without that, the configuration utility is currently unavailable, unless the other process which is holding that port can be redirected.
I noticed that you've also posted regarding inverse kinematics. Even without using the interface you can still access the inverse kinematics modules, if you'd like to use that code directly. Here's a sample. Code:
import viz
import vizconnect
# need to get the raw tracker dict for animating the avatars
from vizconnect.util.avatar import animator
from vizconnect.util.avatar import skeleton
# press key 1 to control head, key 2 to control hand
# keys w,a,s,d,z,x control position, keys t,f,g,h,v,b control orientation
from vizconnect.util import virtual_trackers
YOUR_HEAD_TRACKER = virtual_trackers.Keyboard()
YOUR_HEAD_TRACKER.setPosition(0, 1.5, 0)
YOUR_RIGHT_HAND_TRACKER = virtual_trackers.Keyboard()
avatar = viz.add('vcc_female.cfg')
# get the skeleton from the avatar
mySkeleton = skeleton.CompleteCharacters(avatar)
#VC: set which trackers animate which body part
# format is: bone: (tracker, parent, degrees of freedom used)
# The hand is set to move with the head.
# Set the parent (2nd param) to None to disable parenting.
_trackerAssignmentDict = {
vizconnect.AVATAR_HEAD:(YOUR_HEAD_TRACKER, None, vizconnect.DOF_6DOF),
vizconnect.AVATAR_R_HAND:(YOUR_RIGHT_HAND_TRACKER, vizconnect.AVATAR_HEAD, vizconnect.DOF_POS),
}
#VC: create the raw object
myAnimator = animator.InverseKinematics(avatar, mySkeleton, _trackerAssignmentDict)
viz.go()
viz.add('piazza.osgb')
Chris |
|
#3
|
|||
|
|||
|
Unrelated to sockets, but I'll dump it here anyway:
I can't seem to get the Vizconnect interface working on Firefox. It opens the start, but whenever I click any of the options it shows the loading icon for a bit and then just jumps back to the start again. In IE it works fine. Am I just missing some plugin, or..? |
|
#4
|
|||
|
|||
|
Thanks for your feedback! There is an issue with how firefox handles the timing for page redirections. This will be fixed in the next release.
Cheers, Chris |
![]() |
| Tags |
| beta3, server, socket, vizconnect |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vizconnect | ckharrison | Vizard | 3 | 02-17-2014 10:26 PM |