WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   bounding box error (https://forum.worldviz.com/showthread.php?t=586)

Vbents 05-16-2006 12:34 AM

bounding box error
 
Hi,

We have a likert program that displays a 2D menu for the user perfectly in Viz 2.17a. However, in 2.53g, it no longer scales the items correctly.

I was able to trace the problem to the fact that the bounding box is being reported differently between 2.17 and 2.53, even though the code is identical. Here is the relevant portion:

Code:

width = 10
viz.startlayer(viz.LINES)
viz.linewidth(3)
viz.vertexcolor(viz.RED)
viz.vertex(0,0,-1)
viz.vertex(width,0,-1)
self.scaleLine = viz.endlayer(self.scaleLineGrp.id)
print "bbox:", self.scaleLineGrp.get(viz.BOUNDING_BOX)

2.53 prints: "bbox: [20, 0, 0, 10.0, 0, -1.0]" (which is what I expect)
2.17 prints: "bbox: [1.5625, 0, 0, .78125, 0, -1.0]"

When I copy this code into a new file and remove all the "self." parts, then 2.17 prints the same thing as 2.53. So, I have to conclude that somehow 2.17 is treating groups and/or classes differently.

Does anyone have any idea what could be causing this problem?

[As an aside, in our version of Vizard, the included viz.py file is missing the line "import random", causing it to crash when avatar.idle() is used].

tobin 05-16-2006 03:48 PM

To be clear, are you saying that when instantiated within a class 2.17 and 2.53 disagree, but otherwise they agree?


All times are GMT -7. The time now is 11:34 PM.

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