Questions tagged [vizard]

Commercial, Python based Virtual Reality toolkit from WorldViz

The Vizard Virtual Reality toolkit ( sold by WorldViz ) is used to create 3D visual simulations using the supplied Python libraries.

28 questions
0
votes
1 answer

Vizard fails to load .osgb file

I'm trying to load a .osgb file in vizard with viz.addChild('filename.osgb') but I always get the error ERROR: Failed to load model I've tried to use the relative path, the absolute path, but to no avail. This is on a Windows machine as well.
arshbot
  • 12,535
  • 14
  • 48
  • 71
0
votes
0 answers

Why is VRPN reporting such variable tracking data for a stationary object?

I am currently attempting to use the Virtual Reality Peripheral Network (VRPN) to connect a NDI Polaris Spectra optical tracking device to the Vizard VR software. The ultimate goal is to use the device for head and tool tracking. The software that…
Evan
  • 1
  • 4
0
votes
2 answers

Python create folder next to .exe

I am using Vizard to create an .exe file off a python script. I need this script to create a folder which resides next to the .exe file if getattr(sys, 'frozen', False): logging.warning('Application is exe') loggingPath =…
coernel
  • 79
  • 1
  • 9
0
votes
0 answers

How do I detect if an object is outside my vewport in Vizard?

Can someone please point me in the right direction in detecting an object if it is outside my viewport. I want to have a fixed Viewport and objects move around in 3d space but I need to reset the objects if they fall outside the Viewport.
0
votes
0 answers

collision of two boxes:VIZARD:PYTHON

I used the collision of boxes that are placed in enviornment having two tables. I used the mouse cursor to grab the objects and placed in the other table. But i am facing one problem in case of collision detection between the objects. I used the…
0
votes
1 answer

Python, thread-function doesn't execute and the object disappears

We are trying to run this code in Python, but while the function print_time works, the TestReactionTime doesn't execute (it doesn't even print). The calls to both functions are identical. Also, and independently, when we release the ball for the…
chopeds
  • 287
  • 1
  • 5
  • 21
0
votes
1 answer

tracking position/location in test keyboard & mouse mode (not ppt) with new vizconnect

I can track location fine pre - vizconnect using code like this:- vrpn7 = viz.add('vrpn7.dle') posTracker = vrpn7.addTracker('PPT0@WorldViz-PC', 0 ) and then x,y,z = posTracker.getPosition() but I now use the new vizconnect e.g. vizconnect.go(…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
0
votes
1 answer

Return output from function called from a function

I'm using Vizard (Python) and would like to have an event that runs every time the clock is updated. The function to do this properly in Vizard is vizact.ontimer(). The manual for this function can be found here. The function I'd like to call has…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
0
votes
1 answer

Adding Textures to Objects in Vizard Python

I am trying to add a wood texture to a table. Table is an object and the texture is a .jpg. The problem that I am getting is that when the texture is applied to the object, it doesn't seem to 100% work. The table with no texture is a solid red…
Ben
  • 33
  • 1
  • 4
0
votes
1 answer

Adding a click function to a button in Python

I am very new to Python. I'm creating a simple 3D world using Vizard 4.0 and I want to add a stopwatch to the screen. I dont want an actual 3D stopwatch, just a simple text box in the corner of the screen which updates as the stopwatch counts. Heres…
Daft
  • 10,277
  • 15
  • 63
  • 105
-1
votes
1 answer

Python 3.4 not running tkinter in Console ONLY

When i'm running the program in the IDLE for python 3.4, the program works fine and as intended. However, when using python Console (through python.exe) the Console returns "ImportError: No Module named tkinter". I am aware of the differences of…
Revexious
  • 21
  • 2
-1
votes
1 answer

Python function (viztask.waitdraw)

We have this two codes. The first one works and the second one doesn't. We have commented all the lines and we have verified that, in the second one, the code works until we introduce the line: d = yield viztask.waitDraw() In the second one, it…
chopeds
  • 287
  • 1
  • 5
  • 21
-2
votes
1 answer

Python global variable indentation

We are using Vizard to program a software It uses Python but we are quite new at it and we get this error: Indentation Error: unindent does not match any outer indentation level in the marked line. Any idea why? import viz import math import…
chopeds
  • 287
  • 1
  • 5
  • 21
1
2