From: Bruce S. <Bru...@nc...> - 2004-08-11 20:51:08
|
I don't understand the "near-clipping plane" problem. Is it simply that you want to set scene.autoscale = 0? Here is the bug report you submitted, for Linux: "My program is a test of a rigid body simulation package, pyode. The scene consists of a few boxes near position (0,0,0) and a sphere. The sphere starts from a position behind the viewer, rolls towards the boxes, crashes into them, bounces back towards the viewer, then continues to roll far behind the viewer. After the sphere rolls for a little while, the near clipping plane begins to move forward into the scene. I have "autocenter" turned off, and the forward progression of the near clipping plane seems to be related to the distance of the sphere from the scene." I wrote a similar-sounding program, which seems to behave properly: box(color=color.cyan) s = sphere(pos=(0,0,100), color=color.red) dz = -1 ##scene.autocenter = 0 ##scene.autoscale = 0 while 1: rate(20) s.pos += vector(0,0,dz) if s.pos.z < 1: dz = -dz Turning off autocenter doesn't do anything that I can see. With the default autoscale on, the camera is moved to make sure that you always see something. I'm not sure what you want to have happen, but it sounds to me like you should turn off autoscaling and manage the view yourself. Bruce Sherwood Isaac W Hanson wrote: > I am in the *very* early stages of a personal project. The plan is to > simulate organisms evolving in a virtual environment. Very similar to > Karl Sims' "Blockies" project, except rather than evolving individual > creatures for an explicit purpose, the idea is to start with a very > simple self-replicating "organism" and allow some sort of > society/ecosystem to develop "naturally". > > I am in the early stages of deciding what physical properties I would > like to implement, but the problem with the near-clipping plane has me > looking for an alternative to VPython, and has sent me scrambling to > learn enough about GL to fix the bug myself (not going to well). > > I would be happy to give you what little code I have developed, to do > with as you please, though I imagine we should continue this discussion > outside the VPython mailing list. When I get back to my abode tonight, > I will package that for you. > > - Isaac |