Thread: Object.remove()
View Single Post
  #10  
Old 05-24-2005, 12:51 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Hi,
isolated a short piece of code that causes Vizard 2.51 on my machine to crash.

Code:
# coding: UTF-8
import viz
import vizmat
import time
import math
import sys



import vizinfo

viz._AddNode(viz.VizNode(-1))
#cull = viz.add('cull.dlm')


tracking=1

secondLight=0
remote=0



if tracking==0:
	viz.go()
	#viz.go(viz.ANAGLYPHIC)
	#viz.go(viz.QUAD_BUFFER)
	view = viz.get(viz.MAIN_VIEWPOINT)
	view.translate(2.5009684562683105, 1.013837456703186, -0.24669347703456879)#1.3269580602645874, 1.013837456703186, -0.55598777532577515)
	#view.translate(0.051076151430606842, 0.89280927181243896, -1.1567113399505615)
	view.spinto(0,1,0,-90,450)
else: 
	view = viz.get(viz.MAIN_VIEWPOINT)
	viz.go(viz.PROMPT)
	headPPT = viz.add('vizppt.dls')
	data = headPPT.get()
	v = viz.add('intersense.dls')
	viz.tracker()	
	
	if (secondLight==1):
		fistPPT = viz.add('vizppt.dls')
		fistPPT.command(6,'',1,1,1)
	
		
		
	
	
	viz.eyeheight(-0.3)
It does it on two different computers. If I use tracking=0 it works fine. Also worked fine in the older Version.

What do I need to change?

Johannes
Reply With Quote