WorldViz User Forum  

Go Back   WorldViz User Forum > Search Forums

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: DrunkenBrit
Forum: Vizard 02-19-2009, 12:36 AM
Replies: 8
Views: 14,753
Posted By DrunkenBrit
Are you resetting the Z position of the selected...

Are you resetting the Z position of the selected ball in the mouse movement callback which moves the ball's X and/or Y position?
Forum: Vizard 02-19-2009, 12:32 AM
Replies: 4
Views: 9,467
Posted By DrunkenBrit
Thanks for the info.

Thanks for the info.
Forum: Vizard 02-19-2009, 12:26 AM
Replies: 2
Views: 9,578
Posted By DrunkenBrit
I solved it pretty much after I posted thanks, it...

I solved it pretty much after I posted thanks, it was just a newbie syntax error but it confused me as the exact same for loop worked outside of the callback.
Forum: Vizard 02-18-2009, 03:51 AM
Replies: 5
Views: 9,543
Posted By DrunkenBrit
What happens when you remove...

What happens when you remove 'viz.add('table.wrl')'?
Forum: Vizard 02-18-2009, 03:49 AM
Replies: 2
Views: 9,578
Posted By DrunkenBrit
For Loop in Callbacks?

Hi,

I'm assuming you can't have for loops (or any loops?) inside timer callback functions? I'm getting an invalid syntax error when attempting this. If this is the case, I take it it's due to the...
Forum: Vizard 02-18-2009, 02:36 AM
Replies: 4
Views: 9,467
Posted By DrunkenBrit
Sorry, that above callback won't work right...try...

Sorry, that above callback won't work right...try this:


def myTimer(num):
newPosition = female.getPosition()
newPosition[2] = newPosition[2]-2 # Move back in Z a bit
...
Forum: Vizard 02-18-2009, 02:16 AM
Replies: 4
Views: 9,467
Posted By DrunkenBrit
viz.MainView.getPosition(female.getPosition()) ...

viz.MainView.getPosition(female.getPosition())


You're invoking the wrong function for a start, you need to call 'viz.MainView.setPosition' not 'viz.MainView.getPosition'.

This will only occur...
Forum: Vizard 02-18-2009, 01:39 AM
Replies: 1
Views: 7,032
Posted By DrunkenBrit
Probably using a for loop. I've never...

Probably using a for loop.



I've never used sensors before, but i'd imagine it will be a callback function that assigns the id of which block the sensor is over.

Then maybe a timer function...
Forum: Vizard 02-17-2009, 05:33 AM
Replies: 8
Views: 14,753
Posted By DrunkenBrit
Maybe something along the lines of: ...

Maybe something along the lines of:


diffInZ = 3.0 # Value to add/subtract to Z position of selected ball

def onMouseWheel(dir):

global ball # Same ball object selected from previous...
Forum: Vizard 02-17-2009, 05:12 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
Sorry, i've done my best to try and explain how i...

Sorry, i've done my best to try and explain how i would initially go about it based on what I think you're after achieving and without seeing your code so far and the current world you've created.
Forum: Vizard 02-17-2009, 04:58 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
Like i've said in the above post, simulate a...

Like i've said in the above post, simulate a collision based on events i.e your conditions could be:

IF armMoving == True AND distanceBetweenArmAndBalloon < strikeDistance
balloonCollision =...
Forum: Vizard 02-17-2009, 03:26 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
Well, at a guess, you could always just hardcode...

Well, at a guess, you could always just hardcode it and position the balloon near the path the avatar moves along and when it gets to the position the balloon is in the world run the animation that...
Forum: Vizard 02-17-2009, 02:48 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
If you want the arm to move wouldn't that be done...

If you want the arm to move wouldn't that be done by an animation of his arm moving 40 degrees?
Forum: Vizard 02-17-2009, 01:53 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
Do you have the avatar walking around? If so...

Do you have the avatar walking around? If so you'll need a keyboard callback function to control the speed, something like:



# Load avatar
myAvatar = viz.add('avatar.cfg')

# Speed of avatar...
Forum: Vizard 02-17-2009, 12:46 AM
Replies: 12
Views: 12,110
Posted By DrunkenBrit
Try the tutorials inside of Vizard...

Try the tutorials inside of Vizard (Help->Tutorials). There's a whole section on avatars, it's a good starting point.
Forum: Vizard 02-13-2009, 12:16 AM
Replies: 3
Views: 8,973
Posted By DrunkenBrit
I google searched again and came across this:...

I google searched again and came across this: http://effbot.org/zone/python-list.htm

It covers what you need to know :) If you're working with lists I suggest you read it.

To delete all...
Forum: Vizard 02-12-2009, 11:48 PM
Replies: 3
Views: 8,973
Posted By DrunkenBrit
If it's a simple python related question (and not...

If it's a simple python related question (and not specifically Vizard) you should try googling your questions first, 90% of the time you'll fine the answer :)

I Googled "Lists - Python" turned up:...
Forum: Vizard 02-11-2009, 01:08 AM
Replies: 1
Views: 6,599
Posted By DrunkenBrit
I suggest you start at the Tutorials section...

I suggest you start at the Tutorials section which can be found in Vizard Help->Tutorials. The tutorials cover a lot of topics including adding objects and picking them via mouse cursor. The...
Forum: Vizard 02-11-2009, 12:24 AM
Replies: 4
Views: 6,912
Posted By DrunkenBrit
Thanks! :)

Thanks! :)
Forum: Vizard 02-09-2009, 01:17 AM
Replies: 4
Views: 6,912
Posted By DrunkenBrit
That's ok, I gathered you guys are rather busy....

That's ok, I gathered you guys are rather busy. Thanks for informing me.
Forum: Vizard 02-09-2009, 12:53 AM
Replies: 2
Views: 12,071
Posted By DrunkenBrit
Thanks for your reply; that worked fine! Could...

Thanks for your reply; that worked fine! Could you explain why extra characters are added to the end of the node name? Why does it work like this to get access to a child node:


dummy =...
Forum: Vizard 02-06-2009, 09:53 AM
Replies: 2
Views: 12,071
Posted By DrunkenBrit
<node3d>.getPosition() returns [0,0,0] all the time...

Hi,

I create a simple scene in 3DSM, export as either WRL or IVE format. All the scene contains is a plane, a few boxes and a sphere.

All 3 shape objects are positioned away from the origin....
Forum: Vizard 02-03-2009, 03:21 AM
Replies: 4
Views: 6,912
Posted By DrunkenBrit
Inheritance ambiguities

Hi,

I've derived from the "FlyNavigate" class to implement my own camera class.

I'm basically trying to split the "FlyNavigate::sensitivity" function up so that I can set move and turn speeds...
Forum: Vizard 01-29-2009, 12:58 AM
Replies: 2
Views: 12,157
Posted By DrunkenBrit
Hi, Thanks for the reply - i'll email you...

Hi,

Thanks for the reply - i'll email you the VRML file as you wish and also take your advice in regards to OSG exporter.
Forum: Vizard 01-28-2009, 05:52 AM
Replies: 2
Views: 12,157
Posted By DrunkenBrit
Problems loading WRL file

Hi,

I've usually had no problems exporting a scene from max to VRML format before and loading it in Vizard, but this time when attempting to load this one file I get the following error:
...
Showing results 1 to 25 of 25

 
Forum Jump

All times are GMT -7. The time now is 01:24 AM.


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