WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-02-2010, 04:06 AM
cyclonseye cyclonseye is offline
Member
 
Join Date: Jul 2010
Posts: 6
comparing data between 2 continous frame and stereo vision

First question

I made a head track and compared vision system, but I have some problems because of noise.

So, I want to make a filter to decrease the noise.

The filter system which I am thinking about is following. I want to campare head's angle data in continuos 2 frames.
1. compare head's angle data in current frame and 1 frame before.
2. if change of value > x, the data in current frame will be ignored.

following is some part of my code

[CODE]def mytimer(num):
data = body.getPosition()
euldata = body.getEuler()

if abs(pre1 - euldata[0] + pre2 - euldata[1] + pre3 - euldata[2])<100:
view.translate(data[0],data[1]+1,data[2])
view.rotate(euldata[0],euldata[1],euldata[2])
else:
view.translate(data[0],data[1]+1,data[2])

pre1 = euldata[0]
pre2 = euldata[1]
pre3 = euldata[2]

viz.callback(viz.TIMER_EVENT,mytimer)
viz.starttimer(0,0,viz.FOREVER)[\CODE]


There is error that 'can't use data of frame before'.
How can I do it??

////////////////////////////////////////////////////////////////////////////////
Second question

I want to see stereo vision in HMD, but I can't.
2 monitors of HMD should show each vision, but they should not.
2 monitors show two stereo visions like in 1 monitor.
I don't know what is the problem.

I am using quadro fx 1400 and HMD - i-visor fx601.
setting is : stereo - enable, stereo mode - shutter glasses use

following is my code
[CODE]
import viz
viz.setOption('viz.fullscreen.monitor',2)
viz.go(viz.QUAD_BUFFER|viz.STEREO|viz.HMD|viz.FULL SCREEN)

viz.add('court.ive')
viz.collision(viz.ON)

class CameraControler(viz.CameraHandler):
def _camUpdate(self,e):
if viz.iskeydown(viz.KEY_UP):
e.view.move(0,0,e.elapsed*5)
elif viz.iskeydown(viz.KEY_DOWN)
e.view.move(0,0,e.elapsed*5)

viz.cam.setHandler(CameraControler())

[\CODE]
Reply With Quote
  #2  
Old 08-02-2010, 12:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Take a look at Vizard's filter plug-in. That's documented in the Vizard help and may help with your first question.

For your second question, have you been able to get it to work with a single monitor in stereo using:
Code:
viz.go(viz.QUAD_BUFFER | viz.FULLSCREEN)
In the future please create a separate threads for unrelated questions.

There is an error with your closing code tag so the tags are not working. You should be using [code][/code]
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
screen reference frame for stereo cade_mccall Vizard 1 05-18-2007 10:49 AM


All times are GMT -7. The time now is 02:05 PM.


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