From: Bruce S. <bas...@un...> - 2002-07-24 14:35:34
|
a) The issue is that you changed the window from being square to being rectangular, in which case Visual applies your specified range to the longest dimension. For example, when you make your window wide and short (not tall), the horizontal range is indeed 800 as your specified, but that means that the vertical range is less than 800. It's not clear to me what Visual's rule should be, but certainly you'll have a problem if you depend on a square window but then make it rectangular. b) There is no way to control the rendering. Can you say what problem you're trying to address? Bruce Sherwood ----- Original Message ----- From: "Shah Ritesh" <vpy...@ya...> To: <vis...@li...> Sent: Monday, July 22, 2002 8:26 PM Subject: [Visualpython-users] scaling in vpython > > I have two questions. > > a) How can I control scaling in vpython? When I resize the "scene" window, the positions of the objects change relative to the bottom of the window. > > Here is some of my code.. > > scene.autoscale=0 > > scene.height = 400 > scene.width = 400 > scene.x = 0 > scene.y =0 > scene.range = (800,800,800) > > floor = box(pos=(-50,-560,0), length=3000, height=20, width=0,color=(0,1,0)) > > I am sending the the two figures.One when the window is not maximized and one when it is maximized.The position of the floor changes with respect to the bottom of the window. > > b) I am not satisfied with the performance of my animations,therefore to improve the performance I wish to directly control the frame buffer.Is it possible to do so using vpython? > > Thanks a lot, > > Ritesh |