WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-11-2015, 06:52 AM
g.vannan g.vannan is offline
Member
 
Join Date: Jul 2014
Location: India
Posts: 8
Post Wii nunchuck connection problem

I connected wii mote and able to make walkthrough in cave but not able to connect nunchuck....need suggestion $$$
is any possible way to get acceleration value of wii mote?
Reply With Quote
  #2  
Old 03-11-2015, 07:46 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Does the following show the nunchuk is connected?

Code:
import viz
viz.go()

#Add wiimote extension 
wii = viz.add('wiimote.dle') 

#Connect to first available wiimote 
wiimote = wii.addWiimote() 

#Rumble wiimote for 0.5 seconds when nunchuk is connected 
def onConnect(e): 
	if e.extension == wii.EXT_NUNCHUK:
		print 'nunchuk connected'
		e.object.setRumble(True,0.5) 
viz.callback(wii.EXT_CONNECT_EVENT,onConnect)
You can get the acceleration. The wiimote plug-in page documents all the available commands.
Reply With Quote
  #3  
Old 03-15-2015, 11:17 PM
g.vannan g.vannan is offline
Member
 
Join Date: Jul 2014
Location: India
Posts: 8
Yes ,code is working
How to connect
Nunchuck joystick
Reply With Quote
  #4  
Old 03-16-2015, 06:42 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try the following:

Code:
import viz
import vizact
viz.go()

wii = viz.add('wiimote.dle') 
wiimote = wii.addWiimote() 

nunchuk = wiimote.nunchuk

def printNunchukPosition():
	print nunchuk.getPosition()
	
vizact.ontimer(0,printNunchukPosition)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Oculus Rift connection problem mshukun Vizard 1 10-01-2014 12:15 PM
PPT Mocap and Motion Builder Connection Problem hxphan Precision Position Tracker (PPT) 3 02-22-2011 11:01 AM
Vizard problem mizutani_jun Vizard 4 01-09-2011 03:39 PM
Immersion Cyberglove connection problem gwfassociates Vizard 1 05-17-2009 03:29 PM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM


All times are GMT -7. The time now is 07:12 AM.


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