WorldViz User Forum On the fly
 Register FAQ Search Today's Posts Mark Forums Read

#1
10-28-2009, 08:26 AM
 AnnieSlim Member Join Date: Oct 2009 Posts: 2
On the fly

Hi,

I'm brand new to Vizard and would like to find out if i can do the following:

Insert multiple dot circles (like the example in the onthefly demo) and assign different directions of motion to each. Currently, I have made a display that contains 3 dot balls, in a vertical column; and I have worked out how to assign motion to each.

Now, I am trying to work out how i could substitute the following code:

#Change the position of a vertex
for m in range (0, NUM_DOTS):
x = random.random() - 0.5
y = random.random() - 0.5
z = random.random() - 0
length = math.sqrt(x*x + y*y + z*z)
x = x / length * RADIUS
y = y / length * RADIUS
z = z / length * RADIUS
So that I could make either, Horizontal or vertical motion (with all the dots moving within the circle).

Has anybody any suggestions regarding this? Thank you so much!!!

Annie x
#2
10-29-2009, 12:27 PM
 farshizzo WorldViz Team Member Join Date: Mar 2003 Posts: 2,849
I don't understand, do you want to animate each dot individually or the group of dots as a whole?
#3
10-30-2009, 03:15 AM
 AnnieSlim Member Join Date: Oct 2009 Posts: 2
I was hoping that all the dots could move as a whole, but so that the patch within the circle would stay in the same place - i.e. if a dot was to go outside of the patch then it would need to be removed and replaced with a new dot within the patch. A similar paradigm is a motion coherence task, where the coherence is set to 100%.

Thanks, I hope that makes sense, if it doesn't please let me know.

Thanks x

 Thread Tools Display Modes Rate This Thread Hybrid Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements Vizard Precision Position Tracker (PPT) Plug-in development

All times are GMT -7. The time now is 04:27 PM.