WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-17-2011, 08:18 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Inserting Gridlines

Hi All,

I am working on a vehicle detection task whereby participants are required to watch a number of vehicles move within a scene and then click in the location where they felt that they saw them move.

Is there any way of adding gridlines over the main field of vision after the objects have disappeared, so that they can select the "zone" where they felt a vehicle was moving?

I can then use the coordinates to decide whether there response was correct.

Best,

Mark
Reply With Quote
  #2  
Old 08-17-2011, 09:25 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you just want to display grid lines overlayed on the screen, then you can use the vizshape.addGrid command. Here is an example:
Code:
import viz
import vizshape
viz.go()

grid = vizshape.addGrid([1,1],step=0.1,boldStep=None,axis=vizshape.AXIS_Z,parent=viz.SCREEN)
grid.color(viz.RED)
grid.setPosition([0.5,0.5,0])
You can adjust the step argument to control the distance between the lines.
Reply With Quote
  #3  
Old 08-18-2011, 05:59 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Thanks - that's pretty much exactly what I was looking for!

Is there any way of removing the horizontal gridlines?

Thanks again!
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


All times are GMT -7. The time now is 12:09 PM.


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