WorldViz User Forum  

Go Back   WorldViz User Forum > Search Forums

Showing results 26 to 50 of 60
Search took 0.01 seconds; generated 64 minute(s) ago.
Search: Posts Made By: whj
Forum: Vizard 07-10-2009, 01:57 PM
Replies: 2
Views: 23,019
Posted By whj
Thank you. That's exactly what I need.

Thank you. That's exactly what I need.
Forum: Vizard 07-10-2009, 09:13 AM
Replies: 2
Views: 23,019
Posted By whj
Interaction solution?

Hello, I'm thinking about investigate two persons interaction in VR. Is there anyway that two persons wear HMDs see the same virtual environment but they have their own view? Thanks a lot!
Forum: Vizard 04-21-2009, 01:29 PM
Replies: 2
Views: 21,804
Posted By whj
Thanks anyway.

Thanks anyway.
Forum: Vizard 04-21-2009, 09:16 AM
Replies: 2
Views: 21,804
Posted By whj
constant speed on animation path

Hello, By pressing 'a', my script simply starts a car in a road. My question is how to make the car move in a constant speed. I use path.constantspeed(), but seems to me that the car will accelerate...
Forum: Vizard 04-12-2009, 08:48 AM
Replies: 11
Views: 26,842
Posted By whj
Thank you so much for your help, especially at...

Thank you so much for your help, especially at weekend. :)
Forum: Vizard 04-10-2009, 03:44 PM
Replies: 11
Views: 26,842
Posted By whj
Thank you, Jeff. It works! Now I make a...

Thank you, Jeff. It works!

Now I make a little change on the reset part. I would like to reset the object (duck or ball) right before being played. But I got the following error:

Traceback...
Forum: Vizard 04-10-2009, 02:43 PM
Replies: 11
Views: 26,842
Posted By whj
Oh!!! I always thought the second argument of...

Oh!!! I always thought the second argument of vizact.ontimer2 was the number of times to active the timer. Sorry about that. I should set it to 0. I'll correct it and see what happened....

Thanks...
Forum: Vizard 04-09-2009, 07:41 PM
Replies: 11
Views: 26,842
Posted By whj
I don't understand that "a timer object is...

I don't understand that "a timer object is created that will repeat one time, so the ball's path will be played twice." Why will it REPEAT one time? I thought the ball should be play only two times...
Forum: Vizard 04-09-2009, 12:45 PM
Replies: 11
Views: 26,842
Posted By whj
Seems to me that the array of myTimerAction got...

Seems to me that the array of myTimerAction got initialized correctly, but after path[x].pause() and path[x].reset(), the animation path were messed up. Any suggestion?
Forum: Vizard 04-09-2009, 09:52 AM
Replies: 11
Views: 26,842
Posted By whj
Hi, I think the 3 is actually...

Hi,

I think the 3 is actually len(time_to_go) or len(object). Because I define 3 events. I just put "donothing" as the first event (for duck action), and put ball actions as the 2nd and the 3rd...
Forum: Vizard 04-08-2009, 07:33 PM
Replies: 11
Views: 26,842
Posted By whj
Seems like I can play a lot of animation paths in...

Seems like I can play a lot of animation paths in a specific schedule, but every animation path can be played only once. Otherwise it would be messed up. Any hint?
Forum: Vizard 04-08-2009, 12:35 PM
Replies: 11
Views: 26,842
Posted By whj
Timer Actions problem

Hello,

I wrote a small script basically want to play some animation paths in a specific schedule and every animation path can be played more than once.

In this script, I create an animation...
Forum: Vizard 01-20-2009, 10:15 AM
Replies: 3
Views: 56,902
Posted By whj
Basically I want to look around with HMD and move...

Basically I want to look around with HMD and move with joystick independently at the same time. Here is what I've done. Worked a little bit and then messed up. Does anybody know how to correct my...
Forum: Vizard 01-19-2009, 04:56 PM
Replies: 3
Views: 56,902
Posted By whj
I'm not sure if I make it clear. To solve this...

I'm not sure if I make it clear. To solve this problem, I'm looking for a way to turn off the connection between the head orientation and the moving direction. The moving direction is controlled by...
Forum: Vizard 01-19-2009, 03:27 PM
Replies: 3
Views: 56,902
Posted By whj
orientation question

Hello,

Generally I have two ways to control orientation. One is to turn the viewpoint with head, the code would be like:

rot_data = ppt.getEuler()
viz.reset(viz.HEAD_ORI)...
Forum: Vizard 11-17-2008, 07:41 PM
Replies: 8
Views: 70,206
Posted By whj
OK. Thanks for your help.

OK. Thanks for your help.
Forum: Vizard 11-10-2008, 01:52 PM
Replies: 0
Views: 24,556
Posted By whj
Cubic Bezier Curve

Hello,

What I understood about Cubic Bezier curve is that, given two endpoints and two control points, it is a smooth curve that begins and end at the endpoints, but not passes through the control...
Forum: Vizard 11-10-2008, 09:36 AM
Replies: 8
Views: 70,206
Posted By whj
Hi Jeff, Please see the following code. The...

Hi Jeff,

Please see the following code. The car speed up when it turns. Seems still not constant speed for some curves. How can I improve it? About cubic_bezier curve, do I specify only 4 points...
Forum: Vizard 11-09-2008, 07:52 PM
Replies: 8
Views: 70,206
Posted By whj
Thanks Jeff. I didn't put...

Thanks Jeff. I didn't put path.translatemode(viz.CUBIC_BEZIER) in my code.:p Yes, cubic_bezier mode has constant speed.

BTW, it's not bad for me to specify all positions of a animation path using...
Forum: Vizard 11-05-2008, 09:19 PM
Replies: 8
Views: 70,206
Posted By whj
Seems that computeTangents() mode doesn't work...

Seems that computeTangents() mode doesn't work too. Then how can I smoothly move a object in a specified curve with constent speed?

Thanks,
Forum: Vizard 11-02-2008, 01:48 PM
Replies: 8
Views: 70,206
Posted By whj
speed on animation path

Hello Jeff,

Previously you helped me out with the problem that how to get the position of an object two seconds ahead. Thanks a lot. Here is the code with slight change on your code, in which a...
Forum: Vizard 10-06-2008, 04:38 PM
Replies: 10
Views: 57,727
Posted By whj
Yes, that's exactly what I want. If there is a...

Yes, that's exactly what I want. If there is a system defined variable about current speed, something like get.speed(), then I don't need to maintain them by myself. That's why I'm asking. But if...
Forum: Vizard 10-01-2008, 10:49 PM
Replies: 10
Views: 57,727
Posted By whj
I do use animationpath.constantspeed when I...

I do use animationpath.constantspeed when I begin. But what I need to know is not only the initial speed. If I want to accelerate or decelerate a car, I would like to increase or decrease the car...
Forum: Vizard 09-26-2008, 02:45 PM
Replies: 10
Views: 57,727
Posted By whj
Hi, Jeff That's really helpful! Thanks a...

Hi, Jeff

That's really helpful! Thanks a lot!

I have another question. Is there any way I can get the current speed of the object, like accessing some environment variable? The reason I need it...
Forum: Vizard 09-20-2008, 10:34 AM
Replies: 10
Views: 57,727
Posted By whj
Sorry I didn't make it clear. I need to know the...

Sorry I didn't make it clear. I need to know the position in advance, like where the car could be in the next 2 seconds. So I can predict if they would crash. (I know your sample code is a way to...
Showing results 26 to 50 of 60

 
Forum Jump

All times are GMT -7. The time now is 11:49 AM.


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